[GOLD] Adjust testcase for PowerPC64
authorAlan Modra <amodra@gmail.com>
Mon, 12 Dec 2016 22:51:56 +0000 (09:21 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 12 Dec 2016 23:01:19 +0000 (09:31 +1030)
Since the linker created .TOC. symbol is placed at roughly .got+32k,
.toc input sections must be placed in or after .got if .toc entries
are accessed using 16-bit signed offset relocs.  crt1.o contains such
a relocation.

PR gold/20717
* testsuite/pr20717.t: Add .got output section containing .toc.

gold/ChangeLog
gold/testsuite/pr20717.t

index 29c28f7629b963c1b7fb7e3f1bdde20d495a53a9..5664900e28d02eeb778904bb92f9d11011c3c093 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-13  Alan Modra  <amodra@gmail.com>
+
+       PR gold/20717
+       * testsuite/pr20717.t: Add .got output section containing .toc.
+
 2016-12-11  Igor Kudrin  <ikudrin@accesssoftek.com>
 
        PR gold/20717
index ddb3500d932c6813e32b1f17df02c36a659bdde5..ecab5dc450f3aab7faa71c3e6c87436f708f8c87 100644 (file)
@@ -1,4 +1,5 @@
 SECTIONS
 {
+    .got : { *(.got .toc) }
     .dummy : { KEEP (*(.dummy)) }
 }
This page took 0.026514 seconds and 4 git commands to generate.