ld/
authorAlan Modra <amodra@gmail.com>
Wed, 8 Nov 2006 11:29:16 +0000 (11:29 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 8 Nov 2006 11:29:16 +0000 (11:29 +0000)
* emultempl/elf32.em (gld*_before_allocation): Adjust output section
size for warning sections.
ld/testsuite/
* ld-elf/group.ld: Handle .rodata.brlt for powerpc64.

ld/ChangeLog
ld/emultempl/elf32.em
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/group.ld

index f3e1383834213c2c6c1d099689d32f465f402c97..7f838f627fbce64ce118163e5572ce7a9ce82a1d 100644 (file)
@@ -1,7 +1,12 @@
+2006-11-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/elf32.em (gld*_before_allocation): Adjust output section
+       size for warning sections.
+
 2006-11-06  Vladimir Prus  <vladimir@codesourcery.com>
 
-       * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
-       Don't prepend "warning" to the message.
+       * emultempl/elf32.em (gld*_before_allocation): Don't prepend
+       "warning" to the message.
 
 2006-10-31  Pedro Alves  <pedro_alves@portugalmail.pt>
 
index ff48c56687061fbf3a53297a0f8335cdfd44f509..03d9d8d5ae9fa63a809a7a00b94a25d1c3ef17f6 100644 (file)
@@ -1204,12 +1204,19 @@ ${ELF_INTERPRETER_SET_DEFAULT}
        ASSERT (ret);
        free (msg);
 
-       /* Clobber the section size, so that we don't waste copying the
-          warning into the output file.  */
+       /* Clobber the section size, so that we don't waste space
+          copying the warning into the output file.  If we've already
+          sized the output section, adjust its size.  The adjustment
+          is on rawsize because targets that size sections early will
+          have called lang_reset_memory_regions after sizing.  */
+       if (s->output_section != NULL
+           && s->output_section->rawsize >= s->size)
+         s->output_section->rawsize -= s->size;
+
        s->size = 0;
 
-       /* Also set SEC_EXCLUDE, so that symbols defined in the warning
-          section don't get copied to the output.  */
+       /* Also set SEC_EXCLUDE, so that local symbols defined in the
+          warning section don't get copied to the output.  */
        s->flags |= SEC_EXCLUDE | SEC_KEEP;
       }
   }
index 86b084e6ddb2125b7bf896770119e7f8d40fc860..397caa11e3565d62e06b2155772a54792301ffa4 100644 (file)
@@ -1,7 +1,11 @@
+2006-11-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * ld-elf/group.ld: Handle .rodata.brlt for powerpc64.
+
 2006-11-07  Vladimir Prus  <vladimir@codesourcery.com>  
 
-       * testsuite/ld-elf/symbol2w.s: Use "%" instead
-       of "@" to avoid breakage on ARM.
+       * testsuite/ld-elf/symbol2w.s: Use "%" instead of "@" to avoid
+       breakage on ARM.
 
 2006-11-06  Vladimir Prus  <vladimir@codesourcery.com>  
 
index d6b27d04946ea7e5df4403853e24fb9c2d3ce1cb..71852745b648e53c26675b13f1fb01d6980734d6 100644 (file)
@@ -1,5 +1,5 @@
 SECTIONS
 {
   . = 0x1000;
-  .text : { *(.text) }
+  .text : { *(.text) *(.rodata.brlt) }
 }
This page took 0.029937 seconds and 4 git commands to generate.