diff options
Diffstat (limited to 'ld/testsuite/ld-x86-64')
-rw-r--r-- | ld/testsuite/ld-x86-64/pie1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19539a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19539b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19636-1d.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19636-1e.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19807-1a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19807-1b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19807-2b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19807-2c.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19807-2d.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19807-2e.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19939b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 25 |
13 files changed, 27 insertions, 22 deletions
diff --git a/ld/testsuite/ld-x86-64/pie1.d b/ld/testsuite/ld-x86-64/pie1.d index 3e64c150bcc..acd90b7952b 100644 --- a/ld/testsuite/ld-x86-64/pie1.d +++ b/ld/testsuite/ld-x86-64/pie1.d @@ -1,6 +1,6 @@ #name: PIE with undefined symbol #as: --64 -#ld: -pie -melf_x86_64 --noinhibit-exec +#ld: -pie -melf_x86_64 --noinhibit-exec -z notext #readelf: -s --wide #warning: \A[^\n]*\.o[^\n]*in function `_start':\n[^\n]*: undefined reference to `foo'\Z diff --git a/ld/testsuite/ld-x86-64/pr19539a.d b/ld/testsuite/ld-x86-64/pr19539a.d index 8c456d84823..3b696c58cb6 100644 --- a/ld/testsuite/ld-x86-64/pr19539a.d +++ b/ld/testsuite/ld-x86-64/pr19539a.d @@ -1,6 +1,6 @@ #source: pr19539.s #as: --64 -#ld: -pie -m elf_x86_64 -T pr19539.t +#ld: -pie -m elf_x86_64 -T pr19539.t -z notext #readelf: -r --wide Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entry: diff --git a/ld/testsuite/ld-x86-64/pr19539b.d b/ld/testsuite/ld-x86-64/pr19539b.d index f338987def7..0e50f326466 100644 --- a/ld/testsuite/ld-x86-64/pr19539b.d +++ b/ld/testsuite/ld-x86-64/pr19539b.d @@ -1,6 +1,6 @@ #source: pr19539.s #as: --x32 -#ld: -pie -m elf32_x86_64 -T pr19539.t +#ld: -pie -m elf32_x86_64 -T pr19539.t -z notext #readelf: -r --wide Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entry: diff --git a/ld/testsuite/ld-x86-64/pr19636-1d.d b/ld/testsuite/ld-x86-64/pr19636-1d.d index ccab633190c..6b33d9c91b9 100644 --- a/ld/testsuite/ld-x86-64/pr19636-1d.d +++ b/ld/testsuite/ld-x86-64/pr19636-1d.d @@ -1,6 +1,6 @@ #source: pr19636-1.s #as: --64 -#ld: -shared -m elf_x86_64 +#ld: -shared -m elf_x86_64 -z notext #readelf : -r --wide --dyn-syms Relocation section '\.rela?\..*' at offset 0x[0-9a-f]+ contains [0-9]+ entr(y|ies): diff --git a/ld/testsuite/ld-x86-64/pr19636-1e.d b/ld/testsuite/ld-x86-64/pr19636-1e.d index 85161493900..fb01a235b50 100644 --- a/ld/testsuite/ld-x86-64/pr19636-1e.d +++ b/ld/testsuite/ld-x86-64/pr19636-1e.d @@ -1,6 +1,6 @@ #source: pr19636-1.s #as: --64 -#ld: -shared -Bsymbolic -m elf_x86_64 +#ld: -shared -Bsymbolic -m elf_x86_64 -z notext #readelf : -r --wide --dyn-syms Relocation section '\.rela?\..*' at offset 0x[0-9a-f]+ contains [0-9]+ entr(y|ies): diff --git a/ld/testsuite/ld-x86-64/pr19807-1a.d b/ld/testsuite/ld-x86-64/pr19807-1a.d index f3c5390b285..6792e381fc2 100644 --- a/ld/testsuite/ld-x86-64/pr19807-1a.d +++ b/ld/testsuite/ld-x86-64/pr19807-1a.d @@ -1,6 +1,6 @@ #source: pr19807-1.s #as: --64 -#ld: -pie -melf_x86_64 -z noreloc-overflow +#ld: -pie -melf_x86_64 -z noreloc-overflow -z notext #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19807-1b.d b/ld/testsuite/ld-x86-64/pr19807-1b.d index 6af4985463c..1983a81dd9e 100644 --- a/ld/testsuite/ld-x86-64/pr19807-1b.d +++ b/ld/testsuite/ld-x86-64/pr19807-1b.d @@ -1,6 +1,6 @@ #source: pr19807-1.s #as: --x32 -#ld: -pie -melf32_x86_64 -z noreloc-overflow +#ld: -pie -melf32_x86_64 -z noreloc-overflow -z notext #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19807-2b.d b/ld/testsuite/ld-x86-64/pr19807-2b.d index 44205f2308c..8e3af447a31 100644 --- a/ld/testsuite/ld-x86-64/pr19807-2b.d +++ b/ld/testsuite/ld-x86-64/pr19807-2b.d @@ -1,6 +1,6 @@ #source: pr19807-2.s #as: --x32 -#ld: -pie -melf32_x86_64 +#ld: -pie -melf32_x86_64 -z notext #readelf: -r --wide Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entry: diff --git a/ld/testsuite/ld-x86-64/pr19807-2c.d b/ld/testsuite/ld-x86-64/pr19807-2c.d index 83ac6416242..96e92544515 100644 --- a/ld/testsuite/ld-x86-64/pr19807-2c.d +++ b/ld/testsuite/ld-x86-64/pr19807-2c.d @@ -1,6 +1,6 @@ #source: pr19807-2.s #as: --x32 -#ld: -pie -melf32_x86_64 +#ld: -pie -melf32_x86_64 -z notext #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19807-2d.d b/ld/testsuite/ld-x86-64/pr19807-2d.d index 5394615158f..413df228efa 100644 --- a/ld/testsuite/ld-x86-64/pr19807-2d.d +++ b/ld/testsuite/ld-x86-64/pr19807-2d.d @@ -1,6 +1,6 @@ #source: pr19807-2.s #as: --64 -#ld: -pie -melf_x86_64 -z noreloc-overflow +#ld: -pie -melf_x86_64 -z noreloc-overflow -z notext #readelf: -r --wide Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entry: diff --git a/ld/testsuite/ld-x86-64/pr19807-2e.d b/ld/testsuite/ld-x86-64/pr19807-2e.d index f26616a20a8..2d575962791 100644 --- a/ld/testsuite/ld-x86-64/pr19807-2e.d +++ b/ld/testsuite/ld-x86-64/pr19807-2e.d @@ -1,6 +1,6 @@ #source: pr19807-2.s #as: --64 -#ld: -pie -melf_x86_64 -z noreloc-overflow +#ld: -pie -melf_x86_64 -z noreloc-overflow -z notext #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19939b.d b/ld/testsuite/ld-x86-64/pr19939b.d index 26161515508..e239f2da0e6 100644 --- a/ld/testsuite/ld-x86-64/pr19939b.d +++ b/ld/testsuite/ld-x86-64/pr19939b.d @@ -1,6 +1,6 @@ #source: pr19939.s #as: --64 -#ld: -melf_x86_64 -shared +#ld: -melf_x86_64 -shared -z notext #readelf: -d --wide #... diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 9db16c6b6e0..07b70a4b8ab 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -212,9 +212,12 @@ set x86_64tests { "--64" { pr19827a.S }} {"Build pr19827b.so" "-melf_x86_64 -shared" "" "--64" { pr19827b.S } {} "pr19827b.so"} - {"Build pr19827" "-melf_x86_64 -pie tmpdir/pr19827a.o tmpdir/pr19827b.so" "" + {"Build pr19827" + "-melf_x86_64 -pie -z notext tmpdir/pr19827a.o tmpdir/pr19827b.so" + "" "--64" { dummy.s } {{readelf {-rW} pr19827.rd}} "pr19827"} - {"Build pr19827.so" "-melf_x86_64 -shared -Bsymbolic" "" + {"Build pr19827.so" + "-melf_x86_64 -shared -Bsymbolic -z notext" "" "--64" { pr19827a.S } {{readelf {-rW} pr19827.rd}} "pr19827.so"} {"Build pr19969.so" "-melf_x86_64 -shared" "" "--64" { pr19969a.S } {} "pr19969.so"} @@ -222,7 +225,9 @@ set x86_64tests { "--64" { pr20550a.s }} {"Build pr20550b.so" "-melf_x86_64 -shared" "" "--64" { pr20550b.s } {} "pr20550b.so"} - {"Build pr20550" "-melf_x86_64 -pie tmpdir/pr20550a.o tmpdir/pr20550b.so" "" + {"Build pr20550" + "-melf_x86_64 -pie -z notext tmpdir/pr20550a.o tmpdir/pr20550b.so" + "" "--64" { dummy.s } {} "pr20550"} } @@ -1172,7 +1177,7 @@ if { [isnative] && [check_compiler_available] } { ] \ [list \ "Build pr22001-1a" \ - "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \ + "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed,-z,notext tmpdir/pr22001-1.so" \ "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \ { pr22001-1b.c } \ {{error_output "pr22001-1a.err"}} \ @@ -1188,7 +1193,7 @@ if { [isnative] && [check_compiler_available] } { ] \ [list \ "Build pr21997-1a" \ - "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \ + "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/pr21997-1.so" \ "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \ { pr21997-1b.c } \ {{error_output "pr21997-1a.err"}} \ @@ -1263,7 +1268,7 @@ if { [isnative] && [check_compiler_available] } { ] \ [list \ "Build pr22791-1" \ - "-pie -Wl,--no-as-needed tmpdir/pr22791-1.so" \ + "-pie -Wl,--no-as-needed,-z,notext tmpdir/pr22791-1.so" \ "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \ { pr22791-1b.s } \ {{error_output "pr22791-1.err"}} \ @@ -1359,7 +1364,7 @@ if { [isnative] && [check_compiler_available] } { run_ld_link_exec_tests [list \ [list \ "Run pr22001-1b" \ - "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \ + "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed,-z,notext tmpdir/pr22001-1.so" \ "-Wa,-mx86-used-note=yes" \ { pr22001-1c.c } \ "pr22001-1b" \ @@ -1368,7 +1373,7 @@ if { [isnative] && [check_compiler_available] } { ] \ [list \ "Run pr21997-1b" \ - "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \ + "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/pr21997-1.so" \ "-Wa,-mx86-used-note=yes" \ { pr21997-1c.c } \ "pr21997-1b" \ @@ -1422,7 +1427,7 @@ if { [isnative] && [check_compiler_available] } { ] \ [list \ "Run pr25416-5f (PIE GDesc -> LE -maddress-mode=short)" \ - "-pie tmpdir/pr25416-5b.o tmpdir/pr25416-5d.o" \ + "-pie -Wl,-z,notext tmpdir/pr25416-5b.o tmpdir/pr25416-5d.o" \ "-Wa,-mx86-used-note=yes" \ { pr25416-5a.c } \ "pr25416-5f" \ @@ -1430,7 +1435,7 @@ if { [isnative] && [check_compiler_available] } { ] \ [list \ "Run pr25416-5g (PIE GDesc -> LE -maddress-mode=long)" \ - "-pie tmpdir/pr25416-5c.o tmpdir/pr25416-5d.o" \ + "-pie -Wl,-z,notext tmpdir/pr25416-5c.o tmpdir/pr25416-5d.o" \ "-Wa,-mx86-used-note=yes" \ { pr25416-5a.c } \ "pr25416-5g" \ |