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


This linker script update mainly adds support for DWARF2 sections, and adds some
uses of PROVIDE.

ld/Changelog:

2000-12-05  Mark Elbrecht  <snowball3@bigfoot.com>

 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
   Set DWARF2 sections to a VMA of zero.

Index: src/ld/scripttempl/i386go32.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/i386go32.sc,v
retrieving revision 1.5
diff -c -p -r1.5 i386go32.sc
*** i386go32.sc	2000/07/12 16:41:29	1.5
--- i386go32.sc	2000/12/06 04:49:46
*************** SECTIONS
*** 27,33 ****
      *(.const*)
      *(.ro*)
      ${RELOCATING+*(.gnu.linkonce.r*)}
!     ${RELOCATING+etext  =  . ; _etext = . ;}
      ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});}
    }
    .data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
--- 27,33 ----
      *(.const*)
      *(.ro*)
      ${RELOCATING+*(.gnu.linkonce.r*)}
!     ${RELOCATING+etext  =  . ; PROVIDE(_etext = .) ;}
      ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});}
    }
    .data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
*************** SECTIONS
*** 48,54 ****
      ${RELOCATING+LONG(0);}

      ${RELOCATING+*(.gnu.linkonce.d*)}
!     ${RELOCATING+edata  =  . ; _edata = . ;}
      ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});}
    }
    ${CONSTRUCTING+${RELOCATING-$CTOR}}
--- 48,54 ----
      ${RELOCATING+LONG(0);}

      ${RELOCATING+*(.gnu.linkonce.d*)}
!     ${RELOCATING+edata  =  . ; PROVIDE(_edata = .) ;}
      ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});}
    }
    ${CONSTRUCTING+${RELOCATING-$CTOR}}
*************** SECTIONS
*** 57,64 ****
    { 					
      *(.bss)
      *(COMMON)
!     ${RELOCATING+ end = . ; _end = . ;}
      ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}
    }
  }
  EOF
--- 57,74 ----
    { 					
      *(.bss)
      *(COMMON)
!     ${RELOCATING+ end = . ; PROVIDE(_end = .) ;}
      ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}
    }
+   /* DWARF 2 */
+   .debug_aranges  0 : { *(.debug_aranges) }
+   .debug_pubnames 0 : { *(.debug_pubnames) }
+   .debug_info     0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
+   .debug_abbrev   0 : { *(.debug_abbrev) }
+   .debug_line     0 : { *(.debug_line) }
+   .debug_frame    0 : { *(.debug_frame) }
+   .debug_str      0 : { *(.debug_str) }
+   .debug_loc      0 : { *(.debug_loc) }
+   .debug_macinfo  0 : { *(.debug_macinfo) }
  }
  EOF


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