From 983d5689cc07466ddc6664e10aebbb2b2fd49515 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 26 May 2021 06:48:20 -0700 Subject: x86-64: Add ilp32-12 to check R_X86_64_32 for x32 * testsuite/ld-x86-64/ilp32-12.d: New file. * testsuite/ld-x86-64/ilp32-12.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12. --- ld/testsuite/ld-x86-64/ilp32-12.d | 7 +++++++ ld/testsuite/ld-x86-64/ilp32-12.s | 5 +++++ ld/testsuite/ld-x86-64/x86-64.exp | 1 + 3 files changed, 13 insertions(+) create mode 100644 ld/testsuite/ld-x86-64/ilp32-12.d create mode 100644 ld/testsuite/ld-x86-64/ilp32-12.s (limited to 'ld/testsuite') diff --git a/ld/testsuite/ld-x86-64/ilp32-12.d b/ld/testsuite/ld-x86-64/ilp32-12.d new file mode 100644 index 0000000..ce7e179 --- /dev/null +++ b/ld/testsuite/ld-x86-64/ilp32-12.d @@ -0,0 +1,7 @@ +#as: --x32 +#ld: -shared -melf32_x86_64 +#readelf: -SW + +#... + +\[ [0-9]\] .debug_loclists .* +#pass diff --git a/ld/testsuite/ld-x86-64/ilp32-12.s b/ld/testsuite/ld-x86-64/ilp32-12.s new file mode 100644 index 0000000..91473c0 --- /dev/null +++ b/ld/testsuite/ld-x86-64/ilp32-12.s @@ -0,0 +1,5 @@ + .section .rodata +.L1: + .byte 0 + .section .debug_loclists,"",@progbits + .long .L1 - 0x1dfae diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 17fd10e..37cf998 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -521,6 +521,7 @@ run_dump_test "ilp32-8" run_dump_test "ilp32-9" run_dump_test "ilp32-10" run_dump_test "ilp32-11" +run_dump_test "ilp32-12" run_dump_test "ia32-1" run_dump_test "ia32-2" run_dump_test "ia32-3" -- cgit v1.1