old-cross-binutils/ld/testsuite/ld-elf
H.J. Lu ef10c3ace0 Use strtab with GC and suffix merging for .strtab
This patch uses ELF strtab with GC and suffix merging support to create
ELF .strtab section.  There is some small memory overhead to use ELF
strtab:

==14928== HEAP SUMMARY:
==14928==     in use at exit: 3,276,318 bytes in 679 blocks
==14928==   total heap usage: 1,544 allocs, 865 frees, 15,259,146 bytes allocated

vs.

==14936== HEAP SUMMARY:
==14936==     in use at exit: 3,276,318 bytes in 679 blocks
==14936==   total heap usage: 1,532 allocs, 853 frees, 15,026,402 bytes allocated

when running:

./ld-new -m elf_x86_64 -o tmpdir/ld-partial.o -r ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o plugin.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_x86_64.o eelf32_x86_64.o eelf_i386.o eelf_iamcu.o ei386linux.o eelf_l1om.o eelf_k1om.o ldbuildid.o

The results are

  [32] .strtab STRTAB 0+ 3beff8 00407a 00 0 0 1

vs

  [32] .strtab STRTAB 0+ 3beff8 0041d8 00 0 0 1

It reduces the .strtab size by 350 bytes, about 2%

Saving on libc.so from glibc is much more since libc.so has many alias
symbols with the same suffix.  For x32 glibc,

 [82] .strtab STRTAB 0+ 81b348 0159e7 00 0 0 1

vs

 [82] .strtab STRTAB 0+ 81b8bc 019e72 00 0 0 1

It reduces the .strtab size by 17547 bytes, about 16%.

bfd/

	PR gas/18451
	* elf-bfd.h (elf_sym_strtab): New.
	(elf_link_hash_table): Add strtabcount, strtabsize and
	strtab.
	(_bfd_elf_stringtab_init): Removed.
	* elf.c (_bfd_elf_stringtab_init): Removed.
	(_bfd_elf_compute_section_file_positions): Replace
	bfd_strtab_hash/_bfd_elf_stringtab_init/_bfd_stringtab_free/
	_bfd_stringtab_size with
	elf_strtab_hash/_bfd_elf_strtab_init/_bfd_elf_strtab_free/
	_bfd_elf_strtab_size.  Use _bfd_elf_strtab_add,
	_bfd_elf_strtab_finalize and _bfd_elf_strtab_offset to get
	st_name.
	(swap_out_syms): Likewise.
	* elflink.c (elf_final_link_info): Replace bfd_strtab_hash
	with elf_strtab_hash.  Remove symbuf, symbuf_count,
	symbuf_size and shndxbuf_size.
	(elf_link_flush_output_syms): Removed.
	(elf_link_output_sym): Renamed to ...
	(elf_link_output_symstrtab): This.  Replace _bfd_stringtab_add
	with _bfd_elf_strtab_add.  Don't flush symbols to the file nor
	swap out symbols.
	(elf_link_swap_symbols_out): New.
	(elf_link_output_extsym): Replace elf_link_output_sym with
	elf_link_output_symstrtab.
	(elf_link_input_bfd): Likewise.
	(elf_final_link_free): Replace _bfd_stringtab_free with
	_bfd_elf_strtab_free.  Remove symbuf.
	(bfd_elf_final_link): Replace _bfd_elf_stringtab_init with
	_bfd_elf_strtab_init.  Don't set symbuf, symbuf_count,
	symbuf_size nor shndxbuf_size.  Initialize strtabsize and
	strtab.  Initialize symshndxbuf to -1 when number of sections
	>= 64K.  Replace elf_link_output_sym/elf_link_output_sym with
	elf_link_output_symstrtab/elf_link_output_symstrtab. Don't
	call elf_link_flush_output_syms.  Call _bfd_elf_strtab_finalize
	and elf_link_swap_symbols_out.  Replace _bfd_stringtab_size
	and _bfd_stringtab_emit with _bfd_elf_strtab_size and
	_bfd_elf_strtab_emit.

gas/testsuite/

	PR gas/18451
	* gas/elf/elf.exp: Run strtab.
	* gas/elf/strtab.d: New file.
	* gas/elf/strtab.s: Likewise.

ld/testsuite/

	PR gas/18451
	* ld-elf/strtab.d: New file.
	* ld-elf/strtab.s: Likewise.
2015-06-25 08:16:14 -07:00
..
audit.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
audit.rd
begin.c
beginwarn.c
binutils.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
comm-data.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
comm-data1.s PR ld/10144 2011-11-29 12:42:10 +00:00
comm-data1.sd PR ld/10144 2011-11-29 12:42:10 +00:00
comm-data2.ld * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2.rd PR ld/10144 2011-11-29 12:42:10 +00:00
comm-data2.s * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2.sd PR ld/10144 2011-11-29 12:42:10 +00:00
comm-data2.xd * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2r.rd * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2r.sd * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2r.xd * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data3.sd Properly handle common symbol and weak function 2012-09-19 00:53:30 +00:00
comm-data3a.s Properly handle common symbol and weak function 2012-09-19 00:53:30 +00:00
comm-data3b.s Properly handle common symbol and weak function 2012-09-19 00:53:30 +00:00
comm-data4.d * ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test. 2012-12-06 00:10:41 +00:00
comm-data4.s * ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test. 2012-12-06 00:10:41 +00:00
comm-data5.d * ld-elf/comm-data.exp: Revert last change. 2012-12-07 06:00:06 +00:00
comm-data5.s * ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test. 2012-12-06 00:10:41 +00:00
comm1.c
commonpage1.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
commonpage2.d
compress.exp Fix 18354 2015-04-29 08:40:31 -07:00
compress1.s ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
compress1a.d Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
compress1b.d Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
compress1c.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
compressed1a.d Add SHF_COMPRESSED support to gas and objcopy 2015-04-08 07:54:09 -07:00
compressed1b.d Add SHF_COMPRESSED support to gas and objcopy 2015-04-08 07:54:09 -07:00
compressed1c.d Add SHF_COMPRESSED support to gas and objcopy 2015-04-08 07:54:09 -07:00
compressed1d.d Fixes a typo in the list of targets that should not run the compressed1d test. 2015-06-05 16:48:01 +01:00
compressed1e.d Correct ld-elf/compressed1e.d to use notarget and for cris-elf, not cris-*. 2015-04-24 06:10:19 +02:00
data1.c
data1.h
data2.c Add a test for weak alias 2012-07-02 14:40:19 +00:00
del.cc
depaudit.rd
depaudit2.rd
discard.ld Remove relocation against discarded sections for relocatable link. 2010-04-30 18:27:32 +00:00
discard1.d Run more tests on x86_64-*-linux-gnu*/i?86-*-linux-gnu 2012-11-21 13:53:23 +00:00
discard1.s Remove relocation against discarded sections for relocatable link. 2010-04-30 18:27:32 +00:00
discard2.d Run more tests on x86_64-*-linux-gnu*/i?86-*-linux-gnu 2012-11-21 13:53:23 +00:00
discard2.s Remove relocation against discarded sections for relocatable link. 2010-04-30 18:27:32 +00:00
discard3.d Run more tests on x86_64-*-linux-gnu*/i?86-*-linux-gnu 2012-11-21 13:53:23 +00:00
dl1.c
dl1.list
dl1.out
dl1main.c
dl2.c
dl2.list
dl2a.list
dl2a.out
dl2b.out
dl2main.c
dl2xxx.c
dl2xxx.list
dl3.cc
dl3.list
dl3a.out
dl3b.out
dl3header.h
dl3main.cc
dl4.c
dl4.list
dl4a.out
dl4b.out
dl4main.c
dl4xxx.c
dl4xxx.list
dl5.cc
dl5.out
dl6.c
dl6a.out
dl6amain.c
dl6b.out
dl6bmain.c
dl6cmain.c
dl6dmain.c
dummy.c
dwarf.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
dwarf1.c
dwarf1.h
dwarf1.out
dwarf1main.c
dynamic-1.c Mark symbol in executables if it matches dynamic_list 2014-02-10 08:05:54 -08:00
dynamic-1.rd Mark symbol in executables if it matches dynamic_list 2014-02-10 08:05:54 -08:00
dynamic-1.syms Mark symbol in executables if it matches dynamic_list 2014-02-10 08:05:54 -08:00
dynamic1.d Add a testcase for PR ld/12516. 2011-02-25 15:53:24 +00:00
dynamic1.ld Add a testcase for PR ld/12516. 2011-02-25 15:53:24 +00:00
dynamic1.s Add a testcase for PR ld/12516. 2011-02-25 15:53:24 +00:00
dynbss1.c
dynsym1.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
eh-frame-hdr.d Add Visium support to ld 2014-12-06 16:45:22 +01:00
eh-frame-hdr.s
eh-group.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
eh-group1.s
eh-group2.s
eh1.d Discard zero address range eh_frame FDEs 2014-10-04 22:49:32 +09:30
eh1.s Discard zero address range eh_frame FDEs 2014-10-04 22:49:32 +09:30
eh1a.s
eh2.d Discard zero address range eh_frame FDEs 2014-10-04 22:49:32 +09:30
eh2a.s
eh3.d Discard zero address range eh_frame FDEs 2014-10-04 22:49:32 +09:30
eh3.s Discard zero address range eh_frame FDEs 2014-10-04 22:49:32 +09:30
eh3a.s
eh4.d * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a 2013-09-12 09:14:47 +00:00
eh4.s
eh4a.s
eh5.d Add Visium support to ld 2014-12-06 16:45:22 +01:00
eh5.s
eh5a.s
eh5b.s
eh6.d * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a 2013-09-12 09:14:47 +00:00
eh6.s
ehdr_start-missing.d Fix references to __ehdr_start when it cannot be defined 2013-11-19 10:54:00 -08:00
ehdr_start-missing.t Fix references to __ehdr_start when it cannot be defined 2013-11-19 10:54:00 -08:00
ehdr_start-shared.d non-PIC references to __ehdr_start in pie and shared 2014-01-15 22:23:16 +10:30
ehdr_start-strongref.s Fix references to __ehdr_start when it cannot be defined 2013-11-19 10:54:00 -08:00
ehdr_start-userdef.d non-PIC references to __ehdr_start in pie and shared 2014-01-15 22:23:16 +10:30
ehdr_start-userdef.t Fix references to __ehdr_start when it cannot be defined 2013-11-19 10:54:00 -08:00
ehdr_start-weak.d Strip undefined symbols from .symtab 2015-02-19 13:36:34 +10:30
ehdr_start.d non-PIC references to __ehdr_start in pie and shared 2014-01-15 22:23:16 +10:30
ehdr_start.s ld/testsuite/ 2012-11-30 21:14:02 +00:00
elf.exp Add new linker option: --warn-orphan which generates warning messages when orphan sections are detected. 2015-04-07 16:29:41 +01:00
empty.d
empty.s
empty2.d * lib/ld-lib.exp (check_gc_sections_available): Fail more targets. 2010-09-18 02:30:41 +00:00
empty2.s
end.c
endhidden.c
endprotected.c
endsym.d Don't PROVIDE over top of common symbols 2014-12-23 23:36:50 +10:30
endsym.s Don't PROVIDE over top of common symbols 2014-12-23 23:36:50 +10:30
exclude.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
exclude1.s
exclude2.s
exclude3.s Implement generic SHF_EXCLUDE. 2010-05-18 03:31:07 +00:00
exclude3a.d Use failif on ld-elf/exclude3 tests 2012-08-24 18:24:52 +00:00
exclude3b.d Use failif on ld-elf/exclude3 tests 2012-08-24 18:24:52 +00:00
exclude3c.d Implement generic SHF_EXCLUDE. 2010-05-18 03:31:07 +00:00
export-class-def.s * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
export-class-dep.s * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
export-class-lib.s * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
export-class-lib.ver * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
export-class-ref.s * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
export-class.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
export-class.sd * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
export-class.vd * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
expr1.d
expr1.s
expr1.t
extract-symbol-1.ld
extract-symbol-1.s
extract-symbol-1sec.d Adds support for generating notes in V850 binaries. 2015-02-24 17:54:09 +00:00
extract-symbol-1sym.d
fini.c
fini.out
fini0.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
fini1.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
fini2.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
fini3.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
finin.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
flags1.d Add Visium support to ld 2014-12-06 16:45:22 +01:00
flags1.ld
flags1.s * ld-elf/flags1.s: Use arm compatible .type syntax. 2010-10-28 06:21:49 +00:00
foo.c
foo.map
foo0.s Update PR ld/14156 tests 2012-07-31 20:45:01 +00:00
foo1.s * ld-elf/foo0.s: Use ARM-compatible .section syntax. 2012-07-13 21:43:16 +00:00
foo2.s * ld-elf/foo0.s: Use ARM-compatible .section syntax. 2012-07-13 21:43:16 +00:00
foo3.s * ld-elf/foo0.s: Use ARM-compatible .section syntax. 2012-07-13 21:43:16 +00:00
foon.s * ld-elf/foo0.s: Use ARM-compatible .section syntax. 2012-07-13 21:43:16 +00:00
frame.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
frame.s
func1.c
gabiend.rt Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] 2015-04-14 22:01:38 -07:00
gabinormal.rt Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] 2015-04-14 22:01:38 -07:00
gap.s Assign file position for .strtab only if needed 2014-12-30 19:09:11 -08:00
global1.d Implement ELF linker -z global option 2012-11-20 22:16:05 +00:00
gnubegin.rS Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] 2015-04-14 22:01:38 -07:00
gnunormal.rS Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] 2015-04-14 22:01:38 -07:00
group.ld [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
group1.d Strip undefined symbols from .symtab 2015-02-19 13:36:34 +10:30
group1a.s
group1b.s
group2.d 2010-10-23 Mark Mitchell <mark@codesourcery.com> 2010-10-23 18:05:10 +00:00
group3a.d
group3a.s
group3b.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group3b.s
group4.d * ld-elf/elf.exp: Don't run --gc-sections tls var test on v850. 2010-09-23 12:24:41 +00:00
group5.d * ld-elf/elf.exp: Don't run --gc-sections tls var test on v850. 2010-09-23 12:24:41 +00:00
group6.d * ld-elf/elf.exp: Don't run --gc-sections tls var test on v850. 2010-09-23 12:24:41 +00:00
group7.d 2010-10-23 Mark Mitchell <mark@codesourcery.com> 2010-10-23 18:05:10 +00:00
group8.s
group8a.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group8b.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group9.s
group9a.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group9b.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group10.d 2010-10-23 Mark Mitchell <mark@codesourcery.com> 2010-10-23 18:05:10 +00:00
group10.s bfd/ 2010-02-19 01:47:16 +00:00
hash.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
header.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
header.s
header.t
hidden.out
indirect.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
indirect1a.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect1b.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect1c.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect2.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect3.out Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect3a.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect3b.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect3c.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect4.out Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect4a.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect4b.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
indirect4c.c Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
init-fini-arrays.d * archures.c: Add some more MSP430 machine numbers. 2013-05-02 21:06:15 +00:00
init-fini-arrays.s * scripttempl/armbpabi.sc: Don't combine .init_array.* or 2010-02-27 12:34:25 +00:00
init-mixed.c * ld-elf/init-mixed.c: Include config.h first. 2012-05-18 02:05:23 +00:00
init-mixed.out Add SORT_BY_INIT_PRIORITY. 2010-12-15 14:56:40 +00:00
init.c
init.out
init0.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
init1.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
init2.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
init3.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
initn.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
libbarw.rd Check .gnu.warning section in shared library 2013-07-24 17:24:20 +00:00
linkinfo1.s Set SHF_INFO_LINK bit for SHT_REL/SHT_RELA sections 2013-12-19 11:34:47 -08:00
linkinfo1a.d Properly set sh_info for .rela.plt/rel.plt section 2015-03-30 04:40:49 -07:00
linkinfo1b.d Properly set sh_info for .rela.plt/rel.plt section 2015-03-30 04:40:49 -07:00
linkonce1.d
linkonce1a.s
linkonce1b.s
linkonce2.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
linkoncerdiff.d * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux. 2012-02-14 01:02:04 +00:00
linkoncerdiff1.s
linkoncerdiff2.s
lma.lnk
lma.s
loadaddr.s
loadaddr.t
loadaddr1.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
loadaddr1.t
loadaddr2.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
loadaddr2.t
loadaddr3.t
loadaddr3a.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
loadaddr3b.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
local1.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
local1.map
local1.s
main.c
maxpage1.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
maxpage1.s
maxpage2.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
maxpage3.t
maxpage3a.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
maxpage3b.d
maxpage3c.d ld/testsuite/ 2012-12-15 10:28:17 +00:00
maxpage4.d ld/testsuite/ 2012-12-15 10:28:17 +00:00
maxpage4.t
maxpage5.d ld/testsuite/ 2012-12-15 10:28:17 +00:00
maxpage5.s Set output maxpagesize when rewriting program header 2012-11-21 21:31:18 +00:00
maxpage5.t Set output maxpagesize when rewriting program header 2012-11-21 21:31:18 +00:00
merge.d gas/ 2014-03-20 21:18:43 +00:00
merge.ld
merge.s
merge2.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
merge2.s
merge3.d Add aligned string merge test 2015-02-25 00:15:26 +10:30
merge3.s Add aligned string merge test 2015-02-25 00:15:26 +10:30
multibss1.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
multibss1.s
needed1.out Add tests for --add-needed/--copy-dt-needed-entries 2012-12-04 17:44:43 +00:00
needed1a.c Add tests for --add-needed/--copy-dt-needed-entries 2012-12-04 17:44:43 +00:00
needed1b.c Add tests for --add-needed/--copy-dt-needed-entries 2012-12-04 17:44:43 +00:00
needed1c.c Add tests for --add-needed/--copy-dt-needed-entries 2012-12-04 17:44:43 +00:00
needed2.ver Add a test for --as-needed with symbol versioning 2013-12-11 08:00:34 -08:00
needed2a.c Add a test for --as-needed with symbol versioning 2013-12-11 08:00:34 -08:00
needed2b.c Add a test for --as-needed with symbol versioning 2013-12-11 08:00:34 -08:00
needed2c.c Add a test for --as-needed with symbol versioning 2013-12-11 08:00:34 -08:00
needed3.c PR 17287, DT_NEEDED of unneeded libraries affects --as-needed 2014-08-18 18:45:01 +09:30
new.cc Don't include <exception_defines.h> 2011-02-23 22:37:48 +00:00
nobits-1.d * lib/ld-lib.exp (check_gc_sections_available): Fail more targets. 2010-09-18 02:30:41 +00:00
nobits-1.s
nobits-1.t
noload-1.d
noload-1.s
noload-1.t
noload-2.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
noload-3.d
noload-3.s
noload-3.t
normal.out
note-1.d * lib/ld-lib.exp (check_gc_sections_available): Fail more targets. 2010-09-18 02:30:41 +00:00
note-1.s
note-1.t
note-2.d * lib/ld-lib.exp (check_gc_sections_available): Fail more targets. 2010-09-18 02:30:41 +00:00
note-2.s
note-2.t
note-3.l * elflink.c (_bfd_elf_link_create_dynamic_sections): If the 2011-06-10 14:04:25 +00:00
note-3.s * elflink.c (_bfd_elf_link_create_dynamic_sections): If the 2011-06-10 14:04:25 +00:00
note-3.t * elflink.c (_bfd_elf_link_create_dynamic_sections): If the 2011-06-10 14:04:25 +00:00
now-1.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
now-2.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
now-3.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
now-4.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
orphan-5.l Add new linker option: --warn-orphan which generates warning messages when orphan sections are detected. 2015-04-07 16:29:41 +01:00
orphan-region.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
orphan-region.ld [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
orphan-region.s * ldlang.c (lang_insert_orphan): Place loadable orphans in the same 2010-03-16 14:14:40 +00:00
orphan.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
orphan.ld [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
orphan.s
orphan2.d * ld-elf/elf.exp: Don't run --gc-sections tls var test on v850. 2010-09-23 12:24:41 +00:00
orphan2.s
orphan3.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
orphan3a.s
orphan3b.s
orphan3c.s
orphan3d.s
orphan3e.s
orphan3f.s
orphan4.d * ld-elf/orphan4.d: Allow for other sections to be present in the 2010-02-23 16:56:39 +00:00
orphan4.ld * emultempl/elf32.em (_place_orphan): If an input section doesn't 2010-01-14 04:56:12 +00:00
orphan4.s * emultempl/elf32.em (_place_orphan): If an input section doesn't 2010-01-14 04:56:12 +00:00
overlay.d
overlay.s
overlay.t
pass.out
pr349-1.s
pr349-2.s
pr349.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr2404.out Add a testcase for PR ld/2404 2014-01-20 04:50:47 -08:00
pr2404a.c Add a testcase for PR ld/2404 2014-01-20 04:50:47 -08:00
pr2404b.c Add a testcase for PR ld/2404 2014-01-20 04:50:47 -08:00
pr9676-1.c
pr9676-2.c
pr9676-3.c
pr9676-4.c
pr9676.rd ld: elfvers tests: support symbol prefixed targets 2010-12-10 06:08:11 +00:00
pr9679-1.c
pr9679-2.c
pr9679.rd ld: elfvers tests: support symbol prefixed targets 2010-12-10 06:08:11 +00:00
pr11138-1.c
pr11138-1.map
pr11138-2.c
pr11138-2.map
pr11138.out
pr11304.d PR ld/11304 2010-03-19 14:49:46 +00:00
pr11304a.s * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux. 2012-02-14 01:02:04 +00:00
pr11304b.s * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux. 2012-02-14 01:02:04 +00:00
pr12851.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr12851.s Check relocations in note sections for --gc-sections. 2011-06-09 04:52:15 +00:00
pr12975.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr12975.s Check if a symbol is hidden by linker script. 2011-09-16 01:15:20 +00:00
pr12975.t Check if a symbol is hidden by linker script. 2011-09-16 01:15:20 +00:00
pr13177.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr13177.s Only run pr12975/pr13177 for *-*-linux* and *-*-gnu* targets. 2011-09-16 16:07:16 +00:00
pr13195.c Fix --gc-sections failure with symbol versioning. 2011-09-29 00:13:14 +00:00
pr13195.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr13195.s Fix --gc-sections failure with symbol versioning. 2011-09-29 00:13:14 +00:00
pr13195.t Fix --gc-sections failure with symbol versioning. 2011-09-29 00:13:14 +00:00
pr13250-1.c Preserve the maximum alignment/size for common symbols. 2011-10-08 16:51:11 +00:00
pr13250-2.c Preserve the maximum alignment/size for common symbols. 2011-10-08 16:51:11 +00:00
pr13250-3.c Preserve the maximum alignment/size for common symbols. 2011-10-08 16:51:11 +00:00
pr13839.d Add a testcase for PR ld/13839 2012-03-14 15:56:13 +00:00
pr13839.s Add a testcase for PR ld/13839 2012-03-14 15:56:13 +00:00
pr13839.t Add a testcase for PR ld/13839 2012-03-14 15:56:13 +00:00
pr14052.d Add a testcase for PR ld/14052 2012-05-05 14:15:21 +00:00
pr14052.t Add a testcase for PR ld/14052 2012-05-05 14:15:21 +00:00
pr14156a.d Add SORT_NONE and don't sort sort .init/.fini sections 2012-07-10 06:50:57 +00:00
pr14156b.d Add SORT_NONE and don't sort sort .init/.fini sections 2012-07-10 06:50:57 +00:00
pr14156c.d Add SORT_NONE and don't sort sort .init/.fini sections 2012-07-10 06:50:57 +00:00
pr14156c.t Update PR ld/14156 tests 2012-07-31 20:45:01 +00:00
pr14170a.s PR ld/14170 2012-05-28 04:08:53 +00:00
pr14170b.s Add a test for PR ld/14170 2012-05-27 14:45:41 +00:00
pr14170c.s Add a test for PR ld/14170 2012-05-27 14:45:41 +00:00
pr14323-1.c Add testcases for PR ld/14323 2012-07-10 04:51:53 +00:00
pr14323-2.c Add testcases for PR ld/14323 2012-07-10 04:51:53 +00:00
pr14525.c Provide __executable_start for PIE 2012-08-31 02:52:14 +00:00
pr14525.out Provide __executable_start for PIE 2012-08-31 02:52:14 +00:00
pr14862-1.c Remove ref_dynamic_nonweak added by accident 2012-11-20 22:17:27 +00:00
pr14862-2.c Remove ref_dynamic_nonweak added by accident 2012-11-20 22:17:27 +00:00
pr14862.map Remove ref_dynamic_nonweak added by accident 2012-11-20 22:17:27 +00:00
pr14862.out PR ld/12549 2013-03-18 02:47:03 +00:00
pr14926.d Add Visium support to ld 2014-12-06 16:45:22 +01:00
pr14926.s Add a testase for PR ld/14926 2012-12-07 12:32:50 +00:00
pr16322.d Adjust LOAD segment to generate GNU_RELRO segment 2014-01-08 05:57:21 -08:00
pr16322.s ld: don't use ia64 register name in expression of pr16322 test 2015-01-28 10:04:51 +01:00
pr16452.map Add tests for PR ld/16452 and PR ld/16457 2014-12-01 06:06:21 -08:00
pr16452.od Add tests for PR ld/16452 and PR ld/16457 2014-12-01 06:06:21 -08:00
pr16452a.c Add tests for PR ld/16452 and PR ld/16457 2014-12-01 06:06:21 -08:00
pr16452b.c Add tests for PR ld/16452 and PR ld/16457 2014-12-01 06:06:21 -08:00
pr16457.od Add tests for PR ld/16452 and PR ld/16457 2014-12-01 06:06:21 -08:00
pr16496a.c Display symbol version when dumping dynrelocs 2014-11-25 06:47:44 -08:00
pr16496a.map Display symbol version when dumping dynrelocs 2014-11-25 06:47:44 -08:00
pr16496b.c Display symbol version when dumping dynrelocs 2014-11-25 06:47:44 -08:00
pr16496b.od Display symbol version when dumping dynrelocs 2014-11-25 06:47:44 -08:00
pr16498a.d Improve orphaned TLS section handling 2014-01-24 08:56:07 -08:00
pr16498a.s Replace .align with .p2align 2014-01-24 10:01:56 -08:00
pr16498a.t Improve orphaned TLS section handling 2014-01-24 08:56:07 -08:00
pr16498b.d Add another testcase for PR ld/16498 2014-01-24 09:03:21 -08:00
pr16498b.t Add another testcase for PR ld/16498 2014-01-24 09:03:21 -08:00
pr17068.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068a.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068b.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068c.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068d.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068e.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068ez.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17615.d Fix pr17615 testcase 2015-01-20 11:12:35 +10:30
pr17615.s Add a testcase for PR ld/17615 2015-01-19 09:23:29 -08:00
pr18458a.c Convert PLT reloc only if pointer equality isn't needed 2015-05-27 14:32:24 -07:00
pr18458b.c Convert PLT reloc only if pointer equality isn't needed 2015-05-27 14:32:24 -07:00
pr18458c.c Convert PLT reloc only if pointer equality isn't needed 2015-05-27 14:32:24 -07:00
preinit.c
preinit.out
provide-hidden-1.ld * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-1.s * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-2.ld * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-2.s * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-3.s * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-4.s * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-abs.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-def.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-dyn.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-dynabs.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-dynsec.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-s.ld * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-s.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-sec.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
rdynamic-1.c Add rdynamic-1 test 2014-01-29 14:30:41 -08:00
rdynamic-1.rd Add rdynamic-1 test 2014-01-29 14:30:41 -08:00
rel.c bfd/ 2013-03-20 03:44:56 +00:00
relmain.c bfd/ 2013-03-20 03:44:56 +00:00
relmain.out bfd/ 2013-03-20 03:44:56 +00:00
relocatable.d * ld-elf/orphan-region.d: xfail for spu. 2010-09-16 10:51:41 +00:00
relocatable.t
relro1.s
relro2.s
rpath-1.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
rpath-2.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
runpath-1.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
runpath-2.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
sec-to-seg-script-adjoining-pages.t
sec-to-seg-script-disjoint-pages.t
sec-to-seg-script-same-page.t
sec-to-seg.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
sec-to-seg1.s
sec-to-seg2.s
sec64k.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
seg.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
seg.s
seg.t
shared.exp Convert PLT reloc only if pointer equality isn't needed 2015-05-27 14:32:24 -07:00
simple.s
stab.d
stack-exec.rd bfd/ 2012-10-23 09:33:56 +00:00
stack-size.rd bfd/ 2012-10-23 09:33:56 +00:00
stack.s * ld-scripts/empty-aligned.d: Revert last change. Allow more 2012-10-24 23:22:48 +00:00
start.s
strtab.d Use strtab with GC and suffix merging for .strtab 2015-06-25 08:16:14 -07:00
strtab.s Use strtab with GC and suffix merging for .strtab 2015-06-25 08:16:14 -07:00
symbol1ref.s
symbol1w.s
symbol2ref.s
symbol2w.s
symbol3.s Add a testcase for warning on common symbol in archive. 2011-06-08 04:47:04 +00:00
symbol3w.s Add a testcase for warning on common symbol in archive. 2011-06-08 04:47:04 +00:00
table.s
tbss.s
tbss1.s
tbss2.s
tbss3.s PR 12763 2011-05-20 15:33:29 +00:00
tdata1.s
tdata2.s
tdata3.s PR 12763 2011-05-20 15:33:29 +00:00
textaddr1.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
textaddr2.d PR ld/13258 2011-01-08 09:38:17 +00:00
textaddr3.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
textaddr4.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
textaddr5.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
textaddr6.d PR ld/13258 2011-01-08 09:38:17 +00:00
textaddr7.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
tls_common.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tls_common.s
tls_gc.s
unknown.d
unknown2.d Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
unknown2.s
var1.d Remove the leading zero 2012-12-17 17:20:07 +00:00
var1.s Update PR ld/14962 testcase 2012-12-17 15:37:40 +00:00
var1.t Add a testcase for PR ld/14962 2012-12-17 14:53:35 +00:00
warn.out
warn1.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
warn2.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
warn3.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
weak-dyn-1.ld
weak-dyn-1.rd
weak-dyn-1a.s
weak-dyn-1b.s
weakdef1.c Add a test for weak alias 2012-07-02 14:40:19 +00:00
wrap.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
wrap1.c
wrap1.out
wrap1a.c
wrap1b.c
zlibbegin.rS Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] 2015-04-14 22:01:38 -07:00
zlibnormal.rS Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] 2015-04-14 22:01:38 -07:00