binutils-gdb/ld/testsuite/ld-elf
H.J. Lu 0672748ac0 Remove relocation against discarded sections for relocatable link.
bfd/

2010-04-30  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11542
	* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.

	* elf32-i386.c (elf_i386_relocate_section): Use it.
	* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.

ld/testsuite/

2010-04-30  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11542
	* ld-elf/discard.ld: New.
	* ld-elf/discard1.d: Likewise.
	* ld-elf/discard1.s: Likewise.
	* ld-elf/discard2.d: Likewise.
	* ld-elf/discard2.s: Likewise.
	* ld-elf/discard3.d: Likewise.
2010-04-30 18:27:32 +00:00
..
audit.exp bfd/ 2009-09-23 13:54:29 +00:00
audit.rd bfd/ 2009-09-23 13:54:29 +00:00
begin.c
beginwarn.c
binutils.exp update copyright dates 2009-09-02 07:25:43 +00:00
comm1.c
commonpage1.d
commonpage2.d PR ld/10569 2009-08-30 05:48:56 +00:00
data1.c
data1.h
del.cc
depaudit2.rd bfd/ 2009-09-23 13:54:29 +00:00
depaudit.rd bfd/ 2009-09-23 13:54:29 +00:00
discard1.d Remove relocation against discarded sections for relocatable link. 2010-04-30 18:27:32 +00:00
discard1.s Remove relocation against discarded sections for relocatable link. 2010-04-30 18:27:32 +00:00
discard2.d Remove relocation against discarded sections for relocatable link. 2010-04-30 18:27:32 +00:00
discard2.s Remove relocation against discarded sections for relocatable link. 2010-04-30 18:27:32 +00:00
discard3.d Remove relocation against discarded sections for relocatable link. 2010-04-30 18:27:32 +00:00
discard.ld Remove relocation against discarded sections for relocatable link. 2010-04-30 18:27:32 +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
dwarf1.c
dwarf1.h
dwarf1.out
dwarf1main.c
dwarf.exp
dynbss1.c
dynsym1.d Add --dyn-syms to readelf 2010-01-11 14:45:42 +00: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 * ld-elf/eh5.d: Don't run on hppa64. Allow non-pcrel encoding. 2009-09-08 01:15:50 +00:00
eh5.s
eh5a.s
eh5b.s
eh6.d ld/testsuite/ 2009-09-21 19:11:50 +00:00
eh6.s
eh-frame-hdr.d
eh-frame-hdr.s
eh-group1.s
eh-group2.s
eh-group.exp update copyright dates 2009-09-02 07:25:43 +00:00
elf.exp update copyright dates 2009-09-02 07:25:43 +00:00
empty2.d
empty2.s
empty.d Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
empty.s
end.c
endhidden.c
endprotected.c
exclude1.s
exclude2.s
exclude.exp update copyright dates 2009-09-02 07:25:43 +00:00
expr1.d
expr1.s
expr1.t
extract-symbol-1.ld
extract-symbol-1.s
extract-symbol-1sec.d bfd/ 2010-04-22 01:51:01 +00:00
extract-symbol-1sym.d * ld-elf/sec64k.exp: For frv-linux use "aw" sections. 2009-09-09 12:13:42 +00:00
fini.c
fini.out
flags1.d bfd: 2010-03-25 21:12:36 +00:00
flags1.ld
flags1.s
foo.c
foo.map
frame.exp update copyright dates 2009-09-02 07:25:43 +00:00
frame.s
func1.c
group1.d Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
group1a.s
group1b.s
group2.d
group3a.d Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
group3a.s
group3b.d Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
group3b.s
group4.d
group5.d
group6.d
group7.d
group8.s
group8a.d
group8b.d
group9.s
group9a.d
group9b.d
group10.d bfd/ 2010-02-19 01:47:16 +00:00
group10.s bfd/ 2010-02-19 01:47:16 +00:00
group.ld bfd/ 2010-02-19 01:47:16 +00:00
hash.d Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
header.d
header.s
header.t
hidden.out
init-fini-arrays.d Support 64bit target in ld-elf/init-fini-arrays.d. 2010-02-27 23:23:20 +00:00
init-fini-arrays.s * scripttempl/armbpabi.sc: Don't combine .init_array.* or 2010-02-27 12:34:25 +00:00
init.c
init.out
linkonce1.d * ld-elf/linkonce1.d: Accept "UNUSED" as part of the name of an 2009-08-17 09:22:18 +00:00
linkonce1a.s
linkonce1b.s
linkonce2.d * ld-elf/linkonce1.d: Accept "UNUSED" as part of the name of an 2009-08-17 09:22:18 +00:00
linkoncerdiff1.s
linkoncerdiff2.s
linkoncerdiff.d
lma.lnk
lma.s
loadaddr1.d
loadaddr1.t
loadaddr2.d
loadaddr2.t
loadaddr3.t
loadaddr3a.d
loadaddr3b.d
loadaddr.s
loadaddr.t
local1.d Checked in the missing testcases. 2009-10-07 18:33:20 +00:00
local1.map Checked in the missing testcases. 2009-10-07 18:33:20 +00:00
local1.s Checked in the missing testcases. 2009-10-07 18:33:20 +00:00
main.c
maxpage1.d
maxpage1.s
maxpage2.d
maxpage3.t
maxpage3a.d
maxpage3b.d
maxpage3c.d
maxpage4.d PR ld/10569 2009-08-30 05:48:56 +00:00
maxpage4.t PR ld/10569 2009-08-30 05:48:56 +00:00
merge2.d
merge2.s
merge.d bfd: 2010-03-25 21:12:36 +00:00
merge.ld
merge.s
multibss1.d
multibss1.s
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
orphan2.d
orphan2.s
orphan3.d typo fix 2009-05-16 03:22:28 +00:00
orphan3a.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
orphan3b.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
orphan3c.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
orphan3d.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
orphan3e.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
orphan3f.s * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, 2009-05-16 01:56:44 +00:00
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
orphan-region.d * ldlang.c (lang_insert_orphan): Place loadable orphans in the same 2010-03-16 14:14:40 +00:00
orphan-region.ld Add missing newline. 2010-03-16 14:18:06 +00: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
orphan.ld
orphan.s
overlay.d
overlay.s
overlay.t
pass.out
pr349-1.s * ld-elf/pr349-1.s, * ld-elf/pr349-2.s, * ld-elf/pr349.d: New. 2009-10-14 10:52:54 +00:00
pr349-2.s * ld-elf/pr349-1.s, * ld-elf/pr349-2.s, * ld-elf/pr349.d: New. 2009-10-14 10:52:54 +00:00
pr349.d * ld-elf/pr349-1.s, * ld-elf/pr349-2.s, * ld-elf/pr349.d: New. 2009-10-14 10:52:54 +00:00
pr9676-1.c
pr9676-2.c
pr9676-3.c
pr9676-4.c
pr9676.rd bfd/ 2009-09-24 15:56:52 +00:00
pr9679-1.c
pr9679-2.c
pr9679.rd bfd/ 2009-09-24 15:56:52 +00:00
pr11138-1.c Fix PR ld/11138 2010-01-08 03:03:16 +00:00
pr11138-1.map Fix PR ld/11138 2010-01-08 03:03:16 +00:00
pr11138-2.c Fix PR ld/11138 2010-01-08 03:03:16 +00:00
pr11138-2.map Fix PR ld/11138 2010-01-08 03:03:16 +00:00
pr11138.out Fix PR ld/11138 2010-01-08 03:03:16 +00:00
pr11304.d PR ld/11304 2010-03-19 14:49:46 +00:00
pr11304a.s PR ld/11304 2010-03-19 14:49:46 +00:00
pr11304b.s PR ld/11304 2010-03-19 14:49:46 +00:00
preinit.c
preinit.out
relocatable.d 2009-10-09 H.J. Lu <hongjiu.lu@intel.com> 2009-10-09 13:32:50 +00:00
relocatable.t 2009-10-09 H.J. Lu <hongjiu.lu@intel.com> 2009-10-09 13:32:50 +00:00
relro1.s
relro2.s
sec64k.exp * ld-elf/sec64k.exp: For frv-linux use "aw" sections. 2009-09-09 12:13:42 +00: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 bfd: 2010-03-25 21:12:36 +00:00
seg.d * ld-elf/sec64k.exp: For frv-linux use "aw" sections. 2009-09-09 12:13:42 +00:00
seg.s
seg.t
shared.exp Fix PR ld/11138 2010-01-08 03:03:16 +00:00
simple.s 2009-10-09 H.J. Lu <hongjiu.lu@intel.com> 2009-10-09 13:32:50 +00:00
stab.d
start.s
symbol1ref.s * ld-elf/sec64k.exp: For frv-linux use "aw" sections. 2009-09-09 12:13:42 +00:00
symbol1w.s
symbol2ref.s * ld-elf/sec64k.exp: For frv-linux use "aw" sections. 2009-09-09 12:13:42 +00:00
symbol2w.s
table.s
tbss1.s
tbss2.s
tbss.s
tdata1.s
tdata2.s
textaddr1.d
textaddr2.d
tls_common.exp
tls_common.s
tls_gc.s
unknown2.d
unknown2.s
unknown.d
warn1.d Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
warn2.d Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
warn.out
weak-dyn-1.ld
weak-dyn-1.rd
weak-dyn-1a.s
weak-dyn-1b.s
wrap1.c
wrap1.out
wrap1a.c
wrap1b.c
wrap.exp