aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-12-29 19:50:13 +0000
committerRichard Henderson <rth@redhat.com>1999-12-29 19:50:13 +0000
commitea44b73426cc8aa21a6b21eb5a523d53385e42e4 (patch)
treec9c234c6df30d8bb5ff942ea9c0fab17d2c241f3 /bfd/elflink.h
parentd113390691ccde25bf96a4fed34e089b26d7c21a (diff)
downloadgdb-ea44b73426cc8aa21a6b21eb5a523d53385e42e4.zip
gdb-ea44b73426cc8aa21a6b21eb5a523d53385e42e4.tar.gz
gdb-ea44b73426cc8aa21a6b21eb5a523d53385e42e4.tar.bz2
* elflink.h (bfd_elf,size_dynamic_sections): Don't export all
if no dynamic sections created.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 01cb6d4..1cf6be9 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -2803,20 +2803,6 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
if (dynobj == NULL)
return true;
- /* If we are supposed to export all symbols into the dynamic symbol
- table (this is not the normal case), then do so. */
- if (export_dynamic)
- {
- struct elf_info_failed eif;
-
- eif.failed = false;
- eif.info = info;
- elf_link_hash_traverse (elf_hash_table (info), elf_export_symbol,
- (PTR) &eif);
- if (eif.failed)
- return false;
- }
-
if (elf_hash_table (info)->dynamic_sections_created)
{
struct elf_info_failed eif;
@@ -2879,6 +2865,20 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
}
}
+ /* If we are supposed to export all symbols into the dynamic symbol
+ table (this is not the normal case), then do so. */
+ if (export_dynamic)
+ {
+ struct elf_info_failed eif;
+
+ eif.failed = false;
+ eif.info = info;
+ elf_link_hash_traverse (elf_hash_table (info), elf_export_symbol,
+ (PTR) &eif);
+ if (eif.failed)
+ return false;
+ }
+
/* Attach all the symbols to their version information. */
asvinfo.output_bfd = output_bfd;
asvinfo.info = info;