The ltoff22x relaxation bug on ia64.

H. J. Lu hjl@lucon.org
Mon Mar 17 18:47:00 GMT 2003


On Mon, Mar 17, 2003 at 09:10:57AM -0800, H. J. Lu wrote:
> 
> There is another ia64 linker bug. I can't build the current
> gcc-3_2-rhl8-branch in CVS using the current binutils on Linux/ia64. I
> got
> 
> ../boehm-gc/.libs/libgcjgc_convenience.a(reclaim.o)(.text+0xd1): In function
> `report_leak':
> /net/gnu/export/gnu/src/gcc-3.2-redhat-8/gcc/boehm-gc/reclaim.c:40: relocation
> truncated to fit: GPREL22 .text
> collect2: ld returned 1 exit status
> make[5]: *** [libgcj.la] Error 1
> make[5]: Leaving directory
> `/export/build/gnu/gcc-3.2-redhat-8/build-ia64-linux/ia64-unknown-linux-gnu/libjava'
> m
> 
> It is a new bug.
> 

The problem is

http://sources.redhat.com/ml/binutils/2003-02/msg00478.html

doesn't take SHF_MERGE into account. The symaddr computed in
elfNN_ia64_relax_section may be different from the one used.


H.J.



More information about the Binutils mailing list