This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Add .got.plt to testsuite/script_test_2.t
- From: H.J.Lu <hjl at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 13 Jun 2016 18:15:34 -0000
- Subject: [binutils-gdb] Add .got.plt to testsuite/script_test_2.t
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3328c04b103286c3422aed59b97595bbbd9bbef5
commit 3328c04b103286c3422aed59b97595bbbd9bbef5
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jun 13 11:14:57 2016 -0700
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.
Diff:
---
gold/ChangeLog | 5 +++++
gold/testsuite/script_test_2.t | 1 +
2 files changed, 6 insertions(+)
diff --git a/gold/ChangeLog b/gold/ChangeLog
index c1b833b..2819653 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gold/20246
+ * testsuite/script_test_2.t: Add .got.plt after .got.
+
2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
* mips.cc (struct Mips_abiflags): New struct.
diff --git a/gold/testsuite/script_test_2.t b/gold/testsuite/script_test_2.t
index 0baa428..0ce9408 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. */