diff options
author | Alan Modra <amodra@gmail.com> | 2021-07-24 15:34:55 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-07-24 17:59:52 +0930 |
commit | c09c8b42021180eee9495bd50d8b35e683d3901b (patch) | |
tree | 84452244c58664fa946c9d820d14a6de9279e7b7 /gas/testsuite | |
parent | 553dd76c7e49e3e6afb528ff865589da8f6f3e1c (diff) | |
download | fsf-binutils-gdb-c09c8b42021180eee9495bd50d8b35e683d3901b.zip fsf-binutils-gdb-c09c8b42021180eee9495bd50d8b35e683d3901b.tar.gz fsf-binutils-gdb-c09c8b42021180eee9495bd50d8b35e683d3901b.tar.bz2 |
Revert: PowerPC: Don't generate unused section symbols
Blindly following x86 broke linux kernel builds.
bfd/
* elf32-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define as true.
* elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Likewise.
gas/
* testsuite/gas/ppc/power4.d: Adjust for section sym change.
* testsuite/gas/ppc/test1elf32.d: Likewise.
* testsuite/gas/ppc/test1elf64.d: Likewise.
ld/
* testsuite/ld-powerpc/tlsexe.r: Adjust for section sym change.
* testsuite/ld-powerpc/tlsexe32.r: Likewise.
* testsuite/ld-powerpc/tlsexe32no.r: Likewise.
* testsuite/ld-powerpc/tlsexeno.r: Likewise.
* testsuite/ld-powerpc/tlsexenors.r: Likewise.
* testsuite/ld-powerpc/tlsexers.r: Likewise.
* testsuite/ld-powerpc/tlsexetoc.r: Likewise.
* testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
* testsuite/ld-powerpc/tlsget.d: Likewise.
* testsuite/ld-powerpc/tlsget.wf: Likewise.
* testsuite/ld-powerpc/tlsget2.d: Likewise.
* testsuite/ld-powerpc/tlsget2.wf: Likewise.
* testsuite/ld-powerpc/tlsso.r: Likewise.
* testsuite/ld-powerpc/tlsso32.r: Likewise.
* testsuite/ld-powerpc/tlstocso.r: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/ppc/power4.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/test1elf32.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/test1elf64.d | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/gas/testsuite/gas/ppc/power4.d b/gas/testsuite/gas/ppc/power4.d index fd277a2..e4d9ea9 100644 --- a/gas/testsuite/gas/ppc/power4.d +++ b/gas/testsuite/gas/ppc/power4.d @@ -21,6 +21,7 @@ Idx Name +Size +VMA +LMA +File off +Algn SYMBOL TABLE: 0+ l +d +\.text 0+ (|\.text) 0+ l +d +\.data 0+ (|\.data) +0+ l +d +\.bss 0+ (|\.bss) 0+ l +\.data 0+ dsym0 0+10 l +\.data 0+ dsym1 0+ l +d +\.toc 0+ (|\.toc) diff --git a/gas/testsuite/gas/ppc/test1elf32.d b/gas/testsuite/gas/ppc/test1elf32.d index fee834e..d8d6835 100644 --- a/gas/testsuite/gas/ppc/test1elf32.d +++ b/gas/testsuite/gas/ppc/test1elf32.d @@ -18,6 +18,7 @@ Idx Name +Size +VMA +LMA +File off +Algn SYMBOL TABLE: 0+0000 l d \.text 0+0000 (|\.text) 0+0000 l d \.data 0+0000 (|\.data) +0+0000 l d \.bss 0+0000 (|\.bss) 0+0000 l \.data 0+0000 dsym0 0+0004 l \.data 0+0000 dsym1 0+0004 l \.data 0+0000 usym0 diff --git a/gas/testsuite/gas/ppc/test1elf64.d b/gas/testsuite/gas/ppc/test1elf64.d index 24b75bc..4df9e00 100644 --- a/gas/testsuite/gas/ppc/test1elf64.d +++ b/gas/testsuite/gas/ppc/test1elf64.d @@ -21,6 +21,7 @@ Idx Name Size VMA LMA File off Algn SYMBOL TABLE: 0000000000000000 l d \.text 0000000000000000 (|\.text) 0000000000000000 l d \.data 0000000000000000 (|\.data) +0000000000000000 l d \.bss 0000000000000000 (|\.bss) 0000000000000000 l \.data 0000000000000000 dsym0 0000000000000008 l \.data 0000000000000000 dsym1 0000000000000000 l d \.toc 0000000000000000 (|\.toc) |