From 3328c04b103286c3422aed59b97595bbbd9bbef5 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 13 Jun 2016 11:14:57 -0700 Subject: [PATCH] Add .got.plt to testsuite/script_test_2.t The .got.plt section must be placed right after the .got section. Otherwise, GOT offset will be wrong. PR gold/20246 * testsuite/script_test_2.t: Add .got.plt after .got. --- gold/ChangeLog | 5 +++++ gold/testsuite/script_test_2.t | 1 + 2 files changed, 6 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index c1b833b6356..2819653abe2 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2016-06-13 H.J. Lu + + PR gold/20246 + * testsuite/script_test_2.t: Add .got.plt after .got. + 2016-06-10 Vladimir Radosavljevic * mips.cc (struct Mips_abiflags): New struct. diff --git a/gold/testsuite/script_test_2.t b/gold/testsuite/script_test_2.t index 0baa42817ce..0ce9408d40b 100644 --- a/gold/testsuite/script_test_2.t +++ b/gold/testsuite/script_test_2.t @@ -33,6 +33,7 @@ SECTIONS . = ALIGN(0x100); .data : { *(.data) } .got : { *(.got .toc) } + .got.plt : { *(.got.plt) } .bss : { *(.bss) } /* Now the real test. */ -- 2.30.2