Support the GCC flags '-ffunction-sections' and '-fdata-sections'.
authorNick Clifton <nickc@redhat.com>
Fri, 23 Mar 2001 23:05:07 +0000 (23:05 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 23 Mar 2001 23:05:07 +0000 (23:05 +0000)
Set the VMA of STABS sections to zero.

ld/ChangeLog
ld/scripttempl/i386go32.sc

index 8ce54f8d475076205922b17437ea5c1791a82bad..9f8c66b838242f2044e7e43b491bd91cfe140b7a 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
+
+       * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
+         and '-fdata-sections'. Set the VMA of STABS sections to zero.
+
 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
 
        * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
index ac67b92296c10078929e7e1c6d688bf7456ca26a..482a8cbd8857fd1a10b1eb1e663278b7d0ea8724 100644 (file)
@@ -23,6 +23,7 @@ SECTIONS
 {
   .text ${RELOCATING+ ${TARGET_PAGE_SIZE}+SIZEOF_HEADERS} : {
     *(.text)
+    ${RELOCATING+*(.text.*)}
     ${RELOCATING+*(.gnu.linkonce.t*)}
     *(.const*)
     *(.ro*)
@@ -40,6 +41,7 @@ SECTIONS
     *(.dtor)
     djgpp_last_dtor = . ;}
     *(.data)
+    ${RELOCATING+*(.data.*)}
 
     ${RELOCATING+*(.gcc_exc*)}
     ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
@@ -60,6 +62,9 @@ SECTIONS
     ${RELOCATING+ end = . ; PROVIDE(_end = .) ;}
     ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}
   }
+  /* Stabs debugging sections.  */
+  .stab 0 : { *(.stab) }
+  .stabstr 0 : { *(.stabstr) }
   /* DWARF 2 */
   .debug_aranges  0 : { *(.debug_aranges) }
   .debug_pubnames 0 : { *(.debug_pubnames) }