[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-20 Thread pkoning at equallogic dot com
--- Additional Comments From pkoning at equallogic dot com 2007-03-20 14:02 --- I ran into this issue with GCC 4.1.2, so I'm not sure about it not happening with newer compilers. A warning doesn't help, because it's as bad as an error when you build with "warnings are errors" as many do

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-20 Thread ths at networkno dot de
-- What|Removed |Added CC||ths at networkno dot de http://sourceware.org/bugzilla/show_bug.cgi?id=4208 --- You are receiving this ma

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-20 Thread ths at networkno dot de
--- Additional Comments From ths at networkno dot de 2007-03-20 10:42 --- The answer is "it depends", see gas/config/tc-mips.c:reloc_needs_lo_p. But this depends also on gas/config/tc-mips.c:11755. I figure this doesn't happen with recent gcc versions. Maybe it makes sense to downgrade t

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-19 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-20 04:36 --- This patch: http://sourceware.org/ml/binutils/2007-03/msg00214.html doesn't fix the failure, but gives a clue why it fails. -- http://sourceware.org/bugzilla/show_bug.cgi?id=4208 --- You are receiving this m

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-19 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-20 03:18 --- The problem is 0b88 1f05 R_MIPS_HI16 0004 $LC1 There is no R_MIPS_LO16. I don't know if it is allowed or not. -- http://sourceware.org/bugzilla/show_bug.cgi?id=4208 --- You are receiving

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-19 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-20 03:12 --- It is drivers/mtd/mtd_blkdevs.o. Should LO16 and HI16 relocations be in pairs? Please provide drivers/mtd/mtd_blkdevs.i and drivers/mtd/mtd_blkdevs.s. bash-3.1$ make ./ld --oformat elf32-tradlittlemips -r -o foo.o dr

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-19 Thread sjhill at realitydiluted dot com
--- Additional Comments From sjhill at realitydiluted dot com 2007-03-20 02:43 --- (In reply to comment #4) > (In reply to comment #3) > > The cross linker was still too large even after compression. Please > > retrieve it > > from .

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-19 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-20 02:39 --- (In reply to comment #3) > The cross linker was still too large even after compression. Please retrieve > it > from . I don't need cross linker. But I need the com

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-19 Thread sjhill at realitydiluted dot com
--- Additional Comments From sjhill at realitydiluted dot com 2007-03-20 02:13 --- The cross linker was still too large even after compression. Please retrieve it from . -- http://sourceware.org/bugzilla/show_bug.cgi?id=4208 -

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-19 Thread sjhill at realitydiluted dot com
--- Additional Comments From sjhill at realitydiluted dot com 2007-03-20 02:07 --- Created an attachment (id=1630) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1630&action=view) Object files for failed link with verbose build log. These are the exact object files that cause a

[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-17 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-17 16:58 --- Please provide all input files needed to reproduce the problem with a cross linker. -- What|Removed |Added --

[Bug binutils/4208] New: 'final link failed: Bad value' when building Linux MIPS kernels.

2007-03-16 Thread sjhill at realitydiluted dot com
_bad_value); return NULL; } I was able to create a complete cross toolchain, build a Linux/MIPS kernel and a complete root filesystem with not issues after applying the above patch. -- Summary: 'final link failed: Bad value' when building Linux MIPS

Re: 'final link failed: Bad value' when building Linux/MIPS kernels.

2007-03-16 Thread H. J. Lu
On Fri, Mar 16, 2007 at 09:09:39AM -0400, Paul Koning wrote: > > "Steven" == Steven J Hill <[EMAIL PROTECTED]> writes: > > Steven> Greetings. I have been chasing down a binutils regression > Steven> that is preventing me from building a Linux/MIPS kernel using > Steven> a gcc-4.2 based too

Re: 'final link failed: Bad value' when building Linux/MIPS kernels.

2007-03-16 Thread Paul Koning
> "Steven" == Steven J Hill <[EMAIL PROTECTED]> writes: Steven> Greetings. I have been chasing down a binutils regression Steven> that is preventing me from building a Linux/MIPS kernel using Steven> a gcc-4.2 based toolchain. Here is the snippet of output when Steven> building a 2.6.12 k

'final link failed: Bad value' when building Linux/MIPS kernels.

2007-03-15 Thread Steven J. Hill
Greetings. I have been chasing down a binutils regression that is preventing me from building a Linux/MIPS kernel using a gcc-4.2 based toolchain. Here is the snippet of output when building a 2.6.12 kernel for my platform: LD drivers/mtd/maps/built-in.o LD drivers/mtd/nand/bu

Re: 'final link failed: Bad value' when building Linux/MIPS kernels.

2007-03-15 Thread H. J. Lu
On Thu, Mar 15, 2007 at 09:35:42PM -0500, Steven J. Hill wrote: > Greetings. > > I have been chasing down a binutils regression that is preventing me from > building a Linux/MIPS kernel using a gcc-4.2 based toolchain. Here is the > snippet of output when building a 2.6.12 kernel for my platform: