[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/175] String merge doesn't work right with gcc 3.4.0
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/175] String merge doesn't work right with gcc 3.4.0 |
Date: |
20 May 2004 22:46:18 -0000 |
------- Additional Comments From hjl at lucon dot org 2004-05-20 22:46 -------
A small testcase:
address@hidden merge-2]$ cat foo.c
void get_addrs (const char**x, int y)
{
x[0] = "1111" + (y - 0x1000) * 2;
}
address@hidden merge-2]$ make LD=ld
/usr/gcc-3.4/bin/gcc -B./ -O -g -c -o foo.o foo.c
ld -o foo.so --shared foo.o
ld: foo.o: access beyond end of merged section (-8192 + 0)
ld: foo.o: access beyond end of merged section (-8192 + 0)
The problem is
addl r14 = @ltoffx(.LC0-8192), r1
;;
ld8.mov r14 = [r14], .LC0-8192
;;
elfNN_ia64_relax_section calls _bfd_merged_section_offset with
offset + addend = .LC0 - 8192. I don't think _bfd_merged_section_offset
handles it right.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=175
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.