old-cross-binutils/include/elf
David S. Miller d0c9aeb3fc include/
* elf/sparc.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.

bfd/

	* reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
	(BFD_RELOC_SPARC_IRELATIVE): Likewise.
	* bfd-in2.h: Regenerate.
	* libbfd.h: Regenerate.

	* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
	and loc_hash_memory.
	(_bfd_sparc_elf_link_hash_table_free): Declare.
	* elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
	(elf_backend_add_symbol_hook, elf_backend_post_process_headers,
	bfd_elf32_bfd_link_hash_table_free): Define.
	* elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
	has_ifunc_symbols if STT_GNU_IFUNC.
	(bfd_elf64_bfd_link_hash_table_free): Define.
	(elf_backend_post_process_headers): Define always.
	* elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
	(sparc_reloc_map): Add entries for new IFUNC relocs.
	(_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
	(_bfd_sparc_elf_info_to_howto_ptr): Likewise.
	(elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
	elf_sparc_get_local_sym_hash): New.
	(_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
	from here...
	(_bfd_sparc_elf_link_hash_table_create): ... to here.  Allocate
	local hash table.
	(_bfd_sparc_elf_link_hash_table_free): New.
	(create_ifunc_sections): New.
	(_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
	and call create_ifunc_sections().  For local STT_GNU_IFUNC symbols
	cons up a fake local hash table entry for it.  Unconditionally add
	a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular.  Count
	dyn relocs for ifunc.
	(_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
	(allocate_dynrelocs):  Unconditionally emit a PLT entry when STT_GNU_IFUNC
	and h->def_regular.  Count GOT dyn relocs for ifunc.
	(allocate_local_dynrelocs): New function.
	(_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash table.
	Emit dynamic relocs to irelplt when not shared.  Treat iplt like splt.
	(_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
	(_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt
	in iplt/irelplt.

ld/testsuite/

	* ld-ifunc/ifunc.exp: Run for sparc.
2010-02-08 20:28:43 +00:00
..
alpha.h
arc.h
arm.h 2009-11-17 Paul Brook <paul@codesourcery.com> 2009-11-17 16:31:56 +00:00
avr.h Add AVR architectures avr25, avr31, avr35, and avr51 to match GCC. 2008-08-09 05:35:13 +00:00
bfin.h update copyright dates 2009-09-02 07:25:43 +00:00
ChangeLog Move entry for elf/s390.h to elf/ChangeLog. 2010-02-07 14:42:40 +00:00
ChangeLog-9103
common.h Add NT_386_XSTATE. 2010-02-02 12:37:40 +00:00
cr16.h * cr16.h (R_CR16_GOT_REGREL20, R_CR16_GOTC_REGREL20 and 2008-11-27 11:35:39 +00:00
cr16c.h
cris.h * cris.h (R_CRIS_32_IE): New relocation. 2008-12-20 00:24:16 +00:00
crx.h
d10v.h
d30v.h
dlx.h
dwarf.h
external.h
fr30.h
frv.h
h8.h
hppa.h
i370.h
i386.h update copyright dates 2009-09-02 07:25:43 +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 bfd/ 2008-11-14 14:44:09 +00:00
ip2k.h
iq2000.h
lm32.h Add LM32 port. 2008-12-23 19:10:25 +00:00
m32c.h
m32r.h
m68hc11.h
m68k.h update copyright dates 2009-09-02 07:25:43 +00:00
mcore.h
mep.h update copyright dates 2009-09-02 07:25:43 +00:00
microblaze.h Add support for Xilinx MicroBlaze processor. 2009-08-06 17:38:04 +00:00
mips.h include/ 2009-12-03 17:01:46 +00:00
mmix.h
mn10200.h
mn10300.h
moxie.h Add PC-relative branch instructions to moxie port. 2009-06-11 11:27:58 +00:00
msp430.h
mt.h
openrisc.h
or32.h
pj.h
ppc.h PR ld/11088 2009-12-17 05:45:25 +00:00
ppc64.h include/elf/ 2009-09-21 11:51:02 +00:00
reloc-macros.h * reloc-macros.h: Add a comment about the use of the 2008-05-21 14:50:07 +00:00
rx.h bfd 2009-09-29 14:17:19 +00:00
s390.h 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2010-01-21 11:40:28 +00:00
score.h Add support for Score7 architecture. 2009-03-02 10:33:08 +00:00
sh.h * sh.h (EF_SH_BFD_TABLE): Set bfd_mach_sh for EF_SH_UNKNOWN. 2008-06-09 22:20:46 +00:00
sparc.h include/ 2010-02-08 20:28:43 +00:00
spu.h update copyright dates 2009-09-02 07:25:43 +00:00
v850.h
vax.h
vxworks.h
x86-64.h update copyright dates 2009-09-02 07:25:43 +00:00
xc16x.h
xstormy16.h
xtensa.h 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00