[Bug binutils/3463] New: ld crashes on missing exports
A mininal example to illustrate this ld bug. Below makefile causes it to crash(reading from 002c). >ld --version GNU ld version 2.17.50 20060824 Copyright 2005 Free Software Foundation, Inc. 8<---8< CC = gcc all: foo.dll foo.def: Makefile @echo 'LIBRARY foo.dll' > $@ @echo 'EXPORTS'>> $@ @echo ' foo @1' >> $@ @echo ' missing @2' >> $@ foo.c: Makefile @echo 'int foo (void) { return 1; }' > $@ foo.dll foo.dll.a: foo.def foo.o gcc -shared -o foo.dll -Wl,--out-implib,foo.dll.a $^ 8<---8< --gv [EMAIL PROTECTED] -- Summary: ld crashes on missing exports Product: binutils Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: giva at bgnett dot no CC: bug-binutils at gnu dot org GCC host triplet: mingw-win32 http://sourceware.org/bugzilla/show_bug.cgi?id=3463 --- 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 gas/3469] New: GAS encodes corrupt relocation ld reports bad reloc symbol index
I stumbled over this issue when compiling glibc-cvs with GCC 4.2 and binutils-cvs. This happens when compiling glibc in 64bits. 32 bit compiled fine. Toolchain defaults to ppc32 Analysing the object of the test file, gas encodes one relocation wrongly. Relocation section '.rela.toc' at offset 0xdb40 contains 144 entries: Offset Info Type Sym. ValueSym. Name + Addend 003b0026 R_PPC64_ADDR640ac8 _rtld_global + 0 0008 003c0026 R_PPC64_ADDR64 _dl_argc + 0 0010 9aeaca40026 R_PPC64_ADDR64bad symbol index: 09aeaca4 The Info has the index wrong. It seems like the data to hold this is 64 bit and the top half has random value. -- Summary: GAS encodes corrupt relocation ld reports bad reloc symbol index Product: binutils Version: 2.18 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gas AssignedTo: unassigned at sources dot redhat dot com ReportedBy: raj dot khem at gmail dot com CC: bug-binutils at gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: powerpc-montavista-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=3469 --- 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 gas/3469] GAS encodes corrupt relocation ld reports bad reloc symbol index
--- Additional Comments From raj dot khem at gmail dot com 2006-11-07 02:06 --- In the correct object it looks like Relocation section '.rela.toc' at offset 0x1cc28 contains 179 entries: Offset Info Type Sym. ValueSym. Name + Addend 00460026 R_PPC64_ADDR64 _rtld_global + 0 0008 00470026 R_PPC64_ADDR6402d8 _dl_argc + 0 0010 00480026 R_PPC64_ADDR64 _dl_argv_internal + 0 -- http://sourceware.org/bugzilla/show_bug.cgi?id=3469 --- 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 gas/3469] GAS encodes corrupt relocation ld reports bad reloc symbol index
--- Additional Comments From raj dot khem at gmail dot com 2006-11-07 02:39 --- Created an attachment (id=1403) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1403&action=view) testcase ppc-9xx-as -a64 xx.s will produce the corrupt object. the entry in .rela.roc is corrupt C file can be compiled with GCC 4.2 to reproduce the issue ppc-9xx-gcc -c -std=gnu99 -m64 -O2 xx.c -- http://sourceware.org/bugzilla/show_bug.cgi?id=3469 --- 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 gas/3469] GAS encodes corrupt relocation ld reports bad reloc symbol index
-- What|Removed |Added CC||amodra at bigpond dot net ||dot au http://sourceware.org/bugzilla/show_bug.cgi?id=3469 --- 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