old-cross-binutils/ld/testsuite/ld-elf
H.J. Lu b8871f357f Properly implement STT_COMMON
The BFD configure option, --enable-elf-stt-common, can't be to used to
verify STT_COMMON implementation with the normal binutils build.  Instead,
this patch removes it from BFD.  It adds --elf-stt-common=[no|yes] to ELF
assembler/objcopy and adds -z common/-z nocommon to ld.

A configure option, --enable-elf-stt-common, is added to gas to specify
whether ELF assembler should generate common symbols with the STT_COMMON
type by default.

Since BSF_KEEP_G is never used, it is renamed to BSF_ELF_COMMON for ELF
common symbols.

bfd/

	PR ld/19645
	* bfd.c (bfd): Change flags to 20 bits.
	(BFD_CONVERT_ELF_COMMON): New.
	(BFD_USE_ELF_STT_COMMON): Likewise.
	(BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
	BFD_USE_ELF_STT_COMMON.
	(BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
	* configure.ac: Remove --enable-elf-stt-common.
	* elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
	common symbol depending on BFD_CONVERT_ELF_COMMON and
	BFD_USE_ELF_STT_COMMON.
	* elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
	STT_COMMON.
	* elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
	STT_COMMON.
	(elf_link_convert_common_type): New function.
	(elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
	common symbol depending on BFD_CONVERT_ELF_COMMON and
	BFD_USE_ELF_STT_COMMON.  Set sym.st_info after sym.st_shndx.
	* elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
	and BFD_USE_ELF_STT_COMMON to object_flags.
	(TARGET_LITTLE_SYM): Likewise.
	* syms.c (BSF_KEEP_G): Renamed to ...
	(BSF_ELF_COMMON): This.
	* bfd-in2.h: Regenerated.
	* config.in: Likewise.
	* configure: Likewise.

binutils/

	PR ld/19645
	* NEWS: Mention --elf-stt-common= for objcopy.
	* doc/binutils.texi: Document --elf-stt-common= for objcopy.
	* objcopy.c (do_elf_stt_common): New.
	(command_line_switch): Add OPTION_ELF_STT_COMMON.
	(copy_options): Add --elf-stt-common=.
	(copy_usage): Add --elf-stt-common=.
	(copy_object): Also check do_elf_stt_common for ELF targets.
	(copy_file): Handle do_elf_stt_common.
	(copy_main): Handle OPTION_ELF_STT_COMMON.
	* readelf.c (apply_relocations): Support STT_COMMON.
	* testsuite/binutils-all/common-1.s: New file.
	* testsuite/binutils-all/common-1a.d: Likewise.
	* testsuite/binutils-all/common-1b.d: Likewise.
	* testsuite/binutils-all/common-1c.d: Likewise.
	* testsuite/binutils-all/common-1d.d: Likewise.
	* testsuite/binutils-all/common-1e.d: Likewise.
	* testsuite/binutils-all/common-1f.d: Likewise.
	* testsuite/binutils-all/common-2.s: Likewise.
	* testsuite/binutils-all/common-2a.d: Likewise.
	* testsuite/binutils-all/common-2b.d: Likewise.
	* testsuite/binutils-all/common-2c.d: Likewise.
	* testsuite/binutils-all/common-2d.d: Likewise.
	* testsuite/binutils-all/common-2e.d: Likewise.
	* testsuite/binutils-all/common-2f.d: Likewise.
	* testsuite/binutils-all/objcopy.exp
	(objcopy_test_elf_common_symbols): New proc.
	Run objcopy_test_elf_common_symbols for ELF targets

gas/

	PR ld/19645
	* NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
	for ELF assemblers.
	* as.c (flag_use_elf_stt_common): New.
	(show_usage): Add --elf-stt-common=.
	(option_values): Add OPTION_ELF_STT_COMMON.
	(std_longopts): Add --elf-stt-common=.
	(parse_args): Handle --elf-stt-common=.
	* as.h (flag_use_elf_stt_common): New.
	* config.in: Regenerated.
	* configure: Likewise.
	* configure.ac: Add --enable-elf-stt-common and define
	DEFAULT_GENERATE_ELF_STT_COMMON.
	* gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
	and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
	* doc/as.texinfo: Document --elf-stt-common=.
	* testsuite/gas/elf/common3.s: New file.
	* testsuite/gas/elf/common3a.d: Likewise.
	* testsuite/gas/elf/common3b.d: Likewise.
	* testsuite/gas/elf/common4.s: Likewise.
	* testsuite/gas/elf/common4a.d: Likewise.
	* testsuite/gas/elf/common4b.d: Likewise.
	* testsuite/gas/i386/dw2-compress-3b.d: Likewise.
	* testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
	* testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
	and common4b.
	* testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
	* testsuite/gas/i386/dw2-compress-3a.d: This.  Pass
	--elf-stt-common=no to as.
	* testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
	* testsuite/gas/i386/dw2-compressed-3a.d: This.  Pass
	--elf-stt-common=no to as.
	* testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
	dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
	of dw2-compress-3 and dw2-compressed-3.

include/

	PR ld/19645
	* bfdlink.h (bfd_link_elf_stt_common): New enum.
	(bfd_link_info): Add elf_stt_common.

ld/

	PR ld/19645
	* NEWS: Mention -z common/-z nocommon for ELF targets.
	* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
	-z common and -z nocommon.
	* ld.texinfo: Document -z common/-z nocommon.
	* lexsup.c (elf_shlib_list_options): Add -z common/-z nocommon.
	* testsuite/ld-elf/tls_common.exp: Test --elf-stt-common=no and
	--elf-stt-common=yes with assembler.
	* testsuite/ld-elfcomm/common-1.s: New file.
	* testsuite/ld-elfcomm/common-1a.d: Likewise.
	* testsuite/ld-elfcomm/common-1b.d: Likewise.
	* testsuite/ld-elfcomm/common-1c.d: Likewise.
	* testsuite/ld-elfcomm/common-1d.d: Likewise.
	* testsuite/ld-elfcomm/common-1e.d: Likewise.
	* testsuite/ld-elfcomm/common-1f.d: Likewise.
	* testsuite/ld-elfcomm/common-2.s: Likewise.
	* testsuite/ld-elfcomm/common-2a.d: Likewise.
	* testsuite/ld-elfcomm/common-2b.d: Likewise.
	* testsuite/ld-elfcomm/common-2c.d: Likewise.
	* testsuite/ld-elfcomm/common-2d.d: Likewise.
	* testsuite/ld-elfcomm/common-2e.d: Likewise.
	* testsuite/ld-elfcomm/common-2f.d: Likewise.
	* testsuite/ld-elfcomm/common-3a.rd: Likewise.
	* testsuite/ld-elfcomm/common-3b.rd: Likewise.
	* testsuite/ld-i386/pr19645.d: Likewise.
	* testsuite/ld-i386/pr19645.s: Likewise.
	* testsuite/ld-x86-64/largecomm-1.s: Likewise.
	* testsuite/ld-x86-64/largecomm-1a.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1b.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1c.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1d.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1e.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1f.d: Likewise.
	* testsuite/ld-x86-64/pr19645.d: Likewise.
	* testsuite/ld-x86-64/pr19645.s: Likewise.
	* testsuite/ld-elfcomm/elfcomm.exp: Test --elf-stt-common=yes
	with assembler.
	(assembler_generates_commons): Removed.
	Run -z common/-z nocommon tests.  Run *.d tests.
	* testsuite/ld-i386/i386.exp: Run pr19645.
	* testsuite/ld-x86-64/x86-64.exp: Likewise.
	* testsuite/ld-x86-64/dwarfreloc.exp: Test --elf-stt-common with
	assembler.  Test STT_COMMON with readelf.
2016-02-26 05:01:34 -08:00
..
attributes.d Add test to ensure that ternary linker script operators copy symbol flags. 2015-10-19 14:32:54 +01:00
attributes.ld Add test to ensure that ternary linker script operators copy symbol flags. 2015-10-19 14:32:54 +01:00
attributes.s Add test to ensure that ternary linker script operators copy symbol flags. 2015-10-19 14:32:54 +01:00
audit.exp Copyright update for binutils 2016-01-01 23:00:01 +10:30
audit.rd
begin.c
beginwarn.c
binutils.exp Copyright update for binutils 2016-01-01 23:00:01 +10:30
check-ptr-eq.c Check address of versined symbol 2015-07-27 10:11:33 -07:00
comm-data.exp Copyright update for binutils 2016-01-01 23:00:01 +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
commonpage2.d
compress.exp Copyright update for binutils 2016-01-01 23:00:01 +10:30
compress1.s Copyright update for binutils 2016-01-01 23:00:01 +10:30
compress1a.d
compress1b.d
compress1c.d
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
discard1.d Run more tests on x86_64-*-linux-gnu*/i?86-*-linux-gnu 2012-11-21 13:53:23 +00:00
discard1.s
discard2.d Run more tests on x86_64-*-linux-gnu*/i?86-*-linux-gnu 2012-11-21 13:53:23 +00:00
discard2.s
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 Copyright update for binutils 2016-01-01 23:00:01 +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
dynamic1.ld
dynamic1.s
dynbss1.c
dynsym1.d
eh-frame-hdr.d Skip eh-frame-hdr test for arc-elf targets. 2016-02-17 10:20:53 +00:00
eh-frame-hdr.s
eh-group.exp Copyright update for binutils 2016-01-01 23:00:01 +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 Mark the linker's -Bsymbolic-functions test as an expected failure for MIPS targets. 2016-01-13 10:00:49 +00:00
empty.d
empty.s
empty2.d
empty2.s
end.c
endhidden.c
endprotected.c
endsym.d m68hc11/12 and xgate config.sub weirdness 2016-01-17 12:13:43 +10:30
endsym.s Don't PROVIDE over top of common symbols 2014-12-23 23:36:50 +10:30
exclude.exp Copyright update for binutils 2016-01-01 23:00:01 +10:30
exclude1.s
exclude2.s Don't re-export common symbols 2015-10-05 14:45:17 -07:00
exclude3.s
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
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 Copyright update for binutils 2016-01-01 23:00:01 +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
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
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 Copyright update for binutils 2016-01-01 23:00:01 +10:30
frame.s
func1.c
gabiend.rt ld: relax alignment requirements of compressed .debug_* section checks 2015-12-07 17:52:25 +01:00
gabinormal.rt ld: relax alignment requirements of compressed .debug_* section checks 2015-12-07 17:52:25 +01: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
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
group5.d
group6.d
group7.d
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
group10.s
hash.d
header.d
header.s
header.t
hidden.out
indirect.exp Don't add DT_NEEDED for unmatched symbol 2016-02-01 15:49:52 -08:00
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
init-mixed.c * ld-elf/init-mixed.c: Include config.h first. 2012-05-18 02:05:23 +00:00
init-mixed.out
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 New ARC implementation. 2015-10-07 14:20:19 +01:00
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
loadaddr1.t
loadaddr2.d
loadaddr2.t
loadaddr3.t
loadaddr3a.d
loadaddr3b.d
local1.d
local1.map
local1.s
main.c
maxpage1.d
maxpage1.s
maxpage2.d
maxpage3.t
maxpage3a.d
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
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
nobits-1.d
nobits-1.s
nobits-1.t
noload-1.d
noload-1.s
noload-1.t
noload-2.d
noload-3.d
noload-3.s
noload-3.t
normal.out
note-1.d
note-1.s
note-1.t
note-2.d
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.d ld: Extend options for altering orphan handling behaviour. 2015-09-04 22:30:55 +01:00
orphan-5.l ld: Extend options for altering orphan handling behaviour. 2015-09-04 22:30:55 +01:00
orphan-6.d ld: Extend options for altering orphan handling behaviour. 2015-09-04 22:30:55 +01:00
orphan-6.l ld: Extend options for altering orphan handling behaviour. 2015-09-04 22:30:55 +01:00
orphan-7.d ld: Extend options for altering orphan handling behaviour. 2015-09-04 22:30:55 +01:00
orphan-7.map ld: Fix failures in new orphan handling tests. 2015-09-07 23:28:04 +01:00
orphan-8.d ld: Extend options for altering orphan handling behaviour. 2015-09-04 22:30:55 +01:00
orphan-8.map ld: Fix failures in new orphan handling tests. 2015-09-07 23:28:04 +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
orphan.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
orphan.ld ld: Fix failures in new orphan handling tests. 2015-09-07 23:28:04 +01:00
orphan.s
orphan2.d
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
orphan4.ld
orphan4.s
overlay.d
overlay.s
overlay.t
pass.out
pie.d Set DF_1_PIE in gld${EMULATION_NAME}_after_parse 2015-09-22 06:08:55 -07:00
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
pr9679-1.c
pr9679-2.c
pr9679.rd
pr11138-1.c
pr11138-1.map
pr11138-2.c
pr11138-2.map
pr11138.out
pr11304.d
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 m68hc11/12 and xgate config.sub weirdness 2016-01-17 12:13:43 +10:30
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 m68hc11/12 and xgate config.sub weirdness 2016-01-17 12:13:43 +10:30
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
pr18718.c Use noclone attribute only for GCC 4.5 or newer 2015-07-29 11:20:04 -07:00
pr18720.out Properly merge hidden versioned symbol 2015-08-07 05:04:35 -07:00
pr18720a.c Properly merge hidden versioned symbol 2015-08-07 05:04:35 -07:00
pr18720b.c Properly merge hidden versioned symbol 2015-08-07 05:04:35 -07:00
pr18720c.c Properly merge hidden versioned symbol 2015-08-07 05:04:35 -07:00
pr18735.d Fix PR18735 test for RL78. 2016-01-19 09:57:03 +00:00
pr18735.s Don't change the default symbol for relocatable link 2015-07-30 03:28:00 -07:00
pr19005.d Adjust the output section size to skip gap fills 2015-09-29 06:33:24 -07:00
pr19005.s Adjust the output section size to skip gap fills 2015-09-29 06:33:24 -07:00
pr19005.t Adjust the output section size to skip gap fills 2015-09-29 06:33:24 -07:00
pr19073.map Skip the unversioned definition after the default version 2015-10-12 04:57:16 -07:00
pr19073.rd Skip the unversioned definition after the default version 2015-10-12 04:57:16 -07:00
pr19073.s Skip the unversioned definition after the default version 2015-10-12 04:57:16 -07:00
pr19539.d Skip pr19539 test for cris*-*-* targets 2016-02-20 14:45:25 -08:00
pr19539.s Check reloc against IFUNC symbol only with dynamic symbols 2016-01-30 16:08:20 -08:00
pr19539.t Check reloc against IFUNC symbol only with dynamic symbols 2016-01-30 16:08:20 -08:00
pr19553.map Don't add DT_NEEDED for unmatched symbol 2016-02-01 15:49:52 -08:00
pr19553a.c Don't add DT_NEEDED for unmatched symbol 2016-02-01 15:49:52 -08:00
pr19553b.c Don't add DT_NEEDED for unmatched symbol 2016-02-01 15:49:52 -08:00
pr19553b.out Don't add DT_NEEDED for unmatched symbol 2016-02-01 15:49:52 -08:00
pr19553c.c Don't add DT_NEEDED for unmatched symbol 2016-02-01 15:49:52 -08:00
pr19553c.out Don't add DT_NEEDED for unmatched symbol 2016-02-01 15:49:52 -08:00
pr19553d.c Don't add DT_NEEDED for unmatched symbol 2016-02-01 15:49:52 -08:00
pr19553d.out Don't add DT_NEEDED for unmatched symbol 2016-02-01 15:49:52 -08:00
pr19617.s Always create dynamic sections for -E/--dynamic-list 2016-02-18 03:13:51 -08:00
pr19617a.d Enable PR ld/19617 tests only for Linux/GNU/Solaris 2016-02-18 07:48:57 -08:00
pr19617b.d Enable PR ld/19617 tests only for Linux/GNU/Solaris 2016-02-18 07:48:57 -08:00
pr19617c.d Enable PR ld/19617 tests only for Linux/GNU/Solaris 2016-02-18 07:48:57 -08:00
pr19698.d Update symbol version for symbol from linker script 2016-02-24 15:13:48 -08:00
pr19698.s Update symbol version for symbol from linker script 2016-02-24 15:13:48 -08:00
pr19698.t Update symbol version for symbol from linker script 2016-02-24 15:13:48 -08:00
pr19719a.c [x86] Resolve non-PIC undefweak symbols in executable 2016-02-26 04:55:57 -08:00
pr19719b.c [x86] Resolve non-PIC undefweak symbols in executable 2016-02-26 04:55:57 -08:00
pr19719c.c [x86] Resolve non-PIC undefweak symbols in executable 2016-02-26 04:55:57 -08:00
pr19719d.c [x86] Resolve non-PIC undefweak symbols in executable 2016-02-26 04:55:57 -08: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 Delay converting linker script defined symbols from absolute 2015-09-18 12:39:16 +09:30
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 Copyright update for binutils 2016-01-01 23:00:01 +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
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 Copyright update for binutils 2016-01-01 23:00:01 +10:30
sec-to-seg1.s
sec-to-seg2.s
sec64k.exp m68hc11/12 and xgate config.sub weirdness 2016-01-17 12:13:43 +10:30
seg.d
seg.s
seg.t
shared.exp [x86] Resolve non-PIC undefweak symbols in executable 2016-02-26 04:55:57 -08: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 Run ld-elf/strtab only on linux/gnu targets 2015-06-25 10:14:13 -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
symbolic-func.r Fix broken -Bsymbolic-functions 2015-07-25 20:41:04 +09:30
symbolic-func.s Fix broken -Bsymbolic-functions 2015-07-25 20:41:04 +09:30
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
textaddr2.d
textaddr3.d
textaddr4.d
textaddr5.d
textaddr6.d
textaddr7.d
tls_common.exp Properly implement STT_COMMON 2016-02-26 05:01:34 -08:00
tls_common.s
tls_gc.s
unknown.d
unknown2.d
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 Copyright update for binutils 2016-01-01 23:00:01 +10:30
wrap1.c
wrap1.out
wrap1a.c
wrap1b.c
zlibbegin.rS Replace -g with -ggdb3 in ld compress tests 2015-07-24 04:16:56 -07:00
zlibnormal.rS Replace -g with -ggdb3 in ld compress tests 2015-07-24 04:16:56 -07:00