* scripttempl/elf.sc: Move non-text .dynamic section before
[deliverable/binutils-gdb.git] / bfd / elf32-hppa.c
index af08d8e010fa9860d1282389c519c139c9d04c35..7fe328e7039e10bf673e792a0dcc43f4f7a04476 100644 (file)
@@ -2141,8 +2141,9 @@ allocate_plt_and_got_and_discard_relocs (h, inf)
   if (!info->shared
       && (h->elf_link_hash_flags & ELF_LINK_NON_GOT_REF) == 0
       && ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) != 0
-         || h->root.type == bfd_link_hash_undefweak
-         || h->root.type == bfd_link_hash_undefined))
+         || (hplink->root.dynamic_sections_created
+             && (h->root.type == bfd_link_hash_undefweak
+                 || h->root.type == bfd_link_hash_undefined))))
     {
       /* Make sure this symbol is output as a dynamic symbol.
         Undefined weak syms won't yet be marked as dynamic.  */
This page took 0.022703 seconds and 4 git commands to generate.