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.
This commit is contained in:
H.J. Lu 2016-06-13 11:14:57 -07:00
parent 712ec27916
commit 3328c04b10
2 changed files with 6 additions and 0 deletions

View 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.

View File

@ -33,6 +33,7 @@ SECTIONS
. = ALIGN(0x100);
.data : { *(.data) }
.got : { *(.got .toc) }
.got.plt : { *(.got.plt) }
.bss : { *(.bss) }
/* Now the real test. */