aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-sparc.c
diff options
context:
space:
mode:
authorEgeyar Bagcioglu <egeyar.bagcioglu@oracle.com>2017-07-03 20:06:35 +0200
committerJose E. Marchesi <jose.marchesi@oracle.com>2017-07-03 20:06:35 +0200
commitd8cd8c1f482018acd16cab1f1f2a081786a04c6f (patch)
treed8aa6e561e2705d29e6d490eef6d919fa2d47ce4 /bfd/elfxx-sparc.c
parent15e6ed8cbf65f0b7cc7e384d78a56802d8d0244b (diff)
downloadgdb-d8cd8c1f482018acd16cab1f1f2a081786a04c6f.zip
gdb-d8cd8c1f482018acd16cab1f1f2a081786a04c6f.tar.gz
gdb-d8cd8c1f482018acd16cab1f1f2a081786a04c6f.tar.bz2
bfd: partial revert commit EC1ACAB (prevent all but undef weak symbols to become dynamic in sparc).
bfd/ChangeLog: 2017-07-03 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove the abort statement that was put for symbols that are not dynamic.
Diffstat (limited to 'bfd/elfxx-sparc.c')
-rw-r--r--bfd/elfxx-sparc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c
index 1fd2141..b50d34b 100644
--- a/bfd/elfxx-sparc.c
+++ b/bfd/elfxx-sparc.c
@@ -4502,13 +4502,6 @@ _bfd_sparc_elf_finish_dynamic_symbol (bfd *output_bfd,
eh = (struct _bfd_sparc_elf_link_hash_entry *) h;
- /* Abort if the symbol is not dynamic in PIC */
- if (h->dynindx == -1
- && !h->forced_local
- && h->root.type != bfd_link_hash_undefweak
- && bfd_link_pic (info))
- abort();
-
/* We keep PLT/GOT entries without dynamic PLT/GOT relocations for
resolved undefined weak symbols in executable so that their
references have value 0 at run-time. */