[gold][PATCH] PR gold/20246: Add .got.plt to testsuite/script_test_2.t

H.J. Lu hongjiu.lu@intel.com
Sun Jun 12 16:41:00 GMT 2016


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



More information about the Binutils mailing list