* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
authorHans-Peter Nilsson <hp@axis.com>
Mon, 18 Jun 2001 22:20:57 +0000 (22:20 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 18 Jun 2001 22:20:57 +0000 (22:20 +0000)
Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
* mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
* ld.h (args_type): Remove member export_dynamic.  All users
changed to use struct bfd_link_info member.

ld/ChangeLog
ld/emultempl/elf32.em
ld/ld.h
ld/lexsup.c
ld/mpw-elfmips.c

index b8343565bc3e3852459f0e5d604dbac46fe14d69..a12c2d86900f18b4ea288c5eff6e7ee741c2a25f 100644 (file)
@@ -1,5 +1,11 @@
 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
 
+       * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
+       Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
+       * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
+       * ld.h (args_type): Remove member export_dynamic.  All users
+       changed to use struct bfd_link_info member.
+
        * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
        $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
        * Makefile.in: Regenerate.
index cce6b3e2e522ec8132abe19f33a263bce9a12048..4e31b227fb75ca077f3f8586927cd9c30252acad 100644 (file)
@@ -837,7 +837,7 @@ gld${EMULATION_NAME}_before_allocation ()
     rpath = (const char *) getenv ("LD_RUN_PATH");
   if (! (bfd_elf${ELFSIZE}_size_dynamic_sections
          (output_bfd, command_line.soname, rpath,
-         command_line.export_dynamic, command_line.filter_shlib,
+         command_line.filter_shlib,
          (const char * const *) command_line.auxiliary_filters,
          &link_info, &sinterp, lang_elf_version_info)))
     einfo ("%P%F: failed to set dynamic section sizes: %E\n");
diff --git a/ld/ld.h b/ld/ld.h
index e13e28082b910e202e949d0e253e23dc17b48949..3d64e5658602f3eef35517ffe758e9356434e247 100644 (file)
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -115,10 +115,6 @@ typedef struct {
   /* Big or little endian as set on command line.  */
   enum { ENDIAN_UNSET = 0, ENDIAN_BIG, ENDIAN_LITTLE } endian;
 
-  /* If true, export all symbols in the dynamic symbol table of an ELF
-     executable.  */
-  boolean export_dynamic;
-
   /* If true, build MIPS embedded PIC relocation tables in the output
      file.  */
   boolean embedded_relocs;
index e120c13a08b4c4d4f1367d4b65d2dc4a89d53993..91a1f1dc39c4bc898d67798bc389308b7f562f32 100644 (file)
@@ -667,7 +667,6 @@ parse_args (argc, argv)
          break;
        case OPTION_EXPORT_DYNAMIC:
        case 'E': /* HP/UX compatibility.  */
-         command_line.export_dynamic = true;
          link_info.export_dynamic = true;
          break;
        case 'e':
index 6f7cd2f7ef011f73c1fccaaf6ca6cb728538c99c..86ca64343707ea7c213c2fd6c88881afe33e0108 100644 (file)
@@ -445,7 +445,7 @@ gldelf32ebmip_before_allocation ()
     rpath = (const char *) getenv ("LD_RUN_PATH");
   if (! (bfd_elf32_size_dynamic_sections
         (output_bfd, command_line.soname, rpath,
-         command_line.export_dynamic, command_line.filter_shlib,
+         command_line.filter_shlib,
          (const char * const *) command_line.auxiliary_filters,
          &link_info, &sinterp, lang_elf_version_info)))
     einfo (_("%P%F: failed to set dynamic section sizes: %E\n"));