diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-12-13 12:09:39 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-12-13 12:13:34 -0800 |
commit | 14aa4ee440f85a0e4d86b7adb50c93bbf0b7fc5b (patch) | |
tree | bdacc899d360e4ac32cf5d54dd5413dceebbaf7b /ld | |
parent | 408db576c98b232de0b1a1ee3495bad0d1c704cf (diff) | |
download | gdb-14aa4ee440f85a0e4d86b7adb50c93bbf0b7fc5b.zip gdb-14aa4ee440f85a0e4d86b7adb50c93bbf0b7fc5b.tar.gz gdb-14aa4ee440f85a0e4d86b7adb50c93bbf0b7fc5b.tar.bz2 |
x86: Adjust linker tests for --disable-separate-code
Adjust linker tests for linker configured with --disable-separate-code:
1. Update expected outputs.
2. Pass -z max-page-size=0x1000 -z separate-code" to linker.
* testsuite/ld-i386/report-reloc-1.l: Updated.
* testsuite/ld-x86-64/report-reloc-1.l: Likewise.
* testsuite/ld-x86-64/pe-x86-64.exp: Pass
"-z max-page-size=0x1000 -z separate-code" to linker.
* testsuite/ld-x86-64/pr19609-4e.d: Likewise.
* testsuite/ld-x86-64/pr19609-6a.d: Likewise.
* testsuite/ld-x86-64/pr19609-6b.d: Likewise.
* testsuite/ld-x86-64/pr19609-7b.d: Likewise.
* testsuite/ld-x86-64/pr19609-7d.d: Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-i386/report-reloc-1.l | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pe-x86-64.exp | 12 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-4e.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-6a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-6b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-7b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-7d.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/report-reloc-1.l | 4 |
8 files changed, 15 insertions, 15 deletions
diff --git a/ld/testsuite/ld-i386/report-reloc-1.l b/ld/testsuite/ld-i386/report-reloc-1.l index a0293bc..d141e06 100644 --- a/ld/testsuite/ld-i386/report-reloc-1.l +++ b/ld/testsuite/ld-i386/report-reloc-1.l @@ -1,2 +1,2 @@ -tmpdir/dump: R_386_IRELATIVE \(offset: 0x0+2000, info: 0x0+2a\) against 'ifunc' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o -tmpdir/dump: R_386_RELATIVE \(offset: 0x0+2004, info: 0x0+8\) against '_start' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o +tmpdir/dump: R_386_IRELATIVE \(offset: 0x[0-9a-f]+, info: 0x0+2a\) against 'ifunc' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o +tmpdir/dump: R_386_RELATIVE \(offset: 0x[0-9a-f]+, info: 0x0+8\) against '_start' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o diff --git a/ld/testsuite/ld-x86-64/pe-x86-64.exp b/ld/testsuite/ld-x86-64/pe-x86-64.exp index f5d2c84..4734056 100644 --- a/ld/testsuite/ld-x86-64/pe-x86-64.exp +++ b/ld/testsuite/ld-x86-64/pe-x86-64.exp @@ -27,7 +27,7 @@ if {![istarget "x86_64-*-linux*"] } { run_ld_link_tests [list \ [list \ "Build pe-x86-64-1" \ - "-m elf_x86_64 --entry=begin" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ "" \ "" \ {pe-x86-64-1a.obj.bz2 pe-x86-64-1b.obj.bz2 pe-x86-64-1c.obj.bz2} \ @@ -36,7 +36,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-2" \ - "-m elf_x86_64 --entry=begin" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ "" \ "" \ {pe-x86-64-2a.obj.bz2 pe-x86-64-2b.obj.bz2 pe-x86-64-2c.obj.bz2} \ @@ -45,7 +45,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-3" \ - "-m elf_x86_64 --entry=begin" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ "" \ "" \ {pe-x86-64-3a.obj.bz2 pe-x86-64-3b.obj.bz2 pe-x86-64-3c.obj.bz2 \ @@ -55,7 +55,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-4" \ - "-m elf_x86_64 --entry=begin" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ "" \ "" \ {pe-x86-64-4a.obj.bz2 pe-x86-64-4b.obj.bz2 pe-x86-64-4c.obj.bz2 \ @@ -65,7 +65,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-5" \ - "-m elf_x86_64 --entry=begin" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ "" \ "" \ {pe-x86-64-5.obj.bz2 } \ @@ -75,7 +75,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-6" \ - "-m elf_x86_64 --entry=main" \ + "-m elf_x86_64 --entry=main -z max-page-size=0x1000 -z separate-code" \ "" \ "" \ {pe-x86-64-6.obj.bz2 } \ diff --git a/ld/testsuite/ld-x86-64/pr19609-4e.d b/ld/testsuite/ld-x86-64/pr19609-4e.d index 48adc94..ed6e6e0 100644 --- a/ld/testsuite/ld-x86-64/pr19609-4e.d +++ b/ld/testsuite/ld-x86-64/pr19609-4e.d @@ -1,6 +1,6 @@ #source: pr19609-4.s #as: --64 -mrelax-relocations=yes -#ld: -melf_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000 --no-relax +#ld: -melf_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000 --no-relax -z max-page-size=0x1000 -z separate-code #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19609-6a.d b/ld/testsuite/ld-x86-64/pr19609-6a.d index 265825d..3bad8b5 100644 --- a/ld/testsuite/ld-x86-64/pr19609-6a.d +++ b/ld/testsuite/ld-x86-64/pr19609-6a.d @@ -1,6 +1,6 @@ #source: pr19609-6.s #as: --64 -mrelax-relocations=yes -#ld: -melf_x86_64 --defsym foobar=0x80000000 +#ld: -melf_x86_64 --defsym foobar=0x80000000 -z max-page-size=0x1000 -z separate-code #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19609-6b.d b/ld/testsuite/ld-x86-64/pr19609-6b.d index 1f769ef..2723fb1 100644 --- a/ld/testsuite/ld-x86-64/pr19609-6b.d +++ b/ld/testsuite/ld-x86-64/pr19609-6b.d @@ -1,6 +1,6 @@ #source: pr19609-6.s #as: --64 -mrelax-relocations=yes -#ld: -melf_x86_64 --defsym foobar=0x80000000 --no-relax +#ld: -melf_x86_64 --defsym foobar=0x80000000 --no-relax -z max-page-size=0x1000 -z separate-code #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19609-7b.d b/ld/testsuite/ld-x86-64/pr19609-7b.d index d85e5e9..48d0b01 100644 --- a/ld/testsuite/ld-x86-64/pr19609-7b.d +++ b/ld/testsuite/ld-x86-64/pr19609-7b.d @@ -1,6 +1,6 @@ #source: pr19609-7.s #as: --64 -mrelax-relocations=yes -#ld: -melf_x86_64 -Ttext=0x80000000 --no-relax +#ld: -melf_x86_64 -Ttext=0x80000000 --no-relax -z max-page-size=0x1000 -z separate-code #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19609-7d.d b/ld/testsuite/ld-x86-64/pr19609-7d.d index 6eb5110..6e2882a 100644 --- a/ld/testsuite/ld-x86-64/pr19609-7d.d +++ b/ld/testsuite/ld-x86-64/pr19609-7d.d @@ -1,6 +1,6 @@ #source: pr19609-7.s #as: --x32 -mrelax-relocations=yes -#ld: -melf32_x86_64 -Ttext=0x80000000 --no-relax +#ld: -melf32_x86_64 -Ttext=0x80000000 --no-relax -z max-page-size=0x1000 -z separate-code #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/report-reloc-1.l b/ld/testsuite/ld-x86-64/report-reloc-1.l index 669dff4..21e9b1e 100644 --- a/ld/testsuite/ld-x86-64/report-reloc-1.l +++ b/ld/testsuite/ld-x86-64/report-reloc-1.l @@ -1,2 +1,2 @@ -tmpdir/dump: R_X86_64_IRELATIVE \(offset: 0x0+2000, info: 0x0+25, addend: 0x0+1007\) against 'ifunc' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o -tmpdir/dump: R_X86_64_RELATIVE \(offset: 0x0+2008, info: 0x0+8, addend: 0x0+1000\) against '_start' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o +tmpdir/dump: R_X86_64_IRELATIVE \(offset: 0x[0-9a-f]+, info: 0x0+25, addend: 0x[0-9a-f]+\) against 'ifunc' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o +tmpdir/dump: R_X86_64_RELATIVE \(offset: 0x[0-9a-f]+, info: 0x0+8, addend: 0x[0-9a-f]+\) against '_start' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o |