This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold][PATCH] PR gold/20246: Add .got.plt to testsuite/script_test_2.t
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Cc: Cary Coutant <ccoutant at gmail dot com>
- Date: Sun, 12 Jun 2016 09:41:01 -0700
- Subject: [gold][PATCH] PR gold/20246: Add .got.plt to testsuite/script_test_2.t
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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/testsuite/script_test_2.t | 1 +
1 file changed, 1 insertion(+)
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. */
--
2.5.5