Update and run PR gas/26263 linker tests for all x86 ELF targets to
accept any program header layout.
PR gas/26263
* testsuite/ld-i386/pr26263.d: Updated.
* testsuite/ld-x86-64/pr26263.d: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run gas/26263 test for all ELF
targets.
+2020-07-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/26263
+ * testsuite/ld-i386/pr26263.d: Updated.
+ * testsuite/ld-x86-64/pr26263.d: Likewise.
+ * testsuite/ld-x86-64/x86-64.exp: Run gas/26263 test for all ELF
+ targets.
+
2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
PR gas/26263
Disassembly of section .text:
-0+1000 <printk>:
+0+[a-f0-9]+ <printk>:
+[a-f0-9]+: c3 ret
Disassembly of section .init.text:
-0+1001 <foo>:
- +[a-f0-9]+: e8 fa ff ff ff call 1000 <printk>
- +[a-f0-9]+: e8 f5 ff ff ff call 1000 <printk>
+0+[a-f0-9]+ <foo>:
+ +[a-f0-9]+: e8 ([0-9a-f]{2} ){4} call [a-f0-9]+ <printk>
+ +[a-f0-9]+: e8 ([0-9a-f]{2} ){4} call [a-f0-9]+ <printk>
#pass
Disassembly of section .text:
-0+1000 <printk>:
+0+[a-f0-9]+ <printk>:
+[a-f0-9]+: c3 ret
Disassembly of section .init.text:
-0+1001 <foo>:
- +[a-f0-9]+: e8 fa ff ff ff call 1000 <printk>
- +[a-f0-9]+: e8 f5 ff ff ff call 1000 <printk>
+0+[a-f0-9]+ <foo>:
+ +[a-f0-9]+: e8 ([0-9a-f]{2} ){4} call [a-f0-9]+ <printk>
+ +[a-f0-9]+: e8 ([0-9a-f]{2} ){4} call [a-f0-9]+ <printk>
#pass
run_dump_test "pr25416-3"
run_dump_test "pr25416-4"
run_dump_test "pr26018"
+run_dump_test "pr26263"
if ![istarget "x86_64-*-linux*"] {
return
run_dump_test "tlsdesc2"
run_dump_test "pr22048"
run_dump_test "pr22929"
-run_dump_test "pr26263"
proc undefined_weak {cflags ldflags} {
set testname "Undefined weak symbol"