aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-07-26 12:06:38 +0000
committerAlan Modra <amodra@gmail.com>2005-07-26 12:06:38 +0000
commit87538722bef4cace47cfb29d79ecab3a2de0a962 (patch)
tree6e8cc7d401ac7a8d395b138b2f8332b5770a9212 /bfd/elf32-ppc.c
parent9e8cc8b4bf949f1246146cc6c857a877e0d454d3 (diff)
downloadgdb-87538722bef4cace47cfb29d79ecab3a2de0a962.zip
gdb-87538722bef4cace47cfb29d79ecab3a2de0a962.tar.gz
gdb-87538722bef4cace47cfb29d79ecab3a2de0a962.tar.bz2
* elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared.
(bfd_elf_gc_sections): Allow -gc-sections when -shared. * elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r--bfd/elf32-ppc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 16d11c4..58afcda 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -3728,8 +3728,12 @@ ppc_elf_gc_sweep_hook (bfd *abfd,
case R_PPC_ADDR14_BRNTAKEN:
case R_PPC_UADDR32:
case R_PPC_UADDR16:
+ if (info->shared)
+ break;
+
case R_PPC_PLT32:
case R_PPC_PLTREL24:
+ case R_PPC_PLTREL32:
case R_PPC_PLT16_LO:
case R_PPC_PLT16_HI:
case R_PPC_PLT16_HA: