--
What|Removed |Added
CC||amodra at bigpond dot net
||dot au
http://sourceware.org/bugzil
--- 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 f
--- 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 004600
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 0x
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 f