bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ld internal error with --just-symbols flag


From: Jason Khallouf
Subject: ld internal error with --just-symbols flag
Date: Mon, 17 Jan 2005 11:23:13 +1100
User-agent: KMail/1.7.1

Hi,

I came across this error message a few days when linking some modules together 
with ld using the --just-symbols flag.

--------
powerpc-eabi-ld: internal error: aborting at ../../binutils-2.15/ld/ldlang.c 
line 3835 in lang_place_orphans
powerpc-eabi-ld: please report this bug
--------

I've since pared the problem code down to a one-line file containing a single 
variable declaration, "int y;".  I originally came across the problem linking 
PowerPC modules, but the error also occurs for the native Linux linker.  
Below is my sequence of commands.

~/misc> echo "int y;" > testbug.c
~/misc> gcc -c testbug.c
~/misc> ld --just-symbols testbug.o
ld: internal error: aborting at ../../binutils-2.15/ld/ldlang.c line 3835 in 
lang_place_orphans
ld: please report this bug
~/misc>         

This happens with my compiled version (gcc 3.3.4, binutils 2.15, glibc 2.3.3), 
and I've also tried recompiling binutils using version 2.14, as well as 
050112 20050112 from the CVS repository.  All have the same problem, although 
for the CVS version the reported line number is 4445.  An older set of tools 
on my machine, gcc 2.95.3 with ld 2.11.2, compiles and links the code without 
the error (only a warning with ld because there's no _start symbol).

I compiled gcc/binutils/glibc the version that comes with SuSe 9.2 (gcc 3.3.4 
(pre 3.3.5 20040809)), ld 2.15.91.0.2 20040727), on an Athlon XP.  The 
version that came with SuSe also has the same problem.

Hope that's enough detail to figure out the problem.  I've also attached the 
object file (made with ld 2.15).

Thanks,

Jason

Attachment: testbug.o
Description: application/object


reply via email to

[Prev in Thread] Current Thread [Next in Thread]