old-cross-binutils/ld/testsuite/ld-powerpc
Jakub Jelinek fdc90cb46b include/
* bfdlink.h (struct bfd_link_info): Add emit_hash and
	emit_gnu_hash bitfields.
include/elf/
	* common.h (SHT_GNU_HASH, DT_GNU_HASH): Define.
ld/
	* scripttempl/elf.sc: Add .gnu.hash section.
	* emultempl/elf32.em (OPTION_HASH_STYLE): Define.
	(gld${EMULATION_NAME}_add_options): Register --hash-style option.
	(gld${EMULATION_NAME}_handle_option): Handle it.
	(gld${EMULATION_NAME}_list_options): Document it.
	* ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
	* ld.texinfo: Document --hash-style option.
bfd/
	* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_GNU_HASH.
	(bfd_section_from_shdr, elf_fake_sections, assign_section_numbers):
	Handle SHT_GNU_HASH.
	(special_sections_g): Include .gnu.hash section.
	(bfd_elf_gnu_hash): New function.
	* elf-bfd.h (bfd_elf_gnu_hash, _bfd_elf_hash_symbol): New prototypes.
	(struct elf_backend_data): Add elf_hash_symbol method.
	* elflink.c (_bfd_elf_link_create_dynamic_sections): Create .hash
	only if info->emit_hash, create .gnu.hash section if
	info->emit_gnu_hash.
	(struct collect_gnu_hash_codes): New type.
	(elf_collect_gnu_hash_codes, elf_renumber_gnu_hash_syms,
	_bfd_elf_hash_symbol): New functions.
	(compute_bucket_count): Don't compute HASHCODES array, instead add
	that and NSYMS as arguments.  Use bed->s->sizeof_hash_entry
	instead of bed->s->arch_size / 8.  Fix .hash size estimation.
	When not optimizing, use the number of hashed symbols rather than
	dynsymcount.
	(bfd_elf_size_dynamic_sections): Only add DT_HASH if info->emit_hash,
	and ADD DT_GNU_HASH if info->emit_gnu_hash.
	(bfd_elf_size_dynsym_hash_dynstr): Size .hash only if info->emit_hash,
	adjust compute_bucket_count caller.  Create and populate .gnu.hash
	section if info->emit_gnu_hash.
	(elf_link_output_extsym): Only populate .hash section if
	finfo->hash_sec != NULL.
	(bfd_elf_final_link): Adjust assertion.  Handle DT_GNU_HASH.
	* elfxx-target.h (elf_backend_hash_symbol): Define if not yet defined.
	(elfNN_bed): Add elf_backend_hash_symbol.
	* elf64-x86-64.c (elf64_x86_64_hash_symbol): New function.
	(elf_backend_hash_symbol): Define.
	* elf32-i386.c (elf_i386_hash_symbol): New function.
	(elf_backend_hash_symbol): Define.
binutils/
	* readelf.c (get_dynamic_type): Handle DT_GNU_HASH.
	(get_section_type_name): Handle SHT_GNU_HASH.
	(dynamic_info_DT_GNU_HASH): New variable.
	(process_dynamic_section): Handle DT_GNU_HASH.
	(process_symbol_table): Print also DT_GNU_HASH histogram.
ld/testsuite/
	* ld-powerpc/tlsso32.r: Adjust.
	* ld-powerpc/tlsso32.d: Adjust.
	* ld-powerpc/tlsso32.g: Adjust.
	* ld-powerpc/tlsso.r: Adjust.
	* ld-powerpc/tlsso.g: Adjust.
	* ld-powerpc/tlstocso.g: Adjust.
2006-07-10 21:40:25 +00:00
..
apuinfo.rd bfd/ 2005-03-16 21:52:48 +00:00
apuinfo1.s
apuinfo2.s
powerpc.exp ld/ 2006-03-03 09:32:01 +00:00
reloc.d bfd/ 2005-04-19 05:44:55 +00:00
reloc.s
sdadyn.d bfd/ 2005-05-20 21:57:12 +00:00
sdadyn.s bfd/ 2005-05-20 21:57:12 +00:00
sdalib.s * ld-powerpc/sdalib.s (lib_var): Size it. 2005-07-12 12:08:11 +00:00
symtocbase-1.s * symtocbase-1.s, symtocbase-2.s, symtocbase.d: New test. 2005-09-28 19:32:19 +00:00
symtocbase-2.s * symtocbase-1.s, symtocbase-2.s, symtocbase.d: New test. 2005-09-28 19:32:19 +00:00
symtocbase.d * ld-powerpc/symtocbase.d: Adjust for alignment change. 2005-11-18 04:41:30 +00:00
tls.d
tls.g
tls.s 2004-10-01 H.J. Lu <hongjiu.lu@intel.com> 2004-10-01 20:11:40 +00:00
tls.t
tls32.d
tls32.g
tls32.s bfd/ChangeLog: 2006-03-17 06:44:37 +00:00
tls32.t
tlsexe.d
tlsexe.g Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
tlsexe.r * ld-powerpc/tlsexe.r: Update for removal of some section syms. 2006-06-02 07:53:30 +00:00
tlsexe.t
tlsexe32.d Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
tlsexe32.g Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
tlsexe32.r bfd/ 2006-06-02 00:32:00 +00:00
tlsexe32.t bfd/ 2005-03-16 02:41:28 +00:00
tlsexetoc.d
tlsexetoc.g * ld-powerpc/tlsexetoc.r: Update for correction to tls optimization. 2006-05-05 13:08:49 +00:00
tlsexetoc.r * ld-powerpc/tlsexe.r: Update for removal of some section syms. 2006-06-02 07:53:30 +00:00
tlsexetoc.t
tlslib.s
tlslib32.s
tlsso.d
tlsso.g include/ 2006-07-10 21:40:25 +00:00
tlsso.r include/ 2006-07-10 21:40:25 +00:00
tlsso.t
tlsso32.d include/ 2006-07-10 21:40:25 +00:00
tlsso32.g include/ 2006-07-10 21:40:25 +00:00
tlsso32.r include/ 2006-07-10 21:40:25 +00:00
tlsso32.t bfd/ 2005-03-16 02:41:28 +00:00
tlstoc.d
tlstoc.g
tlstoc.s 2004-10-01 H.J. Lu <hongjiu.lu@intel.com> 2004-10-01 20:11:40 +00:00
tlstoc.t
tlstocso.d
tlstocso.g include/ 2006-07-10 21:40:25 +00:00
tlstocso.r * ld-powerpc/tlsexe.r: Update for removal of some section syms. 2006-06-02 07:53:30 +00:00
tlstocso.t
vxworks1-lib.dd bfd/ 2006-03-02 08:50:04 +00:00
vxworks1-lib.nd ld/testsuite/ 2006-03-02 15:16:27 +00:00
vxworks1-lib.rd ld/testsuite/ 2006-03-02 15:16:27 +00:00
vxworks1-lib.s bfd/ 2006-03-02 09:44:23 +00:00
vxworks1-lib.sd bfd/ 2006-03-02 08:50:04 +00:00
vxworks1-static.d ld/ 2006-03-03 09:32:01 +00:00
vxworks1.dd ld/testsuite/ 2006-03-02 15:16:27 +00:00
vxworks1.ld ld/testsuite/ 2006-03-02 15:16:27 +00:00
vxworks1.rd ld/testsuite/ 2006-03-02 15:16:27 +00:00
vxworks1.s bfd/ 2006-03-02 08:50:04 +00:00
vxworks2-static.sd ld/ 2006-03-03 09:32:01 +00:00
vxworks2.s ld/ 2006-03-03 09:32:01 +00:00
vxworks2.sd ld/ 2006-03-03 09:32:01 +00:00