* emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
authorAlan Modra <amodra@gmail.com>
Fri, 9 Jan 2004 05:36:30 +0000 (05:36 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 9 Jan 2004 05:36:30 +0000 (05:36 +0000)
program_header_size.

ld/ChangeLog
ld/emultempl/ppc64elf.em

index 81ae1eeecb7b247ec68570e99f3c8a9af395a21e..e6c03c8fd4bb3bfe4428f505160e7e810c9056df 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-09  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
+       program_header_size.
+
 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
 
        2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
index e6b24c9545cf730a4b343e1e3cdf03870ed168b8..5746f797383711828b1c90b32e7b348f292b2bc3 100644 (file)
@@ -25,6 +25,7 @@ cat >>e${EMULATION_NAME}.c <<EOF
 
 #include "ldctor.h"
 #include "libbfd.h"
+#include "elf-bfd.h"
 #include "elf64-ppc.h"
 
 /* Fake input file for stubs.  */
@@ -117,6 +118,8 @@ ppc_before_allocation (void)
              return;
            }
 
+         /* We must not cache anything from the preliminary sizing.  */
+         elf_tdata (output_bfd)->program_header_size = 0;
          lang_reset_memory_regions ();
        }
     }
This page took 0.04598 seconds and 4 git commands to generate.