From 7963511fbf0459fff586c3129705bfbc706770e3 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 28 Oct 2015 03:20:55 -0700 Subject: [PATCH] Add a test for PR ld/19162 PR ld/19162 * ld-x86-64/x86-64.exp: Run pr19162. * ld-x86-64/pr19162.d: New file. * ld-x86-64/pr19162a.s: Likewise. * ld-x86-64/pr19162b.s: Likewise. --- ld/testsuite/ChangeLog | 8 ++++++++ ld/testsuite/ld-x86-64/pr19162.d | 10 ++++++++++ ld/testsuite/ld-x86-64/pr19162a.s | 2 ++ ld/testsuite/ld-x86-64/pr19162b.s | 2 ++ ld/testsuite/ld-x86-64/x86-64.exp | 1 + 5 files changed, 23 insertions(+) create mode 100644 ld/testsuite/ld-x86-64/pr19162.d create mode 100644 ld/testsuite/ld-x86-64/pr19162a.s create mode 100644 ld/testsuite/ld-x86-64/pr19162b.s diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6981d70f334..f0124f999fa 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2015-10-28 H.J. Lu + + PR ld/19162 + * ld-x86-64/x86-64.exp: Run pr19162. + * ld-x86-64/pr19162.d: New file. + * ld-x86-64/pr19162a.s: Likewise. + * ld-x86-64/pr19162b.s: Likewise. + 2015-10-27 Laurent Alfonsi Christophe Monat diff --git a/ld/testsuite/ld-x86-64/pr19162.d b/ld/testsuite/ld-x86-64/pr19162.d new file mode 100644 index 00000000000..42441e9ea3b --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr19162.d @@ -0,0 +1,10 @@ +#source: pr19162a.s +#source: pr19162b.s +#as: --64 +#ld: -melf_x86_64 -shared -z max-page-size=0x200000 -z common-page-size=0x1000 +#readelf: -l --wide +#target: x86_64-*-linux* + +#... + DYNAMIC 0x0001a8 0x00000000002001a8 0x00000000002001a8 0x0000b0 0x0000b0 RW 0x8 +#pass diff --git a/ld/testsuite/ld-x86-64/pr19162a.s b/ld/testsuite/ld-x86-64/pr19162a.s new file mode 100644 index 00000000000..633ee1fa394 --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr19162a.s @@ -0,0 +1,2 @@ +.section ".AAA", "a" +.long 0x12345678 diff --git a/ld/testsuite/ld-x86-64/pr19162b.s b/ld/testsuite/ld-x86-64/pr19162b.s new file mode 100644 index 00000000000..7fc1a7908ec --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr19162b.s @@ -0,0 +1,2 @@ +.section ".AAA", "wa" +.long 0x12345678 diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 869cbe51670..63d721162bb 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -347,6 +347,7 @@ run_dump_test "pr18815" run_dump_test "pr19013" run_dump_test "pr19013-x32" run_dump_test "pr19013-nacl" +run_dump_test "pr19162" run_dump_test "pr19175" # Add $PLT_CFLAGS if PLT is expected. -- 2.30.2