aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-01-20 15:55:46 +1030
committerAlan Modra <amodra@gmail.com>2021-01-20 16:12:06 +1030
commit4bd7c90276a11ee2f43c6bbe62f2379f3a225234 (patch)
tree00a1d3fff259d22fb60d56553637497c5199421a /gas
parent8bd10d6b16de92570336e6026d466ef90e077e6e (diff)
downloadgdb-4bd7c90276a11ee2f43c6bbe62f2379f3a225234.zip
gdb-4bd7c90276a11ee2f43c6bbe62f2379f3a225234.tar.gz
gdb-4bd7c90276a11ee2f43c6bbe62f2379f3a225234.tar.bz2
PowerPC: Don't generate unused section symbols
PowerPC version of git commit d1bcae833b. bfd/ * elf32-ppc.c: Delete outdated comment. (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define. * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define. gas/ * testsuite/gas/ppc/power4.d: Adjust for removal of section sym. * testsuite/gas/ppc/test1elf32.d: Likewise. * testsuite/gas/ppc/test1elf64.d: Likewise. ld/ * testsuite/ld-powerpc/relbrlt.s: Make symbols global. * testsuite/ld-powerpc/relbrlt.d: Adjust to suit. * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs. * testsuite/ld-powerpc/tlsget.wf: Likewise. * testsuite/ld-powerpc/tlsget2.d: Likewise. * testsuite/ld-powerpc/tlsget2.wf: Likewise. * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms. * 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/tlsso.r: Likewise. * testsuite/ld-powerpc/tlsso32.r: Likewise. * testsuite/ld-powerpc/tlstocso.r: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/testsuite/gas/ppc/power4.d1
-rw-r--r--gas/testsuite/gas/ppc/test1elf32.d1
-rw-r--r--gas/testsuite/gas/ppc/test1elf64.d1
4 files changed, 6 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 510be5f..d06a018 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-20 Alan Modra <amodra@gmail.com>
+
+ * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
+ * testsuite/gas/ppc/test1elf32.d: Likewise.
+ * testsuite/gas/ppc/test1elf64.d: Likewise.
+
2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/27195
diff --git a/gas/testsuite/gas/ppc/power4.d b/gas/testsuite/gas/ppc/power4.d
index e4d9ea9..fd277a2 100644
--- a/gas/testsuite/gas/ppc/power4.d
+++ b/gas/testsuite/gas/ppc/power4.d
@@ -21,7 +21,6 @@ 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 d8d6835..fee834e 100644
--- a/gas/testsuite/gas/ppc/test1elf32.d
+++ b/gas/testsuite/gas/ppc/test1elf32.d
@@ -18,7 +18,6 @@ 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 4df9e00..24b75bc 100644
--- a/gas/testsuite/gas/ppc/test1elf64.d
+++ b/gas/testsuite/gas/ppc/test1elf64.d
@@ -21,7 +21,6 @@ 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)