newlib/include/elf
H.J. Lu 2838430f1b bfd/
2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/10205
	* elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
	(elf_i386_reloc_type_lookup): Likewise.
	(R_386_tls): Removed.
	(R_386_irelative): New.
	(R_386_vt_offset): Updated.
	(elf_i386_rtype_to_howto): Likewise.
	(elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
	(elf_i386_link_hash_table_create): Initialize igotplt,
	iplt and irelplt.
	(elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
	(elf_i386_adjust_dynamic_symbol): Likewise.
	(elf_i386_allocate_dynrelocs): Likewise.
	(elf_i386_relocate_section): Likewise.
	(elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
	sections.
	(elf_i386_finish_dynamic_symbol): When building a static
	executable, use .iplt, .igot.plt and .rel.iplt sections for
	STT_GNU_IFUNC symbols.  Generate R_386_IRELATIVE relocation for
	locally defined STT_GNU_IFUNC symbol.

	* elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
	(x86_64_reloc_map): Likewise.
	(R_X86_64_standard): Updated.
	(elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
	(elf64_x86_64_link_hash_table_create): Initialize igotplt,
	iplt and irelplt.
	(elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
	(elf64_x86_64_adjust_dynamic_symbol): Likewise.
	(elf64_x86_64_allocate_dynrelocs): Likewise.
	(elf64_x86_64_relocate_section): Likewise.
	(elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
	sections.
	(elf64_x86_64_finish_dynamic_symbol): When building a static
	executable, use .iplt, .igot.plt and .rela.iplt sections for
	STT_GNU_IFUNC symbols.  Generate R_X86_64_IRELATIVE relocation
	for locally defined STT_GNU_IFUNC symbol.

	* reloc.c (BFD_RELOC_386_IRELATIVE): New.
	(BFD_RELOC_X86_64_IRELATIVE): Likewise.

	* bfd-in2.h: Regenerated.
	* libbfd.h: Likewise.

include/elf/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/10205
	* i386.h (R_386_IRELATIVE): New.
	* x86-64.h (R_X86_64_IRELATIVE): Likewise.

ld/testsuite/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/10205
	* ld-ifunc/ifunc.exp (contains_irelative_reloc): New.
	Use it on executable and shared library.
	Run *.d.

	* ld-ifunc/lib.c: Add a hidden alias, __GI_library_func2, for
	library_func2.
	(library_func): New.

	* ld-ifunc/ifunc-1-x86.d: New.
	* ld-ifunc/ifunc-1-x86.s: Likewise.
	* ld-ifunc/ifunc-2-i386.d: Likewise.
	* ld-ifunc/ifunc-2-i386.s: Likewise.
	* ld-ifunc/ifunc-2-x86-64.d: Likewise.
	* ld-ifunc/ifunc-2-x86-64.s: Likewise.
	* ld-ifunc/ifunc-3a-x86.d: Likewise.
	* ld-ifunc/ifunc-3b-x86.d: Likewise.
	* ld-ifunc/ifunc-3-x86.s: Likewise.
	* ld-ifunc/ifunc-4-x86.d: Likewise.
	* ld-ifunc/ifunc-4-x86.s: Likewise.
	* ld-ifunc/ifunc-5-i386.d: Likewise.
	* ld-ifunc/ifunc-5-i386.s: Likewise.
	* ld-ifunc/ifunc-5-x86-64.d: Likewise.
	* ld-ifunc/ifunc-5-x86-64.s: Likewise.
2009-06-01 13:11:52 +00:00
..
alpha.h
arc.h
arm.h 2009-01-15 Andrew Stubbs <ams@codesourcery.com> 2009-01-15 18:00:49 +00:00
avr.h
bfin.h
ChangeLog bfd/ 2009-06-01 13:11:52 +00:00
ChangeLog-9103
common.h 2009-05-27 H.J. Lu <hongjiu.lu@intel.com> 2009-05-27 17:05:53 +00:00
cr16.h
cr16c.h
cris.h
crx.h
d10v.h
d30v.h
dlx.h
dwarf2.h include/elf/ 2009-04-24 18:28:58 +00:00
dwarf.h
external.h
fr30.h
frv.h
h8.h
hppa.h
i370.h
i386.h bfd/ 2009-06-01 13:11:52 +00:00
i860.h
i960.h
ia64.h * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO, 2009-01-15 12:42:52 +00:00
internal.h
ip2k.h
iq2000.h
lm32.h Add LM32 port. 2008-12-23 19:10:21 +00:00
m32c.h
m32r.h
m68hc11.h
m68k.h M68K TLS support. 2009-02-03 14:36:47 +00:00
mcore.h
mep.h * mep.h (EF_MEP_COP_*): New. 2009-04-30 18:49:37 +00:00
mips.h bfd: 2009-02-03 18:16:04 +00:00
mmix.h
mn10200.h
mn10300.h
moxie.h Add new binutils target: moxie 2009-04-16 15:39:46 +00:00
msp430.h
mt.h
openrisc.h
or32.h
pj.h
ppc64.h include/elf/ 2009-03-04 05:50:48 +00:00
ppc.h include/elf/ 2009-03-04 05:50:48 +00:00
reloc-macros.h
s390.h
score.h Add support for Score7 architecture. 2009-03-02 10:33:07 +00:00
sh.h
sparc.h
spu.h
v850.h
vax.h
vxworks.h
x86-64.h bfd/ 2009-06-01 13:11:52 +00:00
xc16x.h
xstormy16.h
xtensa.h