This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PR ld/975: [Regression]: ld -pie generates DT_TEXTREL
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Fri, 27 May 2005 16:09:00 -0700
- Subject: PR ld/975: [Regression]: ld -pie generates DT_TEXTREL
This is caused by not defining array bonds in elf.sc. The problem
is when bfd_elf_size_dynamic_sections is called by
gld${EMULATION_NAME}_before_allocation. Those symbols are undefined.
As the result, bfd_elf_size_dynamic_sections will allocate
dynamic relocations for them, which leads to extra R_X86_64_NONE and
DT_TEXTREL on x86-64. On ia64, we got some R_IA64_REL64LSB instead of
R_IA64_NONE.
H.J.