This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] [GOLD] Adjust testcase for PowerPC64


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d32a48b9f2d8a374b7ce3f2c47cc9a1c3b184838

commit d32a48b9f2d8a374b7ce3f2c47cc9a1c3b184838
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Dec 13 09:21:56 2016 +1030

    [GOLD] Adjust testcase for PowerPC64
    
    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.

Diff:
---
 gold/ChangeLog           | 5 +++++
 gold/testsuite/pr20717.t | 1 +
 2 files changed, 6 insertions(+)

diff --git a/gold/ChangeLog b/gold/ChangeLog
index 29c28f7..5664900 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -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
diff --git a/gold/testsuite/pr20717.t b/gold/testsuite/pr20717.t
index ddb3500..ecab5dc 100644
--- a/gold/testsuite/pr20717.t
+++ b/gold/testsuite/pr20717.t
@@ -1,4 +1,5 @@
 SECTIONS
 {
+    .got : { *(.got .toc) }
     .dummy : { KEEP (*(.dummy)) }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]