binutils-gdb/ld/testsuite/ld-elf
Jozef Lawrynowicz 99fabbc973 Support SHF_GNU_RETAIN ELF section flag
The SHF_GNU_RETAIN section flag is an extension to the GNU ELF OSABI.
It is defined as follows:

=========================================================
Section Attribute Flags
+-------------------------------------+
| Name           | Value              |
+-------------------------------------+
| SHF_GNU_RETAIN | 0x200000 (1 << 21) |
+-------------------------------------+

SHF_GNU_RETAIN
  The link editor should not garbage collect the section.
=========================================================

The .section directive accepts the "R" flag, which indicates
SHF_GNU_RETAIN should be applied to the section.

There is not a direct mapping of SHF_GNU_RETAIN to the BFD
section flag SEC_KEEP. Keeping these flags distinct allows
SHF_GNU_RETAIN sections to be explicitly removed by placing them in
/DISCARD/.

bfd/ChangeLog:

	* elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_retain.
	(struct elf_obj_tdata): Increase has_gnu_osabi to 4 bits.
	* elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_retain
	for SHF_GNU_RETAIN.
	(_bfd_elf_final_write_processing): Report if SHF_GNU_RETAIN is
	not supported by the OSABI.
	Adjust error messages.
	* elflink.c (elf_link_input_bfd): Copy enabled has_gnu_osabi bits from
	input BFD to output BFD.
	(bfd_elf_gc_sections): gc_mark the section if SHF_GNU_RETAIN is set.

binutils/ChangeLog:

	* NEWS: Announce SHF_GNU_RETAIN support.
	* readelf.c (get_elf_section_flags): Handle SHF_GNU_RETAIN.
	Recognize SHF_GNU_RETAIN and SHF_GNU_MBIND only for supported OSABIs.
	* testsuite/binutils-all/readelf.exp: Run new tests.
	Don't run run_dump_test when there isn't an assembler available.
	* testsuite/lib/binutils-common.exp (supports_gnu_osabi): Adjust
	comment.
	* testsuite/binutils-all/readelf-maskos-1a.d: New test.
	* testsuite/binutils-all/readelf-maskos-1b.d: New test.
	* testsuite/binutils-all/readelf-maskos.s: New test.
	* testsuite/binutils-all/retain1.s: New test.
	* testsuite/binutils-all/retain1a.d: New test.
	* testsuite/binutils-all/retain1b.d: New test.

gas/ChangeLog:

	* NEWS: Announce SHF_GNU_RETAIN support.
	* config/obj-elf.c (obj_elf_change_section): Merge SHF_GNU_RETAIN bit
	between section declarations.
	(obj_elf_parse_section_letters): Handle 'R' flag.
	Handle numeric flag values within the SHF_MASKOS range.
	(obj_elf_section): Validate SHF_GNU_RETAIN usage.
	* doc/as.texi: Document 'R' flag to .section directive.
	* testsuite/gas/elf/elf.exp: Run new tests.
	* testsuite/gas/elf/section10.d: Unset SHF_GNU_RETAIN bit.
	* testsuite/gas/elf/section10.s: Likewise.
	* testsuite/gas/elf/section22.d: New test.
	* testsuite/gas/elf/section22.s: New test.
	* testsuite/gas/elf/section23.s: New test.
	* testsuite/gas/elf/section23a.d: New test.
	* testsuite/gas/elf/section23b.d: New test.
	* testsuite/gas/elf/section23b.err: New test.
	* testsuite/gas/elf/section24.l: New test.
	* testsuite/gas/elf/section24.s: New test.
	* testsuite/gas/elf/section24a.d: New test.
	* testsuite/gas/elf/section24b.d: New test.

include/ChangeLog:

	* elf/common.h (SHF_GNU_RETAIN): Define.

ld/ChangeLog:

	* NEWS: Announce support for SHF_GNU_RETAIN.
	* ld.texi (garbage collection): Document SHF_GNU_RETAIN.
	(Output Section Discarding): Likewise.
	* testsuite/ld-elf/elf.exp: Run new tests.
	* testsuite/ld-elf/retain1.s: New test.
	* testsuite/ld-elf/retain1a.d: New test.
	* testsuite/ld-elf/retain1b.d: New test.
	* testsuite/ld-elf/retain2.d: New test.
	* testsuite/ld-elf/retain2.ld: New test.
	* testsuite/ld-elf/retain2.map: New test.
	* testsuite/ld-elf/retain3.d: New test.
	* testsuite/ld-elf/retain3.s: New test.
	* testsuite/ld-elf/retain4.d: New test.
	* testsuite/ld-elf/retain4.s: New test.
	* testsuite/ld-elf/retain5.d: New test.
	* testsuite/ld-elf/retain5.map: New test.
	* testsuite/ld-elf/retain5lib.s: New test.
	* testsuite/ld-elf/retain5main.s: New test.
	* testsuite/ld-elf/retain6a.d: New test.
	* testsuite/ld-elf/retain6b.d: New test.
	* testsuite/ld-elf/retain6lib.s: New test.
	* testsuite/ld-elf/retain6main.s: New test.
2020-11-18 11:51:13 +00:00
..
attributes.d
attributes.ld
attributes.s
audit.exp
audit.rd
begin.c
beginwarn.c
binutils.exp Remove x86 NaCl target support 2020-06-30 08:56:14 -07:00
changelma.d
changelma.lnk
changelma.s
check-ptr-eq.c
comm1.c
comm-data1.s
comm-data1.sd
comm-data2.ld
comm-data2.rd
comm-data2.s
comm-data2.sd
comm-data2.xd
comm-data3.sd
comm-data3a.s
comm-data3b.s
comm-data4.d
comm-data4.s
comm-data5.d
comm-data5.s
comm-data.exp PR26580, Size and alignment of commons vs as-needed shared lib 2020-09-08 22:30:38 +09:30
commonpage1.d
commonpage2.d
compress1-alt.s
compress1.s
compress1a.d
compress1b.d
compress1c.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
compress.exp tcl global directive outside proc body does nothing (ld) 2020-06-04 16:11:19 +09:30
compressed1a.d
compressed1b.d
compressed1c.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
compressed1d-alt.d
compressed1d.d
compressed1e.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
data1.c
data1.h
data2.c
del.cc
depaudit2.rd
depaudit.rd
discard1.d
discard1.s
discard2.d
discard2.s
discard3.d
discard.ld
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
dlempty.list ld: Add --export-dynamic-symbol and --export-dynamic-symbol-list 2020-06-03 06:37:39 -07:00
dummy.c
dummy.s
dwarf1.c
dwarf1.h
dwarf1.out
dwarf1main.c
dwarf2.err
dwarf2a.c
dwarf2b.c
dwarf3.c
dwarf3.err
dwarf.exp ld: Change NOSANTIZE_CFLAGS to NOSANITIZE_CFLAGS 2020-09-03 17:17:19 -07:00
dynamic1.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
dynamic1.ld
dynamic1.s
dynamic-1.c
dynamic-1.rd ld testsuite fixes for alpha 2020-06-19 10:01:09 +09:30
dynamic-1.syms
dynbss1.c
dynsym1.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
eh1.d
eh1.s
eh1a.s
eh2.d
eh2a.s
eh3.d
eh3.s
eh3a.s
eh4.d
eh4.s
eh4a.s
eh5.d
eh5.s
eh5a.s
eh5b.s
eh6.d ld: Pass -z notext to linker for tests with DT_TEXTREL 2020-05-25 04:54:50 -07:00
eh6.s
eh-frame-hdr.d
eh-frame-hdr.s
eh-group1.s
eh-group2.s
eh-group.exp
ehdr_start-missing.d
ehdr_start-missing.t
ehdr_start-shared.d ld: Pass -z notext to linker for tests with DT_TEXTREL 2020-05-25 04:54:50 -07:00
ehdr_start-strongref.s
ehdr_start-userdef.d
ehdr_start-userdef.t
ehdr_start-weak.d
ehdr_start.d
ehdr_start.s
elf.exp Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
empty2.d
empty2.s
empty-implib.out
empty.d
empty.s
end.c
endhidden.c
endprotected.c
endsym.d
endsym.s
exclude1.s
exclude2.s
exclude3.s
exclude3a.d
exclude3b.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
exclude3c.d
exclude.exp Remove perror from ld_assemble, ld_compile and ld_nm 2020-06-20 15:53:37 +09:30
export-class-def.s
export-class-dep.s
export-class-lib.s
export-class-lib.ver
export-class-ref.s
export-class.exp
export-class.sd
export-class.vd
expr1.d
expr1.s
expr1.t
fini0.s
fini1.s
fini2.s
fini3.s
fini.c
fini.out
finin.s
flags1.d
flags1.ld
flags1.s
foo0.s
foo1.s
foo2.s
foo3.s
foo.c
foo.map
foon.s
frame.exp tcl global directive outside proc body does nothing (ld) 2020-06-04 16:11:19 +09:30
frame.s
func1.c
gabiend.rt
gabinormal.rt
gap.s
global1.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
globalaudit.rd
gnubegin.rS
gnunormal.rS
group1.d solaris XPASS ld-elf/group1 2020-06-30 14:26:05 +09:30
group1a.s
group1b.s
group2.d
group3a.d
group3a.s
group3b.d
group3b.s
group4.d
group5.d
group6.d
group7.d
group8.s
group8a.d
group8b.d
group9.s
group9a.d
group9b.d
group10.d
group10.s
group11.d
group12.d
group12.ld
group.ld
hash.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
header.d
header.s
header.t
hidden.out
implib.rd
implib.s
indirect1a.c
indirect1b.c Use __asm__ rather than asm in ld testsuite 2020-06-16 22:13:20 +09:30
indirect1c.c
indirect2.c Use __asm__ rather than asm in ld testsuite 2020-06-16 22:13:20 +09:30
indirect3.out
indirect3a.c
indirect3b.c Use __asm__ rather than asm in ld testsuite 2020-06-16 22:13:20 +09:30
indirect3c.c
indirect4.out
indirect4a.c
indirect4b.c Use __asm__ rather than asm in ld testsuite 2020-06-16 22:13:20 +09:30
indirect4c.c
indirect5.map
indirect5.out
indirect5a.c
indirect5b.c
indirect6a.c
indirect.exp ld: Change NOSANTIZE_CFLAGS to NOSANITIZE_CFLAGS 2020-09-03 17:17:19 -07:00
init0.s
init1.s
init2.s
init3.s
init-fini-arrays.d
init-fini-arrays.s
init-mixed.c
init-mixed.out
init.c
init.out
initn.s
interleave-0.d
interleave-4.d
interleave.ld
interleave.s
libbarw.rd
linkinfo1.s
linkinfo1a.d
linkinfo1b.d
linkonce1.d
linkonce1a.s
linkonce1b.s
linkonce2.d
linkoncerdiff1.s
linkoncerdiff2.s
linkoncerdiff.d
linux-x86.exp ld: Change NOSANTIZE_CFLAGS to NOSANITIZE_CFLAGS 2020-09-03 17:17:19 -07:00
linux-x86.S
lma.lnk
lma.s
loadaddr1.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
loadaddr1.t
loadaddr2.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
loadaddr2.t
loadaddr3.t
loadaddr3a.d
loadaddr3b.d
loadaddr.s
loadaddr.t
local1.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
local1.map
local1.s
main.c
maxpage1.d
maxpage1.s
maxpage2.d
maxpage3.t
maxpage3a.d
maxpage3b.d
maxpage3c.d
maxpage4.d
maxpage4.t
maxpage5.d
maxpage5.s
maxpage5.t
mbind1.s
mbind1a.d
mbind1b.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
mbind1c.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
mbind2a.s
mbind2b.c
merge2.d
merge2.s
merge3.d
merge3.s
merge.d
merge.ld
merge.s
multibss1.d
multibss1.s
needed1.out
needed1a.c
needed1b.c
needed1c.c
needed2.ver
needed2a.c
needed2b.c
needed2c.c
needed3.c
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
non-contiguous.d
non-contiguous.ld CSKY: Support attribute section. 2020-08-28 17:23:24 +08:00
non-contiguous.s
normal.out
note1_1.s
note1_2.s
note1.r
note-1.d
note-1.s
note-1.t
note-2.d
note-2.s
note-2.t
note-3.l
note-3.s
note-3.t
notes.exp
now-1.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
now-2.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
now-3.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
now-4.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
orphan2.d
orphan2.s
orphan3.d
orphan3a.s
orphan3b.s
orphan3c.s
orphan3d.s
orphan3e.s
orphan3f.s
orphan4.d
orphan4.ld
orphan4.s
orphan-5.d
orphan-5.l
orphan-6.d
orphan-6.l
orphan-7.d
orphan-7.map
orphan-8.d
orphan-8.map
orphan-9.d
orphan-9.ld
orphan-9.s
orphan-10.d
orphan-10.s
orphan-11.d
orphan-11.ld
orphan-11.s
orphan-12.d
orphan-12.s
orphan-region.d
orphan-region.ld
orphan-region.s
orphan.d
orphan.ld
orphan.s
overlay.d
overlay.s
overlay.t
pass.out
passall.out Fix x86 ld testsuite fails with glibc < 2.28 2020-06-10 22:19:07 +09:30
pie.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr349-1.s
pr349-2.s
pr349.d
pr2404.out
pr2404a.c
pr2404b.c
pr9676-1.c
pr9676-2.c
pr9676-3.c
pr9676-4.c
pr9676.rd ld testsuite fixes for alpha 2020-06-19 10:01:09 +09:30
pr9679-1.c
pr9679-2.c
pr9679.rd ld testsuite fixes for alpha 2020-06-19 10:01:09 +09:30
pr11138-1.c
pr11138-1.map
pr11138-2.c
pr11138-2.map
pr11138.out
pr11304.d pr11304.d: Skip tic6x-*-elf 2020-06-07 08:47:02 -07:00
pr11304a.s
pr11304b.s
pr12851.d
pr12851.s
pr12975.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr12975.s
pr12975.t
pr13177.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr13177.s
pr13195.c
pr13195.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr13195.s
pr13195.t
pr13250-1.c
pr13250-2.c
pr13250-3.c
pr13839.d
pr13839.s
pr13839.t
pr14052.d
pr14052.t
pr14156a.d
pr14156b.d
pr14156c.d
pr14156c.t
pr14170a.s
pr14170b.s
pr14170c.s
pr14323-1.c
pr14323-2.c Use __asm__ rather than asm in ld testsuite 2020-06-16 22:13:20 +09:30
pr14525.c
pr14525.out
pr14862-1.c
pr14862-2.c
pr14862.map
pr14862.out
pr14926.d
pr14926.s
pr16322.d Emit a warning when -z relro is unsupported 2020-06-19 09:50:20 +09:30
pr16322.s
pr16452.map
pr16452.od
pr16452a.c
pr16452b.c
pr16457.od
pr16496a.c
pr16496a.map
pr16496b.c
pr16496b.od
pr16498a.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr16498a.s
pr16498a.t
pr16498b.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr16498b.t
pr17068.s
pr17068a.s
pr17068b.s
pr17068c.s
pr17068d.s
pr17068e.s
pr17068ez.s
pr17550-1.s
pr17550-2.s
pr17550-3.s
pr17550-4.s
pr17550a.d
pr17550b.d
pr17550c.d
pr17550d.d
pr17615.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr17615.s
pr18458a.c
pr18458b.c
pr18458c.c
pr18718.c
pr18720.out
pr18720.rd
pr18720a.c
pr18720b.c Use __asm__ rather than asm in ld testsuite 2020-06-16 22:13:20 +09:30
pr18720c.c
pr18735.d
pr18735.s
pr19005.d
pr19005.s
pr19005.t
pr19073.map
pr19073.rd
pr19073.s
pr19162.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr19162a.s
pr19162b.s
pr19539.d PR ld/22909 amendment; don't xfail ld-elf/pr19539.d for cris*-*-*. 2020-05-27 23:25:53 +02:00
pr19539.s
pr19539.t
pr19553.map
pr19553a.c
pr19553b.c
pr19553b.out
pr19553c.c Re: Use __asm__ rather than asm in ld testsuite 2020-06-16 22:44:13 +09:30
pr19553c.out
pr19553d.c
pr19553d.out
pr19579a.c
pr19579b.c
pr19617.s
pr19617a.d
pr19617b.d
pr19617c.d
pr19698.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr19698.s
pr19698.t
pr19719a.c
pr19719b.c
pr19719c.c
pr19719d.c
pr19789.d
pr19789.s
pr20513a.d
pr20513a.s
pr20513b.d
pr20513b.s
pr20513c.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr20513d.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr20513e.d
pr20513f.d
pr20528a.d
pr20528a.s
pr20528b.d
pr20528b.s
pr20828-a.sd
pr20828-b.sd
pr20828-c.sd
pr20828-d.sd
pr20828-e.sd
pr20828-v.ld
pr20828-v.od
pr20828-v.s
pr20828-v.ver
pr20828.ld
pr20828.s
pr20828.ver
pr20995-2so.r
pr20995.r
pr20995a.s
pr20995b.s
pr20995c.s
pr21086.c
pr21086.list
pr21233-e.ld
pr21233-l.s
pr21233-l.sd
pr21233.ld
pr21233.s
pr21233.sd
pr21384.d
pr21384.dl
pr21384.ld
pr21384.s
pr21389.map
pr21389.s
pr21389a.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21389b.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21389c.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562a.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562a.s
pr21562a.t
pr21562b.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562b.s
pr21562b.t
pr21562c.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562c.t
pr21562d.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562d.t
pr21562e.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562f.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562g.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562h.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562i.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562j.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562k.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562l.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562m.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21562n.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21703-1.s
pr21703-2.s
pr21703-3.s
pr21703-4.s
pr21703-r.sd
pr21703-shared.sd
pr21703.sd
pr21703.ver
pr21884.d
pr21884.t
pr21884a.s
pr21884b.s
pr21903.s
pr21903a.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21903b.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21903c.d
pr21903d.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr21903e.d
pr21904.d
pr21904.s
pr21964-1a.c
pr21964-1b.c
pr21964-1c.c
pr21964-2a.c
pr21964-2b.c
pr21964-2c.c
pr21964-3a.c
pr21964-3c.c
pr21964-4.c
pr21964-5.c
pr21978.od
pr21978a.c
pr21978b.c
pr22150.vd
pr22150.ver
pr22150a.s
pr22150b.s
pr22263-1.rd
pr22263-1a.c
pr22263-1b.c
pr22269-1.c
pr22269-1.rd
pr22269.s
pr22269a.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr22269b.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr22319.d
pr22319.s
pr22374-1.r
pr22374-2.r
pr22374a.s
pr22374b.s
pr22393-1.s
pr22393-1a.d Emit a warning when -z relro is unsupported 2020-06-19 09:50:20 +09:30
pr22393-1b.d Emit a warning when -z relro is unsupported 2020-06-19 09:50:20 +09:30
pr22393-1c.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr22393-1d.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr22393-1e.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr22393-1f.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr22393-2a.c
pr22393-2a.rd
pr22393-2b.c
pr22393-2b.rd
pr22423.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr22450.d
pr22450.s
pr22471.t
pr22471a.s
pr22471b.s
pr22649-1.s
pr22649-2a.s
pr22649-2ab-mips.msg
pr22649-2b.s
pr22649-2cd-mips.msg
pr22649.msg
pr22677.d
pr22677.s
pr22836-1.s
pr22836-1a.d
pr22836-1b.d
pr22836-2.d
pr22836-2.s
pr23161.map
pr23161a.c
pr23161a.rd
pr23161b.c
pr23161b.rd
pr23161c.c
pr23161c.rd
pr23161d.rd
pr23162.map
pr23162.rd
pr23162a.c
pr23162b.c
pr23428.c Use __asm__ rather than asm in ld testsuite 2020-06-16 22:13:20 +09:30
pr23591.d
pr23591a.s
pr23591b.s
pr23591c.s
pr23648.d
pr23648.s
pr23648.t
pr23658-1a.d
pr23658-1a.s
pr23658-1b.d
pr23658-1b.s
pr23658-1c.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr23658-1c.s
pr23658-1d.s
pr23658-2.rd
pr23658-3.d
pr23658-3.s
pr23658-3.t
pr23900-1-32.rd
pr23900-1-64.rd
pr23900-1.d
pr23900-1.s
pr23900-2.s
pr23900-2a.d
pr23900-2b.d
pr24511.d
pr24526.d
pr24526.s
pr24819.d
pr24819.s
pr24920.err
pr25021.d
pr25021.s
pr25022.d
pr25022.s
pr25022.t
pr25458.map
pr25458.rd
pr25458a.s
pr25458b.s
pr25490-1.d
pr25490-1.s
pr25490-2-16.rd
pr25490-2-32.rd
pr25490-2-64.rd
pr25490-2.s
pr25490-3-16.rd
pr25490-3-32.rd
pr25490-3-64.rd
pr25490-3.s
pr25490-4-16.rd
pr25490-4-32.rd
pr25490-4-64.rd
pr25490-4.s
pr25490-5-16.rd
pr25490-5-32.rd
pr25490-5-64.rd
pr25490-5.s
pr25490-6-16.rd
pr25490-6-32.rd
pr25490-6-64.rd
pr25490-6.s
pr25708.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
pr25749-1.c Fix x86 ld testsuite fails with glibc < 2.28 2020-06-10 22:19:07 +09:30
pr25749-1a.c
pr25749-1b.c
pr25749-1b.err
pr25749-1c.c
pr25749-1d.c
pr25749-2.c Fix x86 ld testsuite fails with glibc < 2.28 2020-06-10 22:19:07 +09:30
pr25749-2a.s
pr25749-2b.s
pr25749.rd
pr25754-1a.c
pr25754-1b.s
pr25754-2a.c
pr25754-2b.s
pr25754-3a.c
pr25754-3b.s
pr25754-4a.c
pr25754-4b.s
pr25754-4c.s
pr25754-5a.c
pr25754-5b.s
pr25754-5c.s
pr25754-6a.c
pr25754-6b.s
pr26094-1.ver ELF: Properly handle section symbols 2020-06-10 05:31:31 -07:00
pr26094-1a.c ELF: Properly handle section symbols 2020-06-10 05:31:31 -07:00
pr26094-1a.rd ELF: Properly handle section symbols 2020-06-10 05:31:31 -07:00
pr26094-1b.c Fix a compile time warning in the linker testsuite when compiling using clang. 2020-06-11 09:27:41 +01:00
pr26094-1b.rd ELF: Properly handle section symbols 2020-06-10 05:31:31 -07:00
pr26094-1c.c ELF: Properly handle section symbols 2020-06-10 05:31:31 -07:00
pr26302.nd elf: Keep only one '@' for undefined versioned symbols 2020-08-22 08:32:02 -07:00
pr26302.rd elf: Keep only one '@' for undefined versioned symbols 2020-08-22 08:32:02 -07:00
pr26302.ver nm: Remove --with-symbol-versions 2020-08-10 05:17:41 -07:00
pr26302a.c nm: Remove --with-symbol-versions 2020-08-10 05:17:41 -07:00
pr26302b.c nm: Remove --with-symbol-versions 2020-08-10 05:17:41 -07:00
pr26391.nd Re: elf: Add -z unique-symbol 2020-09-13 18:42:12 +09:30
pr26391.out elf: Add -z unique-symbol to avoid duplicated local symbol names 2020-09-12 05:37:43 -07:00
pr26391a.c elf: Add -z unique-symbol to avoid duplicated local symbol names 2020-09-12 05:37:43 -07:00
pr26391b.c elf: Add -z unique-symbol to avoid duplicated local symbol names 2020-09-12 05:37:43 -07:00
pr26391c.c elf: Add -z unique-symbol to avoid duplicated local symbol names 2020-09-12 05:37:43 -07:00
pr26391d.c elf: Add -z unique-symbol to avoid duplicated local symbol names 2020-09-12 05:37:43 -07:00
pr26580-1.sd PR26580, Size and alignment of commons vs as-needed shared lib 2020-09-08 22:30:38 +09:30
pr26580-2.sd Re: PR26580, Size and alignment of commons vs as-needed shared lib 2020-09-10 18:58:51 +09:30
pr26580-3.out PR26580, Size and alignment of commons vs as-needed shared lib 2020-09-08 22:30:38 +09:30
pr26580-4.out PR26580, Size and alignment of commons vs as-needed shared lib 2020-09-08 22:30:38 +09:30
pr26580-a.c PR26580, Size and alignment of commons vs as-needed shared lib 2020-09-08 22:30:38 +09:30
pr26580-a.s PR26580, Size and alignment of commons vs as-needed shared lib 2020-09-08 22:30:38 +09:30
pr26580-b.c PR26580, Size and alignment of commons vs as-needed shared lib 2020-09-08 22:30:38 +09:30
pr26580-b.s PR26580, Size and alignment of commons vs as-needed shared lib 2020-09-08 22:30:38 +09:30
pr26590.err ld: Add more tests for --as-needed 2020-09-10 07:52:20 -07:00
pr26590a.c ld: Add more tests for --as-needed 2020-09-10 07:52:20 -07:00
pr26590b.c ld: Add more tests for --as-needed 2020-09-10 07:52:20 -07:00
pr26590c.c ld: Add more tests for --as-needed 2020-09-10 07:52:20 -07:00
pr26590d.c ld: Add more tests for --as-needed 2020-09-10 07:52:20 -07:00
pr26681.d Allow note sections to be discarded when they are linked to another discarded secction. 2020-10-02 11:08:19 +01:00
pr26681.l Allow note sections to be discarded when they are linked to another discarded secction. 2020-10-02 11:08:19 +01:00
pr26681.s Allow note sections to be discarded when they are linked to another discarded secction. 2020-10-02 11:08:19 +01:00
preinit.c
preinit.out
provide-hidden-1.ld
provide-hidden-1.s
provide-hidden-2.ld
provide-hidden-2.s
provide-hidden-3.s
provide-hidden-4.s
provide-hidden-abs.nd
provide-hidden-def.nd
provide-hidden-dyn.nd
provide-hidden-s.ld
provide-hidden-s.nd
provide-hidden-sec.nd
provide-hidden.exp
rdynamic-1.c
rdynamic-1.rd ld testsuite fixes for alpha 2020-06-19 10:01:09 +09:30
readelf.exp
rel.c
relmain.c
relmain.out
reloc-discard-warn.d
reloc-discard.d Don't xfail nds32 for ld-elf/reloc-discard test 2020-06-30 14:26:05 +09:30
reloc-discard.ld
reloc-discard.s
relocatable.d
relocatable.t
relro1.s
relro2.s
retain1.s Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain1a.d Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain1b.d Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain2.d Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain2.ld Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain2.map Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain3.d Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain3.s Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain4.d Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain4.s Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain5.d Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain5.map Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain5lib.s Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain5main.s Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain6a.d Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain6b.d Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain6lib.s Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
retain6main.s Support SHF_GNU_RETAIN ELF section flag 2020-11-18 11:51:13 +00:00
rpath-1.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
rpath-2.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
runpath-1.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
runpath-2.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
sec64k.exp MIPS: Make the IRIX naming of local section symbols consistent 2020-07-29 20:56:41 +01:00
sec-to-seg1.s
sec-to-seg2.s
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
seg.d
seg.s
seg.t
shared.exp Add -Av9 to AFLAGS_PIC and AFLAGS_PIE in the ld test suite on SPARC. 2020-09-16 16:20:51 +01:00
simple.s
size-1.d
size-1.s
size-1.t
size-2.d
size-2.s
size-2.t
sizeof.s
sizeofa.d
sizeofb.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
sizeofc.d
stab.d
stack-exec.rd
stack-noexec.rd
stack-size.rd
stack.s
start.s
startof.s
startofa.d
startofb.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
startofc.d
strtab.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
strtab.s
symbol1ref.s
symbol1w.s
symbol2ref.s
symbol2w.s
symbol3.s
symbol3w.s
symbolic-func.r
symbolic-func.s
table.s
tbss1.s
tbss2.s
tbss3.s
tbss.s
tdata1.s
tdata2.s
tdata3.s
textaddr1.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
textaddr2.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
textaddr3.d
textaddr4.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
textaddr5.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
textaddr6.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
textaddr7.d
textrel.map
textrel.rd
textrel.s
textrel.warn
tls_common.exp ecoff testsuite fixes 2020-06-20 10:59:11 +09:30
tls_common.s
tls_gc.s
tls.exp Add -Av9 to AFLAGS_PIC and AFLAGS_PIE in the ld test suite on SPARC. 2020-09-16 16:20:51 +01:00
unknown2.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
unknown2.s
unknown.d
var1.d microblaze-linux XPASS ld-elf/var1 2020-06-30 13:32:04 +09:30
var1.s
var1.t
ver_def.ld
ver_def.s
ver_def.vd
ver_def.ver
warn1.d ld: Don't xfail ld-elf/warn[12] on 64-bit Solaris/SPARC 2020-04-18 22:17:24 +02:00
warn2.d ld: Don't xfail ld-elf/warn[12] on 64-bit Solaris/SPARC 2020-04-18 22:17:24 +02:00
warn3.d
warn.out
weak-dyn-1.ld
weak-dyn-1.rd
weak-dyn-1a.s
weak-dyn-1b.s
weakdef1.c
wrap1.c
wrap1.out
wrap1a.c
wrap1b.c
wrap.exp
x86-feature-1a.rd x86: Support GNU_PROPERTY_X86_ISA_1_BASELINE marker 2020-10-30 06:50:10 -07:00
x86-feature-1b.rd x86: Support GNU_PROPERTY_X86_ISA_1_BASELINE marker 2020-10-30 06:50:10 -07:00
x86-feature-1c.rd x86: Support GNU_PROPERTY_X86_ISA_1_BASELINE marker 2020-10-30 06:50:10 -07:00
x86-feature-1d.rd x86: Support GNU_PROPERTY_X86_ISA_1_BASELINE marker 2020-10-30 06:50:10 -07:00
x86-feature-1e.rd x86: Support GNU_PROPERTY_X86_ISA_1_BASELINE marker 2020-10-30 06:50:10 -07:00
zlibbegin.rS Ensure that compressed sections that have an ELF compression header structure at the start are correctly aligned. 2020-08-20 15:03:21 +01:00
zlibnormal.rS Ensure that compressed sections that have an ELF compression header structure at the start are correctly aligned. 2020-08-20 15:03:21 +01:00