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/binutils-2_28-branch] PR ld/20828: Work around RISC-V failures


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

commit f1e1be692fded333465d71ace0347db736ecc441
Author: Maciej W. Rozycki <macro@imgtec.com>
Date:   Mon Jan 23 11:21:19 2017 +0000

    PR ld/20828: Work around RISC-V failures
    
    Complement commit 81ff47b3a546 ("PR ld/20828: Fix linker script symbols
    wrongly forced local with section GC") and add `.plt' to the list of
    output sections created, fixing:
    
    FAIL: PR ld/20828 dynamic symbols with section GC (auxiliary shared library)
    FAIL: PR ld/20828 dynamic symbols with section GC (plain)
    FAIL: PR ld/20828 dynamic symbols with section GC (version script)
    
    failures with `riscv32-elf', `riscv32-linux', `riscv64-elf' and
    `riscv64-linux' targets caused by LD crashing in the absence of such a
    section.
    
    	ld/
    	PR ld/20828
    	* testsuite/ld-elf/pr20828.ld: Add `.plt'.
    
    (cherry picked from commit 1e5f45bb15d287ed763b7b638254424149040f7a)

Diff:
---
 ld/ChangeLog                   | 5 +++++
 ld/testsuite/ld-elf/pr20828.ld | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6daab1b..4fb1f38 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,6 +1,11 @@
 2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
 
 	PR ld/20828
+	* testsuite/ld-elf/pr20828.ld: Add `.plt'.
+
+2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
+
+	PR ld/20828
 	* testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
 	`fdata' and `edata' respectively.
 	* testsuite/ld-elf/pr20828.ver: Adjust accordingly.
diff --git a/ld/testsuite/ld-elf/pr20828.ld b/ld/testsuite/ld-elf/pr20828.ld
index 11aea82..0166f52 100644
--- a/ld/testsuite/ld-elf/pr20828.ld
+++ b/ld/testsuite/ld-elf/pr20828.ld
@@ -13,6 +13,7 @@ SECTIONS
   .shstrtab : { *(.shstrtab) }
   .symtab : { *(.symtab) }
   .strtab : { *(.strtab) }
+  .plt : { *(.plt) }
   .got.plt : { *(.got.plt) }
   .got : { *(.got) }
   /DISCARD/ : { *(*) }


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