This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/11297] ICE building abi_check.cc
- From: "kraai at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2003 18:04:18 -0000
- Subject: [Bug bootstrap/11297] ICE building abi_check.cc
- References: <20030623182542.11297.kraai@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11297
------- Additional Comments From kraai at gcc dot gnu dot org 2003-06-26 18:04 -------
ld produces an error because it is asked to generate a procedure linkage table
entry for a local symbol (see binutils-2.14.90.0.4.1/bfd/elf32-ppc.c:3384).
Here is an example of the assembly that produces a problem:
.LLSDACSE1673:
.section .text._ZNSt10istrstreamD1Ev
.set .LTHUNK0,_ZNSt10istrstreamD1Ev
.section
.gnu.linkonce.t._ZTv0_n12_NSt10istrstreamD1Ev,"awx",@progbits
.align 2
.weak _ZTv0_n12_NSt10istrstreamD1Ev
.type _ZTv0_n12_NSt10istrstreamD1Ev, @function
_ZTv0_n12_NSt10istrstreamD1Ev:
.LFB1674:
.file 9
"/home/kraai/dev/gcc/build/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include/backward/strstream"
.loc 9 120 0
lwz 12,0(3)
addi 12,12,-12
lwz 12,0(12)
add 3,3,12
b .LTHUNK0@plt
If I change
b .LTHUNK0@plt
to
b _ZNSt10istrstreamD1Ev@plt
(and likewise for the other such .LTHUNK labels), it assembles and links
successfully.