Linker: Define __data and __rdata for xstormy16

Nick Clifton nickc@redhat.com
Fri Apr 18 08:26:00 GMT 2003


Hi Guys,

  Here is another small patch for the xstormy16 port.  This time it
  defines the __data and __rdata symbols for use by loaders.

Cheers
        Nick

2003-04-18  Andrew Haley  <aph@cambridge.redhat.com>

	* scripttempl/xstormy16.sc (__data, __rdata): New.

Index: ld/scripttempl/xstormy16.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/xstormy16.sc,v
retrieving revision 1.4
diff -c -3 -p -w -r1.4 xstormy16.sc
*** ld/scripttempl/xstormy16.sc	16 Apr 2003 11:53:46 -0000	1.4
--- ld/scripttempl/xstormy16.sc	18 Apr 2003 08:23:15 -0000
*************** SECTIONS
*** 117,122 ****
--- 117,124 ----
  {
    .data  ${RELOCATING-0} :
    {
+     ${RELOCATING+__rdata = .;}
+     ${RELOCATING+__data = .;}
      ${RELOCATING+${DATA_START_SYMBOLS}}
      *(.data)
      ${RELOCATING+*(.data.*)}



More information about the Binutils mailing list