5a68afcf73
2012-04-03 Roland McGrath <mcgrathr@google.com> * elf-nacl.c: New file. * elf-nacl.h: New file. * elf32-i386.c (elf_backend_modify_segment_map): Define for bfd_elf32_i386_nacl_vec. (elf_backend_modify_program_headers): Likewise. * elf64-x86-64.c (elf_backend_modify_segment_map): Define for bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec. (elf_backend_modify_program_headers): Likewise. * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here. (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here. * Makefile.in: Regenerated. * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here. (bfd_elf32_x86_64_nacl_vec): Likewise. (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise. (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise. (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise. (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise. (bfd_elf32_i386_nacl_vec): Likewise. (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise. (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise. * configure: Regenerated. binutils/testsuite/ 2012-04-03 Roland McGrath <mcgrathr@google.com> * lib/binutils-common.exp (is_elf_format): Consider *-*-nacl* to be ELF too. * binutils-all/elfedit-4.d: Add "#as: --64" option. * binutils-all/i386/i386.exp: Accept nacl targets too. * binutils-all/x86-64/x86-64.exp: Likewise. gas/testsuite/ 2012-04-03 Roland McGrath <mcgrathr@google.com> * gas/i386/k1om.d: Add not-target match for *-*-nacl*. * gas/i386/l1om.d: Likewise. ld/ 2012-04-03 Roland McGrath <mcgrathr@google.com> * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them. * emulparams/elf_nacl.sh: New file. * emulparams/elf_i386_nacl.sh: New file. * emulparams/elf32_x86_64_nacl.sh: New file. * emulparams/elf_x86_64_nacl.sh: New file. * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here. (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and eelf_x86_64_nacl.c here. (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c): New targets. * Makefile.in: Regenerated. * scripttempl/elf.sc: Handle SEPARATE_CODE cases. ld/testsuite/ 2012-04-03 Roland McGrath <mcgrathr@google.com> * ld-x86-64/ilp32-4-nacl.d: New file. * ld-x86-64/x86-64.exp: Run it. * ld-discard/discard.exp: Accept nacl targets too. * ld-elf/binutils.exp: Likewise. * ld-elf/comm-data.exp: Likewise. * ld-elf/elf.exp: Likewise. * ld-elf/tls_common.exp: Likewise. * ld-elfvers/vers.exp: Likewise. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfweak/elfweak.exp: Likewise. * ld-gc/gc.exp: Likewise. * ld-ifunc/binutils.exp: Likewise. * ld-ifunc/ifunc.exp: Likewise. * ld-linkonce/linkonce.exp:Likewise. * ld-pie/pie.exp: Likewise. * ld-shared/shared.exp: Likewise. * ld-undefined/weak-undef.exp: Likewise. * ld-unique/unique.exp: Likewise. * ld-x86-64/dwarfreloc.exp: Likewise. * ld-x86-64/line.exp: Likewise. * lib/ld-lib.exp (slurp_options): Support global array options_regsub to apply substitutions to the contents of options lines read from the file. * ld-i386/emit-relocs.d: Renamed to ... * ld-i386/emit-relocs.rd: ... this. * ld-i386/i386.exp: Accept nacl targets too. For them, use options_regsub to replace elf_i386 with elf_i386_nacl in run_dump_test cases; apply the same substitution in $i386tests; replace foo.rd expectations files with foo-nacl.rd in $i386tests. (i386tests): Change emit-relocs.d to emit-relocs.rd here. * ld-i386/emit-relocs-nacl.rd: New file. * ld-i386/plt-nacl.pd: New file. * ld-i386/plt-pic-nacl.pd: New file. * ld-i386/tlsbin-nacl.rd: New file. * ld-i386/tlsbindesc-nacl.rd: New file. * ld-i386/tlsdesc-nacl.rd: New file. * ld-i386/tlsgdesc-nacl.rd: New file. * ld-i386/tlsnopic-nacl.rd: New file. * ld-i386/tlspic-nacl.rd: New file. * ld-x86-64/x86-64.exp: Accept nacl targets too. For them, use options_regsub to replace elf_x86_64 with elf_x86_64_nacl in run_dump_test cases; apply the same substitution in $x86_64tests; replace foo.rd expectations files with foo-nacl.rd in $x86_64tests. Add explicit -melf_x86_64 to ld options in tests that need it, in case the default emulation is x32 (as it is for x86_64-nacl). * ld/testsuite/ld-x86-64/plt-nacl.pd: New file. * ld/testsuite/ld-x86-64/split-by-file-nacl.rd: New file. * ld/testsuite/ld-x86-64/tlsbin-nacl.rd: New file. * ld/testsuite/ld-x86-64/tlsbindesc-nacl.rd: New file. * ld/testsuite/ld-x86-64/tlsdesc-nacl.pd: New file. * ld/testsuite/ld-x86-64/tlsdesc-nacl.rd: New file. * ld/testsuite/ld-x86-64/tlsgdesc-nacl.rd: New file. * ld/testsuite/ld-x86-64/tlspic-nacl.rd: New file. * ld-i386/hidden2.d: Loosen regexps to match any file format variant, and not to depend on exact addresses, displacements, etc. where they are irrelevant. * ld-i386/pcrel16.d: Likewise. * ld-i386/pcrel16abs.d: Likewise. * ld-i386/pr12718.d: Likewise. * ld-i386/pr12921.d: Likewise. * ld-i386/reloc.d: Likewise. * ld-i386/tlsbin.dd: Likewise. * ld-i386/tlsbin.sd: Likewise. * ld-i386/tlsbin.td: Likewise. * ld-i386/tlsbindesc.dd: Likewise. * ld-i386/tlsbindesc.sd: Likewise. * ld-i386/tlsbindesc.td: Likewise. * ld-i386/tlsdesc.dd: Likewise. * ld-i386/tlsdesc.sd: Likewise. * ld-i386/tlsdesc.td: Likewise. * ld-i386/tlsg.sd: Likewise. * ld-i386/tlsgdesc.dd: Likewise. * ld-i386/tlsindntpoff.dd: Likewise. * ld-i386/tlsnopic.dd: Likewise. * ld-i386/tlsnopic.sd: Likewise. * ld-i386/tlspic.dd: Likewise. * ld-i386/tlspic.sd: Likewise. * ld-i386/tlspic.td: Likewise. * ld-i386/tlspie2.d: Likewise. * ld-x86-64/hidden2.d: Likewise. * ld-x86-64/pcrel16.d: Likewise. * ld-x86-64/pr12718.d: Likewise. * ld-x86-64/pr12921.d: Likewise. * ld-x86-64/protected3.d: Likewise. * ld-x86-64/tlsbin.dd: Likewise. * ld-x86-64/tlsbin.sd: Likewise. * ld-x86-64/tlsbin.td: Likewise. * ld-x86-64/tlsbindesc.dd: Likewise. * ld-x86-64/tlsbindesc.sd: Likewise. * ld-x86-64/tlsbindesc.td: Likewise. * ld-x86-64/tlsdesc.dd: Likewise. * ld-x86-64/tlsdesc.sd: Likewise. * ld-x86-64/tlsdesc.td: Likewise. * ld-x86-64/tlsg.sd: Likewise. * ld-x86-64/tlsgd5.dd: Likewise. * ld-x86-64/tlsgd6.dd: Likewise. * ld-x86-64/tlsgdesc.dd: Likewise. * ld-x86-64/tlspic.dd: Likewise. * ld-x86-64/tlspic.sd: Likewise. * ld-x86-64/tlspic.td: Likewise. * ld-x86-64/ilp32-8.d: Match any file format variant. Use a -Ttext and adjust expected results, to handle variant layouts. * ld-x86-64/ilp32-9.d: Likewise. * ld-i386/alloc.t: Remove superfluous OUTPUT_FORMAT statement. * ld-i386/pr12627.t: Likewise. * ld-x86-64/abs-l1om.d: Add target: constraint. * ld-x86-64/protected2-l1om.d: Likewise. * ld-x86-64/protected3-l1om.d: Likewise. * ld-x86-64/ilp32-4.d: Likewise. * ld-x86-64/plt.s: New file. * ld-x86-64/pltlib.s: New file. * ld-x86-64/plt.pd: New file. * ld-x86-64/x86-64.exp (x86_64tests): Add them. * ld-i386/plt.s: New file. * ld-i386/pltlib.s: New file. * ld-i386/plt.pd: New file. * ld-i386/plt-pic.s: New file. * ld-i386/plt-pic.pd: New file. * ld-i386/i386.exp (i386tests): Add them. |
||
---|---|---|
.. | ||
audit.exp | ||
audit.rd | ||
begin.c | ||
beginwarn.c | ||
binutils.exp | ||
comm-data.exp | ||
comm-data1.s | ||
comm-data1.sd | ||
comm-data2.rd | ||
comm-data2.s | ||
comm-data2.sd | ||
comm-data2.xd | ||
comm1.c | ||
commonpage1.d | ||
commonpage2.d | ||
compress.exp | ||
compress1.s | ||
compress1a.d | ||
compress1b.d | ||
compress1c.d | ||
data1.c | ||
data1.h | ||
del.cc | ||
depaudit.rd | ||
depaudit2.rd | ||
discard.ld | ||
discard1.d | ||
discard1.s | ||
discard2.d | ||
discard2.s | ||
discard3.d | ||
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 | ||
dwarf1.c | ||
dwarf1.h | ||
dwarf1.out | ||
dwarf1main.c | ||
dynamic1.d | ||
dynamic1.ld | ||
dynamic1.s | ||
dynbss1.c | ||
dynsym1.d | ||
eh-frame-hdr.d | ||
eh-frame-hdr.s | ||
eh-group.exp | ||
eh-group1.s | ||
eh-group2.s | ||
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 | ||
eh6.s | ||
elf.exp | ||
empty.d | ||
empty.s | ||
empty2.d | ||
empty2.s | ||
end.c | ||
endhidden.c | ||
endprotected.c | ||
exclude.exp | ||
exclude1.s | ||
exclude2.s | ||
exclude3.s | ||
exclude3a.d | ||
exclude3b.d | ||
exclude3c.d | ||
exclude3d.d | ||
expr1.d | ||
expr1.s | ||
expr1.t | ||
extract-symbol-1.ld | ||
extract-symbol-1.s | ||
extract-symbol-1sec.d | ||
extract-symbol-1sym.d | ||
fini.c | ||
fini.out | ||
flags1.d | ||
flags1.ld | ||
flags1.s | ||
foo.c | ||
foo.map | ||
frame.exp | ||
frame.s | ||
func1.c | ||
group.ld | ||
group1.d | ||
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 | ||
hash.d | ||
header.d | ||
header.s | ||
header.t | ||
hidden.out | ||
init-fini-arrays.d | ||
init-fini-arrays.s | ||
init-mixed.c | ||
init-mixed.out | ||
init.c | ||
init.out | ||
linkonce1.d | ||
linkonce1a.s | ||
linkonce1b.s | ||
linkonce2.d | ||
linkoncerdiff.d | ||
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 | ||
maxpage4.d | ||
maxpage4.t | ||
merge.d | ||
merge.ld | ||
merge.s | ||
merge2.d | ||
merge2.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 | ||
note-3.l | ||
note-3.s | ||
note-3.t | ||
orphan-region.d | ||
orphan-region.ld | ||
orphan-region.s | ||
orphan.d | ||
orphan.ld | ||
orphan.s | ||
orphan2.d | ||
orphan2.s | ||
orphan3.d | ||
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 | ||
pr349-1.s | ||
pr349-2.s | ||
pr349.d | ||
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 | ||
pr11304b.s | ||
pr12851.d | ||
pr12851.s | ||
pr12975.d | ||
pr12975.s | ||
pr12975.t | ||
pr13177.d | ||
pr13177.s | ||
pr13195.c | ||
pr13195.d | ||
pr13195.s | ||
pr13195.t | ||
pr13250-1.c | ||
pr13250-2.c | ||
pr13250-3.c | ||
pr13839.d | ||
pr13839.s | ||
pr13839.t | ||
preinit.c | ||
preinit.out | ||
relocatable.d | ||
relocatable.t | ||
relro1.s | ||
relro2.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 | ||
sec-to-seg1.s | ||
sec-to-seg2.s | ||
sec64k.exp | ||
seg.d | ||
seg.s | ||
seg.t | ||
shared.exp | ||
simple.s | ||
stab.d | ||
start.s | ||
symbol1ref.s | ||
symbol1w.s | ||
symbol2ref.s | ||
symbol2w.s | ||
symbol3.s | ||
symbol3w.s | ||
table.s | ||
tbss.s | ||
tbss1.s | ||
tbss2.s | ||
tbss3.s | ||
tdata1.s | ||
tdata2.s | ||
tdata3.s | ||
textaddr1.d | ||
textaddr2.d | ||
textaddr3.d | ||
textaddr4.d | ||
textaddr5.d | ||
textaddr6.d | ||
textaddr7.d | ||
tls_common.exp | ||
tls_common.s | ||
tls_gc.s | ||
unknown.d | ||
unknown2.d | ||
unknown2.s | ||
warn.out | ||
warn1.d | ||
warn2.d | ||
warn3.d | ||
weak-dyn-1.ld | ||
weak-dyn-1.rd | ||
weak-dyn-1a.s | ||
weak-dyn-1b.s | ||
wrap.exp | ||
wrap1.c | ||
wrap1.out | ||
wrap1a.c | ||
wrap1b.c | ||
zerosize1.d | ||
zerosize1.s |