x86-64: Run pr22001-1b on x32
Run pr22001-1b on x32 since R_X86_64_32S relocation can be turned into dynamic R_X86_64_32 relocation which won't overflow on x32. * testsuite/ld-x86-64/x86-64.exp: Run pr22001-1b on x32.
This commit is contained in:
parent
663c44ac4d
commit
28e6a46bcb
20
ld/ChangeLog
20
ld/ChangeLog
|
@ -1,16 +1,20 @@
|
||||||
|
2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* testsuite/ld-x86-64/x86-64.exp: Run pr22001-1b on x32.
|
||||||
|
|
||||||
2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/22001
|
PR ld/22001
|
||||||
* testsuite/ld-i386/i386.exp: Run -z nocopyreloc tests.
|
* testsuite/ld-i386/i386.exp: Run -z nocopyreloc tests.
|
||||||
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
||||||
* ld/testsuite/ld-i386/pr22001-1a.c: New file.
|
* testsuite/ld-i386/pr22001-1a.c: New file.
|
||||||
* ld/testsuite/ld-i386/pr22001-1b.c: Likewise.
|
* testsuite/ld-i386/pr22001-1b.c: Likewise.
|
||||||
* ld/testsuite/ld-i386/pr22001-1c.S: Likewise.
|
* testsuite/ld-i386/pr22001-1c.S: Likewise.
|
||||||
* ld/testsuite/ld-x86-64/pr22001-1a.c: Likewise.
|
* testsuite/ld-x86-64/pr22001-1a.c: Likewise.
|
||||||
* ld/testsuite/ld-x86-64/pr22001-1a.err: Likewise.
|
* testsuite/ld-x86-64/pr22001-1a.err: Likewise.
|
||||||
* ld/testsuite/ld-x86-64/pr22001-1b.c: Likewise.
|
* testsuite/ld-x86-64/pr22001-1b.c: Likewise.
|
||||||
* ld/testsuite/ld-x86-64/pr22001-1b.err: Likewise.
|
* testsuite/ld-x86-64/pr22001-1b.err: Likewise.
|
||||||
* ld/testsuite/ld-x86-64/pr22001-1c.c: Likewise.
|
* testsuite/ld-x86-64/pr22001-1c.c: Likewise.
|
||||||
|
|
||||||
2017-08-17 Andrew Burgess <andrew.burgess@embecosm.com>
|
2017-08-17 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
|
|
|
@ -1056,6 +1056,22 @@ if { [isnative] && [which $CC] != 0 } {
|
||||||
{{error_output "pr22001-1a.err"}} \
|
{{error_output "pr22001-1a.err"}} \
|
||||||
"pr22001-1a" \
|
"pr22001-1a" \
|
||||||
] \
|
] \
|
||||||
|
]
|
||||||
|
|
||||||
|
if {[istarget "x86_64-*-linux*-gnux32"]} {
|
||||||
|
run_ld_link_exec_tests [list \
|
||||||
|
[list \
|
||||||
|
"Run pr22001-1b" \
|
||||||
|
"$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
|
||||||
|
"" \
|
||||||
|
{ pr22001-1c.c } \
|
||||||
|
"pr22001-1b" \
|
||||||
|
"pass.out" \
|
||||||
|
"$NOPIE_CFLAGS" \
|
||||||
|
] \
|
||||||
|
]
|
||||||
|
} else {
|
||||||
|
run_cc_link_tests [list \
|
||||||
[list \
|
[list \
|
||||||
"Build pr22001-1b" \
|
"Build pr22001-1b" \
|
||||||
"$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
|
"$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
|
||||||
|
@ -1065,6 +1081,7 @@ if { [isnative] && [which $CC] != 0 } {
|
||||||
"pr22001-1b" \
|
"pr22001-1b" \
|
||||||
] \
|
] \
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
|
||||||
run_ld_link_exec_tests [list \
|
run_ld_link_exec_tests [list \
|
||||||
[list \
|
[list \
|
||||||
|
|
Loading…
Reference in New Issue