diff options
author | Roland McGrath <roland@gnu.org> | 2012-04-09 16:28:34 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2012-04-09 16:28:34 +0000 |
commit | 7cf492ee5aba3cb968360d83892adf66746f84e1 (patch) | |
tree | da25351db6c60d2bd19a54346959684282bc7679 /ld/testsuite/ld-elf/elf.exp | |
parent | d324f6d66ba4ddd975973e0a494c5c9c9be532fc (diff) | |
download | gdb-7cf492ee5aba3cb968360d83892adf66746f84e1.zip gdb-7cf492ee5aba3cb968360d83892adf66746f84e1.tar.gz gdb-7cf492ee5aba3cb968360d83892adf66746f84e1.tar.bz2 |
ld/testsuite/
* ld-elf/eh1.d: Add explicit --64 to as options, and explicit
-melf_x86_64 and -Ttext to ld options, so we don't assume every
x86_64-*-* target uses --64 (vs --x32) by default or has the
same address space layout.
* ld-elf/eh2.d: Likewise.
* ld-elf/eh3.d: Likewise.
* ld-elf/eh4.d: Likewise.
* ld-elf/elf.exp: For target *-*-nacl*, use options_regsub(ld) to
map -melf_x86_64 to -melf_x86_64_nacl.
Diffstat (limited to 'ld/testsuite/ld-elf/elf.exp')
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index e2050fc..e40078a 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -37,6 +37,13 @@ if { [istarget alpha*-*-* ] } { set LDFLAGS "$LDFLAGS -Ttext-segment 0x1000000" } +if { [istarget "*-*-nacl*"] } { + # The eh[1-4] cases are written to expect ELFCLASS64 layout on x86-64. + # But the target default is ELFCLASS32. So the cases explicitly use + # -melf_x86_64 to select that, but NaCl needs a different emulation name. + set options_regsub(ld) {-melf_x86_64 -melf_x86_64_nacl} +} + if { [is_remote host] } then { remote_download host merge.ld } |