ELF: don't re-order SHF_FILE symbols
authorJan Beulich <jbeulich@novell.com>
Tue, 8 Dec 2015 09:11:58 +0000 (10:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 8 Dec 2015 09:11:58 +0000 (10:11 +0100)
commitfbdf9406b0589e9b8bbfbbed606f3fff2d060b3c
treee3755dd2ed9ecd024559e87127a1d9590a021dfe
parent3685b09fb85dc279762e19df310dc2f30e64b044
ELF: don't re-order SHF_FILE symbols

.file directives may be used to identify the scope of local symbols,
the purpose of which gets subverted when re-ordering them. Only allow
the first of them to be moved to the first position.
gas/ChangeLog
gas/config/obj-elf.c
gas/testsuite/ChangeLog
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/file-2.d [new file with mode: 0644]
gas/testsuite/gas/elf/file-2.s [new file with mode: 0644]
gas/testsuite/gas/elf/file.d
gas/testsuite/gas/i386/ilp32/elf/file.d