Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/gnu/dist/binutils/bfd Pull up revision 1.4 (requested b...



details:   https://anonhg.NetBSD.org/src/rev/5054de8a877c
branches:  netbsd-2-0
changeset: 564714:5054de8a877c
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Mar 16 19:11:27 2005 +0000

description:
Pull up revision 1.4 (requested by skrll in ticket #1101):
Backport a change from binutils-current
 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
 non-shared object, do not reserve space in .plt and .rela.plt for
 regular symbols neither defined nor referenced in shared objects.
This fixes firefox for Havard

diffstat:

 gnu/dist/binutils/bfd/elf64-sparc.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 0c27f6a6c413 -r 5054de8a877c gnu/dist/binutils/bfd/elf64-sparc.c
--- a/gnu/dist/binutils/bfd/elf64-sparc.c       Wed Mar 16 19:11:16 2005 +0000
+++ b/gnu/dist/binutils/bfd/elf64-sparc.c       Wed Mar 16 19:11:27 2005 +0000
@@ -1635,7 +1635,11 @@
              || h->root.type == bfd_link_hash_defweak)
          && (h->root.u.def.section->flags & SEC_CODE) != 0))
     {
-      if (! elf_hash_table (info)->dynamic_sections_created)
+      if (! info->shared
+         && (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) == 0
+         && (h->elf_link_hash_flags & ELF_LINK_HASH_REF_DYNAMIC) == 0
+         && h->root.type != bfd_link_hash_undefweak
+         && h->root.type != bfd_link_hash_undefined)
        {
          /* This case can occur if we saw a WPLT30 reloc in an input
              file, but none of the input files were dynamic objects.



Home | Main Index | Thread Index | Old Index