old-cross-binutils/ld/testsuite/ld-tic6x
Alan Modra a485e98ea0 Move ELF section headers to end of object file
Currently, section ordering differs a little for non-loaded reloc
sections output by ld -emit-relocs or ld -r and that after passing
such objects through objcopy.  Not that it really matters, but it
would be better for a simple objcopy to produce an unchanged output
object file.  Also, section headers are put somewhere in the middle of
the non-loaded sections, again slightly differently for ld and
objcopy.  This patch fixes these discrepancies and puts section
headers last, which is where gold puts them, and is where
bfd_from_remote_memory wrongly assumed they will be found.

bfd/
	* elf.c (assign_file_positions_except_relocs): Move section header
	placement to..
	(_bfd_elf_assign_file_positions_for_relocs): ..here.  Make static.
	* elf-bfd.h (_bfd_elf_assign_file_positions_for_relocs): Delete.
	* elflink.c (bfd_elf_final_link): Don't call above function.
gas/testsuite/
	* gas/arm/got_prel.d: Adjust for changed section header placement.
	* gas/i386/ilp32/x86-64-size-1.d: Likewise.
	* gas/i386/ilp32/x86-64-size-3.d: Likewise.
	* gas/i386/ilp32/x86-64-size-5.d: Likewise.
	* gas/i386/ilp32/x86-64-unwind.d: Likewise.
	* gas/i386/size-1.d: Likewise.
	* gas/i386/size-3.d: Likewise.
	* gas/i386/x86-64-size-1.d: Likewise.
	* gas/i386/x86-64-size-3.d: Likewise.
	* gas/i386/x86-64-size-5.d: Likewise.
	* gas/i386/x86-64-unwind.d: Likewise.
	* gas/ia64/alias-ilp32.d: Likewise.
	* gas/ia64/alias.d: Likewise.
	* gas/ia64/group-1.d: Likewise.
	* gas/ia64/group-2.d: Likewise.
	* gas/ia64/secname-ilp32.d: Likewise.
	* gas/ia64/secname.d: Likewise.
	* gas/ia64/unwind-ilp32.d: Likewise.
	* gas/ia64/unwind.d: Likewise.
	* gas/mmix/bspec-1.d: Likewise.
	* gas/mmix/bspec-2.d: Likewise.
	* gas/mmix/byte-1.d: Likewise.
	* gas/mmix/loc-1.d: Likewise.
	* gas/mmix/loc-2.d: Likewise.
	* gas/mmix/loc-3.d: Likewise.
	* gas/mmix/loc-4.d: Likewise.
	* gas/mmix/loc-5.d: Likewise.
	* gas/tic6x/scomm-directive-4.d: Likewise.
ld/testsuite/
	* ld-aarch64/emit-relocs-local-addend.d: Adjust for changed
	section header placement.
	* ld-aarch64/local-addend-r.d: Likewise.
	* ld-mmix/bspec1.d: Likewise.
	* ld-mmix/bspec2.d: Likewise.
	* ld-mmix/local1.d: Likewise.
	* ld-mmix/local3.d: Likewise.
	* ld-mmix/local5.d: Likewise.
	* ld-mmix/local7.d: Likewise.
	* ld-mmix/undef-3.d: Likewise.
	* ld-sh/sh64/crange3-cmpct.rd: Likewise.
	* ld-sh/sh64/crange3-media.rd: Likewise.
	* ld-sh/sh64/crangerel1.rd: Likewise.
	* ld-sh/sh64/crangerel2.rd: Likewise.
	* ld-tic6x/common.d: Likewise.
	* ld-tic6x/shlib-1.rd: Likewise.
	* ld-tic6x/shlib-1b.rd: Likewise.
	* ld-tic6x/shlib-1r.rd: Likewise.
	* ld-tic6x/shlib-1rb.rd: Likewise.
	* ld-tic6x/shlib-app-1.rd: Likewise.
	* ld-tic6x/shlib-app-1b.rd: Likewise.
	* ld-tic6x/shlib-app-1r.rd: Likewise.
	* ld-tic6x/shlib-app-1rb.rd: Likewise.
	* ld-tic6x/shlib-noindex.rd: Likewise.
	* ld-tic6x/static-app-1.rd: Likewise.
	* ld-tic6x/static-app-1b.rd: Likewise.
	* ld-tic6x/static-app-1r.rd: Likewise.
	* ld-tic6x/static-app-1rb.rd: Likewise.
	* ld-x86-64/ilp32-4.d: Likewise.
	* ld-x86-64/split-by-file-nacl.rd: Likewise.
	* ld-x86-64/split-by-file.rd: Likewise.
2014-09-11 00:15:51 +09:30
..
attr-arch-c62x-c62x.d
attr-arch-c62x-c64x+.d
attr-arch-c62x-c64x.d
attr-arch-c62x-c67x+.d
attr-arch-c62x-c67x.d
attr-arch-c62x-c674x.d
attr-arch-c62x.s
attr-arch-c64x+-c62x.d
attr-arch-c64x+-c64x+.d
attr-arch-c64x+-c64x.d
attr-arch-c64x+-c67x+.d
attr-arch-c64x+-c67x.d
attr-arch-c64x+-c674x.d
attr-arch-c64x+.s
attr-arch-c64x-c62x.d
attr-arch-c64x-c64x+.d
attr-arch-c64x-c64x.d
attr-arch-c64x-c67x+.d
attr-arch-c64x-c67x.d
attr-arch-c64x-c674x.d
attr-arch-c64x.s
attr-arch-c67x+-c62x.d
attr-arch-c67x+-c64x+.d
attr-arch-c67x+-c64x.d
attr-arch-c67x+-c67x+.d
attr-arch-c67x+-c67x.d
attr-arch-c67x+-c674x.d
attr-arch-c67x+.s
attr-arch-c67x-c62x.d
attr-arch-c67x-c64x+.d
attr-arch-c67x-c64x.d
attr-arch-c67x-c67x+.d
attr-arch-c67x-c67x.d
attr-arch-c67x-c674x.d
attr-arch-c67x.s
attr-arch-c674x-c62x.d
attr-arch-c674x-c64x+.d
attr-arch-c674x-c64x.d
attr-arch-c674x-c67x+.d
attr-arch-c674x-c67x.d
attr-arch-c674x-c674x.d
attr-arch-c674x.s
attr-array-4-4.d
attr-array-4-8.d
attr-array-4-16.d
attr-array-4-48.d
attr-array-4-416.d
attr-array-4-816.d
attr-array-4.s
attr-array-8-4.d
attr-array-8-8.d
attr-array-8-16.d
attr-array-8-48.d
attr-array-8-416.d
attr-array-8-816.d
attr-array-8.s
attr-array-16-4.d
attr-array-16-8.d
attr-array-16-16.d
attr-array-16-48.d
attr-array-16-416.d
attr-array-16-816.d
attr-array-16.s
attr-array-48-4.d
attr-array-48-8.d
attr-array-48-16.d
attr-array-48-48.d
attr-array-48-416.d
attr-array-48-816.d
attr-array-48.s
attr-array-416-4.d
attr-array-416-8.d
attr-array-416-16.d
attr-array-416-48.d
attr-array-416-416.d
attr-array-416-816.d
attr-array-416.s
attr-array-816-4.d
attr-array-816-8.d
attr-array-816-16.d
attr-array-816-48.d
attr-array-816-416.d
attr-array-816-816.d
attr-array-816.s
attr-compatibility-gnu-gnu.d
attr-compatibility-gnu-other.d
attr-compatibility-gnu.s
attr-compatibility-other-gnu.d
attr-compatibility-other-other.d
attr-compatibility-other.s
attr-conformance-10-10.d
attr-conformance-10-11.d
attr-conformance-10-none.d
attr-conformance-10.s
attr-conformance-11-10.d
attr-conformance-11-11.d
attr-conformance-11-none.d
attr-conformance-11.s
attr-conformance-none-10.d
attr-conformance-none-11.d
attr-conformance-none-none.d
attr-conformance-none.s
attr-dsbt-00.d
attr-dsbt-0.s
attr-dsbt-01.d
attr-dsbt-1.s
attr-dsbt-10.d
attr-dsbt-11.d
attr-pic-00.d
attr-pic-0.s
attr-pic-01.d
attr-pic-1.s
attr-pic-10.d
attr-pic-11.d
attr-pid-00.d
attr-pid-0.s
attr-pid-01.d
attr-pid-1.s
attr-pid-02.d
attr-pid-2.s
attr-pid-10.d
attr-pid-11.d
attr-pid-12.d
attr-pid-20.d
attr-pid-21.d
attr-pid-22.d
attr-stack-8-8.d
attr-stack-8-16.d
attr-stack-8-816.d
attr-stack-8.s
attr-stack-16-8.d
attr-stack-16-16.d
attr-stack-16-816.d
attr-stack-16.s
attr-stack-816-8.d
attr-stack-816-16.d
attr-stack-816-816.d
attr-stack-816.s
attr-unknown-1.d
attr-unknown-2.d
attr-unknown-3.d
attr-unknown-4.d
attr-unknown-5.d
attr-unknown-6.d
attr-unknown-7.d
attr-unknown-54-1.s
attr-unknown-55-a.s
attr-unknown-71-a.s
attr-unknown-71-b.s
attr-unknown-1000-1.s
attr-unknown-1000-2.s
attr-unknown-1024-1.s
attr-wchar-00.d
attr-wchar-0.s
attr-wchar-01.d
attr-wchar-1.s
attr-wchar-02.d
attr-wchar-2.s
attr-wchar-10.d
attr-wchar-11.d
attr-wchar-12.d
attr-wchar-20.d
attr-wchar-21.d
attr-wchar-22.d
common.d Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
common.ld
common.s
data-reloc-global-rel.d
data-reloc-global-rel.s
data-reloc-global.d
data-reloc-global.s
data-reloc-local-1.s
data-reloc-local-2.s
data-reloc-local-r-rel.d
data-reloc-local-r.d
data-reloc-local-rel.d
data-reloc-local.d
discard-unwind.ld
dsbt-be.ld ld/ 2012-06-15 15:13:41 +00:00
dsbt-index-error.d
dsbt-index.d
dsbt-index.s
dsbt-inrange.ld
dsbt-overflow.ld
dsbt.ld ld/ 2012-06-15 15:13:41 +00:00
ehtype-reloc-1-rel.d
ehtype-reloc-1.d
ehtype-reloc-1.s
generic.ld
got-reloc-global-addend-1.d
got-reloc-global-addend-1.s
got-reloc-global-addend-2.d
got-reloc-global-addend-2.s
got-reloc-global.s
got-reloc-inrange.d
got-reloc-local-1.s
got-reloc-local-2.s
got-reloc-local-r.d
got-reloc-overflow.d
mvk-reloc-global-rel.d
mvk-reloc-global-rel.s
mvk-reloc-global.d
mvk-reloc-global.s
mvk-reloc-local-1-rel.s
mvk-reloc-local-1.s
mvk-reloc-local-2-rel.s
mvk-reloc-local-2.s
mvk-reloc-local-r-rel.d
mvk-reloc-local-r.d
mvk-reloc-local-rel.d
mvk-reloc-local.d
pcr-reloc.d
pcr-reloc.s
pcrel-reloc-global-rel.d
pcrel-reloc-global.d
pcrel-reloc-global.s
pcrel-reloc-local-1.s
pcrel-reloc-local-2.s
pcrel-reloc-local-r-rel-rela.d
pcrel-reloc-local-r-rel.d
pcrel-reloc-local-r.d
pcrel-reloc-local-rel.d
pcrel-reloc-local.d
reloc-overflow-abs-s16-1.d
reloc-overflow-abs-s16-2.d
reloc-overflow-abs-s16.s
reloc-overflow-abs8-1.d
reloc-overflow-abs8-2.d
reloc-overflow-abs8.s
reloc-overflow-abs16-1.d
reloc-overflow-abs16-2.d
reloc-overflow-abs16.s
reloc-overflow-pcr-s7-1.d
reloc-overflow-pcr-s7-2.d
reloc-overflow-pcr-s7.s
reloc-overflow-pcr-s10-1.d
reloc-overflow-pcr-s10-2.d
reloc-overflow-pcr-s10.s
reloc-overflow-pcr-s12-1.d
reloc-overflow-pcr-s12-2.d
reloc-overflow-pcr-s12.s
reloc-overflow-pcr-s21-1.d
reloc-overflow-pcr-s21-2.d
reloc-overflow-pcr-s21.s
reloc-overflow-sbr-s16-1.d
reloc-overflow-sbr-s16-2.d
reloc-overflow-sbr-s16.s
reloc-overflow-sbr-u15-b-1.d
reloc-overflow-sbr-u15-b-2.d
reloc-overflow-sbr-u15-b.s
reloc-overflow-sbr-u15-h-1.d
reloc-overflow-sbr-u15-h-2.d
reloc-overflow-sbr-u15-h.s
reloc-overflow-sbr-u15-w-1.d
reloc-overflow-sbr-u15-w-2.d
reloc-overflow-sbr-u15-w.s
sbr-reloc-global-rel.d
sbr-reloc-global-rel.s
sbr-reloc-global.d
sbr-reloc-global.s
sbr-reloc-local-1-rel.s
sbr-reloc-local-1.s
sbr-reloc-local-2-rel.s
sbr-reloc-local-2.s
sbr-reloc-local-r-rel.d
sbr-reloc-local-r.d
sbr-reloc-local-rel.d
sbr-reloc-local.d
sbr.ld
shared-nopic.d
shared-nopid.d
shlib-1.dd
shlib-1.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
shlib-1.s
shlib-1.sd
shlib-1b.dd
shlib-1b.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
shlib-1b.sd
shlib-1r.dd
shlib-1r.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
shlib-1r.sd
shlib-1rb.dd
shlib-1rb.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
shlib-1rb.sd
shlib-2.s
shlib-app-1.dd
shlib-app-1.od
shlib-app-1.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
shlib-app-1.s
shlib-app-1.sd
shlib-app-1b.dd
shlib-app-1b.od
shlib-app-1b.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
shlib-app-1b.sd
shlib-app-1r.dd
shlib-app-1r.od
shlib-app-1r.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
shlib-app-1r.s
shlib-app-1r.sd
shlib-app-1rb.dd
shlib-app-1rb.od
shlib-app-1rb.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
shlib-app-1rb.sd
shlib-noindex.dd
shlib-noindex.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
shlib-noindex.sd
static-app-1.dd
static-app-1.od
static-app-1.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
static-app-1.sd
static-app-1b.dd
static-app-1b.od
static-app-1b.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
static-app-1b.sd
static-app-1r.dd
static-app-1r.od
static-app-1r.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
static-app-1r.sd
static-app-1rb.dd
static-app-1rb.od
static-app-1rb.rd Move ELF section headers to end of object file 2014-09-11 00:15:51 +09:30
static-app-1rb.sd
tic6x.exp Update copyright years 2014-03-05 22:16:15 +10:30
unwind-1.d
unwind-1.s
unwind-2.d
unwind-2.s
unwind-3.d
unwind-3.s
unwind-4.d
unwind-4.s
unwind-5.d
unwind-5.s
unwind-6.d
unwind.ld
weak-be.d
weak-data.d
weak.d
weak.s