]> Git Repo - binutils.git/commitdiff
ld/testsuite/
authorRoland McGrath <[email protected]>
Mon, 9 Apr 2012 16:28:34 +0000 (16:28 +0000)
committerRoland McGrath <[email protected]>
Mon, 9 Apr 2012 16:28:34 +0000 (16:28 +0000)
* 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.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/eh1.d
ld/testsuite/ld-elf/eh2.d
ld/testsuite/ld-elf/eh3.d
ld/testsuite/ld-elf/eh4.d
ld/testsuite/ld-elf/elf.exp

index e6aafbc5e1605437e591dc9a5b52601eb49ff6e2..122924c12bb8459c2821bd052c80ec59d571654f 100644 (file)
@@ -1,3 +1,15 @@
+2012-04-09  Roland McGrath  <[email protected]>
+
+       * 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.
+
 2012-04-07  David S. Miller  <[email protected]>
 
        * ld-sparc/tlssunbin32.rd: Fix regexp.
index f0874f73dc24e9e4924d4eb6907068ef2465c05f..4455b0d9cb9c069d3bdf85375fa3ac034fdde778 100644 (file)
@@ -1,6 +1,7 @@
 #source: eh1.s
 #source: eh1a.s
-#ld:
+#as: --64
+#ld: -melf_x86_64 -Ttext 0x400078
 #readelf: -wf
 #target: x86_64-*-*
 
index 1a05d7fc8fb310bc5734c999004119d034e21a2c..c5b5a73a33fb9c0c9865fdd07462d8b23e35c1d5 100644 (file)
@@ -1,6 +1,7 @@
 #source: eh1.s
 #source: eh2a.s
-#ld:
+#as: --64
+#ld: -melf_x86_64 -Ttext 0x400078
 #readelf: -wf
 #target: x86_64-*-*
 
index 1f76b8c17569949ca209d860f2a402a79e668c0f..b3bd7567c4da052a6850f7700b0381f3eaf083d4 100644 (file)
@@ -1,6 +1,7 @@
 #source: eh3.s
 #source: eh3a.s
-#ld:
+#as: --64
+#ld: -melf_x86_64 -Ttext 0x400078
 #readelf: -wf
 #target: x86_64-*-*
 
index b8f9865ebfff289431cc62bb0d1eaaef4861d91e..ad4b00807ff05e5b3b5645c09c88e1232cf6a430 100644 (file)
@@ -1,6 +1,7 @@
 #source: eh4.s
 #source: eh4a.s
-#ld: -shared
+#as: --64
+#ld: -melf_x86_64 -shared -Ttext 0x400
 #readelf: -wf
 #target: x86_64-*-*
 
index e2050fc0979e84cf58d18b684c928335c5fdb95e..e40078a83312994f45e562a485cf5758c0b46f7b 100644 (file)
@@ -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
 }
This page took 0.034941 seconds and 4 git commands to generate.