Add .got.plt to testsuite/script_test_2.t
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Jun 2016 18:14:57 +0000 (11:14 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Jun 2016 18:15:12 +0000 (11:15 -0700)
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
gold/testsuite/script_test_2.t

index c1b833b6356044b2e0e301f4e6c3d6843b28a6d0..2819653abe22c3616fd6db367a4ab7c3555df898 100644 (file)
@@ -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.
index 0baa42817ce0862b463d56c7b8c9e3b4dc638ab9..0ce9408d40bd1c3fb0669af122f67a75c68c4eb7 100644 (file)
@@ -33,6 +33,7 @@ SECTIONS
   . = ALIGN(0x100);
   .data : { *(.data) }
   .got : { *(.got .toc) }
+  .got.plt : { *(.got.plt) }
   .bss : { *(.bss) }
 
   /* Now the real test.  */
This page took 0.02938 seconds and 4 git commands to generate.