* emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
authorAlan Modra <amodra@gmail.com>
Tue, 29 Mar 2005 06:52:22 +0000 (06:52 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 29 Mar 2005 06:52:22 +0000 (06:52 +0000)
(ppc_finish): Don't call bfd_elf_discard_info.
* emultempl/hppaelf.em: Similarly.

ld/ChangeLog
ld/emultempl/hppaelf.em
ld/emultempl/ppc64elf.em

index 6c44d72b1ab0929ae42c6053cf0bab571a378ad4..3e2b01f0ab56a853c6ae7c10d837a699f41072da 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/ppc64elf.em (need_laying_out): Delete.  Remove all refs.
+       (ppc_finish): Don't call bfd_elf_discard_info.
+       * emultempl/hppaelf.em: Similarly.
+
 2005-03-24  Nick Clifton  <nickc@redhat.com>
 
        * po/fr.po: Updated French translation.
index d8276d2a5b3e3eb53dcd532984e808a3805bd875..058998495fc9fdc7e4d049ba59e04a4cb2b3d893 100644 (file)
@@ -36,9 +36,6 @@ static lang_input_statement_type *stub_file;
    stubs.  */
 static int multi_subspace = 0;
 
-/* Whether we need to call hppa_layout_sections_again.  */
-static int need_laying_out = 0;
-
 /* Maximum size of a group of input sections that can be handled by
    one stub section.  A value of +/-1 indicates the bfd back-end
    should use a suitable default size.  */
@@ -220,8 +217,6 @@ hppaelf_layout_sections_again (void)
   /* If we have changed sizes of the stub sections, then we need
      to recalculate all the section offsets.  This may mean we need to
      add even more stubs.  */
-  need_laying_out = 0;
-
   lang_reset_memory_regions ();
 
   /* Resize the sections.  */
@@ -258,13 +253,6 @@ build_section_lists (lang_statement_union_type *statement)
 static void
 hppaelf_finish (void)
 {
-  /* bfd_elf_discard_info just plays with debugging sections,
-     ie. doesn't affect any code, so we can delay resizing the
-     sections.  It's likely we'll resize everything in the process of
-     adding stubs.  */
-  if (bfd_elf_discard_info (output_bfd, &link_info))
-    need_laying_out = 1;
-
   /* If generating a relocatable output file, then we don't
      have to examine the relocs.  */
   if (stub_file != NULL && !link_info.relocatable)
@@ -296,9 +284,6 @@ hppaelf_finish (void)
        }
     }
 
-  if (need_laying_out)
-    hppaelf_layout_sections_again ();
-
   if (! link_info.relocatable)
     {
       /* Set the global data pointer.  */
index 6b5dca9bc06a45be4ace838d87b4e73df0193cb2..a334c9f6bc53f15c98207864480688bbf6f6fb7c 100644 (file)
@@ -32,9 +32,6 @@ cat >>e${EMULATION_NAME}.c <<EOF
 static lang_input_statement_type *stub_file;
 static int stub_added = 0;
 
-/* Whether we need to call ppc_layout_sections_again.  */
-static int need_laying_out = 0;
-
 /* Maximum size of a group of input sections that can be handled by
    one stub section.  A value of +/-1 indicates the bfd back-end
    should use a suitable default size.  */
@@ -258,8 +255,6 @@ ppc_layout_sections_again (void)
   /* If we have changed sizes of the stub sections, then we need
      to recalculate all the section offsets.  This may mean we need to
      add even more stubs.  */
-  need_laying_out = 0;
-
   lang_reset_memory_regions ();
 
   /* Resize the sections.  */
@@ -321,13 +316,6 @@ ppc_finish (void)
      descriptor in the .opd section.  */
   entry_section = ".opd";
 
-  /* bfd_elf_discard_info just plays with debugging sections,
-     ie. doesn't affect any code, so we can delay resizing the
-     sections.  It's likely we'll resize everything in the process of
-     adding stubs.  */
-  if (bfd_elf_discard_info (output_bfd, &link_info))
-    need_laying_out = 1;
-
   /* If generating a relocatable output file, then we don't have any
      stubs.  */
   if (stub_file != NULL && !link_info.relocatable)
@@ -356,9 +344,6 @@ ppc_finish (void)
        }
     }
 
-  if (need_laying_out)
-    ppc_layout_sections_again ();
-
   if (link_info.relocatable)
     {
       asection *toc = bfd_get_section_by_name (output_bfd, ".toc");
This page took 0.028469 seconds and 4 git commands to generate.