[Bug gold/7088] Script parse error on INPUT ( )

2008-12-10 Thread stefan dot becker at nokia dot com

--- Additional Comments From stefan dot becker at nokia dot com  2008-12-10 
08:09 ---
Thanks for the quick turnaround time. The problem is gone.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=7088

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/7091] New: Internal error on object generated by gnuld

2008-12-10 Thread stefan dot becker at nokia dot com
In our SW build we have a pre-compiled library that is linked with gnuld:

  ld -r -EL -o precompiled.a module1.o module2.o ...


When this library is linked together with other objects with gold I get an
internal error:

$ build/gold/ld-new -r -o test.a precompiled_gnuld.a
build/gold/ld-new: internal error in output_symtab_index, at
../../binutils-2.19/gold/object.h:968

If I create precompiled.a with gold from the same object files everything works
fine. The resulting libraries are different:

-rw-r--r-- 1 user group 2332299 2008-12-10 12:01 precompiled_gnuld.a
-rw-r--r-- 1 user group 2317681 2008-12-10 12:36 precompiled_gold.a


"--debug all" shows:

/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Dir_cache_task /lib
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Dir_cache_task /lib
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Dir_cache_task /usr/lib
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Dir_cache_task /usr/lib
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Read_symbols precompiled_gnuld.a   
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new: Attempt to open
precompiled_gnuld.a succeeded   
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Read_symbols precompiled_gnuld.a   
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Add_symbols precompiled_gnuld.a
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Add_symbols precompiled_gnuld.a
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Task_function Middle_runner
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new: Dumping linker
script  
 
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Task_function Middle_runner
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Read_relocs precompiled_gnuld.a
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Read_relocs precompiled_gnuld.a
  
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Scan_relocs precompiled_gnuld.a
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Scan_relocs precompiled_gnuld.a
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Task_function Layout_task_runner
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Task_function Layout_task_runner
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Write_symbols_task
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Write_symbols_task
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Write_sections_task
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Write_sections_task
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Write_data_task
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 completed
task Write_data_task
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new:   0 running  
task Relocate_task precompiled_gnuld.a
/disks/sausers9/stefanb/workarea/gold_linker/build/gold/ld-new: internal error
in output_symtab_index, at ../../binutils-2.19/gold/object.h:968


GDB shows the following backtrace when the assert happens:

#0  gold::do_gold_unreachable ( 
filename=0x81a79a4 "../../binutils-2.19/gold/object.h", lineno=968, 
function=0x81a7fe0 "output_symtab_index")
at ../../binutils-2.19/gold/gold.cc:84
#1  0x0806017f in gold::relocate_for_relocatable<32, false, 9> (
relinfo=0xbfac42b0, prelocs=0xb7fffe00 "\022", reloc_count=4329,
output_section=0xa3c00a0, offset_in_output_section=0, rr=0xa4247f0,
view=0xb7ed5ff8 "\030", view_address=0, reloc_view=0xb7f33a64 "\022",
reloc_view_size=34632) at ../../binutils-2.19/gold/object.h:968
#2  0x08123348 in gold::Sized_relobj<32, false>::relocate_sections (
this=

[Bug gold/7091] Internal error on object generated by gnuld

2008-12-10 Thread ian at airs dot com

--- Additional Comments From ian at airs dot com  2008-12-10 16:45 ---
The first thing I need to see is a backtrace from a linker which was compiled
without optimization.  Your backtrace is truncated relative to the source code
because it doesn't show the inlined functions.  I can't figure out which
particular call to output_symtab_index is failing.


-- 
   What|Removed |Added

 Status|NEW |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=7091

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/7093] New: LD is unable to create reloacatable from binary

2008-12-10 Thread sgh at sgh dot dk
Trying to create a relocatable object from a binary file generates and error :

 arm-elf-ld -r -b binary -o pleoff.o stripbmp


arm-elf-ld: BFD (GNU Binutils) 2.19 internal error, aborting at
/home/sgh/cvs/toolchain/i686-linux-gnu-arm-elf_build//binutils-2.19/bfd/elf.c
line 370 in bfd_elf_get_elf_syms

arm-elf-ld: Please report this bug.


It does not matter what type of file I'm trying. It fails everytime.

-- 
   Summary: LD is unable to create reloacatable from binary
   Product: binutils
   Version: 2.19
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: sgh at sgh dot dk
CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=7093

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils