This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DJGPP linker script update


Greetings,
This patch adds support for gcc's '-ffunction-sections' and '-fdata-sections' 
flags. Adding this is important because libstdc++-v3 uses those flags when it 
detects gcc supports them. Also the VMA of stabs sections is set to 0 to be 
consistent with other ports and with how DWARF2 sections are handled.

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.

I don't have write access, so please apply if approved.

Index: i386go32.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/i386go32.sc,v
retrieving revision 1.6
diff -c -p -r1.6 i386go32.sc
*** i386go32.sc	2000/12/06 16:39:51	1.6
--- i386go32.sc	2001/03/23 19:38:52
*************** SECTIONS
*** 23,28 ****
--- 23,29 ----
  {
    .text ${RELOCATING+ ${TARGET_PAGE_SIZE}+SIZEOF_HEADERS} : {
      *(.text)
+     ${RELOCATING+*(.text.*)}
      ${RELOCATING+*(.gnu.linkonce.t*)}
      *(.const*)
      *(.ro*)
*************** SECTIONS
*** 40,45 ****
--- 41,47 ----
      *(.dtor)
      djgpp_last_dtor = . ;}
      *(.data)
+     ${RELOCATING+*(.data.*)}
  
      ${RELOCATING+*(.gcc_exc*)}
      ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
*************** SECTIONS
*** 60,65 ****
--- 62,70 ----
      ${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) }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]