This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

--gc-sections -r without -e


This is aimed at fixing "FAIL: --gc-sections -r without -e" on a
number of targets.  A script ENTRY is currently happily accepted as
the root sym when garbage collecting a relocatable link.  I could
have forced a -e entry sym, but figure it's not a bad feature to
be able to provide the root in a script.  Just don't do so in the
default -r scripts.

	* scripttempl/aix.sc: Only provide ENTRY on final link.
	* scripttempl/alpha.sc: Likewise.
	* scripttempl/armcoff.sc: Likewise.
	* scripttempl/crisaout.sc: Likewise.
	* scripttempl/delta68.sc: Likewise.
	* scripttempl/ebmon29k.sc: Likewise.
	* scripttempl/elf32xc16x.sc: Likewise.
	* scripttempl/elf32xc16xl.sc: Likewise.
	* scripttempl/elfmicroblaze.sc: Likewise.
	* scripttempl/epocpe.sc: Likewise.
	* scripttempl/h8300.sc: Likewise.
	* scripttempl/h8300h.sc: Likewise.
	* scripttempl/h8300hn.sc: Likewise.
	* scripttempl/h8300s.sc: Likewise.
	* scripttempl/h8300sn.sc: Likewise.
	* scripttempl/h8300sx.sc: Likewise.
	* scripttempl/h8300sxn.sc: Likewise.
	* scripttempl/hppaelf.sc: Likewise.
	* scripttempl/i386beos.sc: Likewise.
	* scripttempl/i386coff.sc: Likewise.
	* scripttempl/i386go32.sc: Likewise.
	* scripttempl/m68kaux.sc: Likewise.
	* scripttempl/m68klynx.sc: Likewise.
	* scripttempl/m88kbcs.sc: Likewise.
	* scripttempl/maxqcoff.sc: Likewise.
	* scripttempl/mcorepe.sc: Likewise.
	* scripttempl/mips.sc: Likewise.
	* scripttempl/ppcpe.sc: Likewise.
	* scripttempl/sa29200.sc: Likewise.
	* scripttempl/sparccoff.sc: Likewise.
	* scripttempl/sparclynx.sc: Likewise.
	* scripttempl/tic4xcoff.sc: Likewise.
	* scripttempl/tic54xcoff.sc: Likewise.
	* scripttempl/tic80coff.sc: Likewise.
	* scripttempl/z8000.sc: Likewise.

Index: ld/scripttempl/aix.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/aix.sc,v
retrieving revision 1.4
diff -u -p -r1.4 aix.sc
--- ld/scripttempl/aix.sc	24 Sep 2002 04:02:03 -0000	1.4
+++ ld/scripttempl/aix.sc	9 Sep 2009 07:34:40 -0000
@@ -6,7 +6,7 @@
 cat <<EOF
 OUTPUT_ARCH(${ARCH})
 ${RELOCATING+${LIB_SEARCH_DIRS}}
-ENTRY(__start)
+${RELOCATING+ENTRY (__start)}
 SECTIONS
 {
   .pad 0 : { *(.pad) }
Index: ld/scripttempl/alpha.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/alpha.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 alpha.sc
--- ld/scripttempl/alpha.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/alpha.sc	9 Sep 2009 07:34:40 -0000
@@ -13,7 +13,7 @@ cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/armcoff.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/armcoff.sc,v
retrieving revision 1.5
diff -u -p -r1.5 armcoff.sc
--- ld/scripttempl/armcoff.sc	25 Mar 2003 20:56:00 -0000	1.5
+++ ld/scripttempl/armcoff.sc	9 Sep 2009 07:34:40 -0000
@@ -22,7 +22,7 @@ cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/crisaout.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/crisaout.sc,v
retrieving revision 1.6
diff -u -p -r1.6 crisaout.sc
--- ld/scripttempl/crisaout.sc	28 Aug 2006 01:52:56 -0000	1.6
+++ ld/scripttempl/crisaout.sc	9 Sep 2009 07:34:40 -0000
@@ -1,7 +1,7 @@
 cat <<EOF
 OUTPUT_FORMAT("a.out-cris")
 OUTPUT_ARCH(cris)
-ENTRY(__start)
+${RELOCATING+ENTRY (__start)}
 SECTIONS
 {
   .text ${RELOCATING+ ${TEXT_START_ADDR}}:
Index: ld/scripttempl/delta68.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/delta68.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 delta68.sc
--- ld/scripttempl/delta68.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/delta68.sc	9 Sep 2009 07:34:40 -0000
@@ -1,7 +1,7 @@
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
-ENTRY(_start)
+${RELOCATING+ENTRY (_start)}
 ${RELOCATING+${LIB_SEARCH_DIRS}}
 
 SECTIONS
Index: ld/scripttempl/ebmon29k.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/ebmon29k.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 ebmon29k.sc
--- ld/scripttempl/ebmon29k.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/ebmon29k.sc	9 Sep 2009 07:34:40 -0000
@@ -1,6 +1,6 @@
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
-ENTRY(start)
+${RELOCATING+ENTRY (start)}
 
 SECTIONS {
   .text ${RELOCATING+${TEXT_START_ADDR}} : 
Index: ld/scripttempl/elf32xc16x.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/elf32xc16x.sc,v
retrieving revision 1.1
diff -u -p -r1.1 elf32xc16x.sc
--- ld/scripttempl/elf32xc16x.sc	17 Feb 2006 14:36:28 -0000	1.1
+++ ld/scripttempl/elf32xc16x.sc	9 Sep 2009 07:34:40 -0000
@@ -1,7 +1,7 @@
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
 MEMORY
 {
 	
Index: ld/scripttempl/elf32xc16xl.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/elf32xc16xl.sc,v
retrieving revision 1.1
diff -u -p -r1.1 elf32xc16xl.sc
--- ld/scripttempl/elf32xc16xl.sc	17 Feb 2006 14:36:28 -0000	1.1
+++ ld/scripttempl/elf32xc16xl.sc	9 Sep 2009 07:34:40 -0000
@@ -1,7 +1,7 @@
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
 MEMORY
 {
 	vectarea : o =0xc00000, l = 0x0300 
Index: ld/scripttempl/elfmicroblaze.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/elfmicroblaze.sc,v
retrieving revision 1.1
diff -u -p -r1.1 elfmicroblaze.sc
--- ld/scripttempl/elfmicroblaze.sc	6 Aug 2009 17:38:04 -0000	1.1
+++ ld/scripttempl/elfmicroblaze.sc	9 Sep 2009 07:34:40 -0000
@@ -47,7 +47,7 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG
 /*${LIB_SEARCH_DIRS}*/
 ${RELOCATING+${LIB_SEARCH_DIRS}}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 _TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50;		
 _HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0;
Index: ld/scripttempl/epocpe.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/epocpe.sc,v
retrieving revision 1.2
diff -u -p -r1.2 epocpe.sc
--- ld/scripttempl/epocpe.sc	3 Sep 2009 18:04:34 -0000	1.2
+++ ld/scripttempl/epocpe.sc	9 Sep 2009 07:34:40 -0000
@@ -41,7 +41,7 @@ ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABL
 
 ${LIB_SEARCH_DIRS}
 
-ENTRY(_mainCRTStartup)
+${RELOCATING+ENTRY (_mainCRTStartup)}
 
 SECTIONS
 {
Index: ld/scripttempl/h8300.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/h8300.sc,v
retrieving revision 1.5
diff -u -p -r1.5 h8300.sc
--- ld/scripttempl/h8300.sc	24 Apr 2003 12:36:08 -0000	1.5
+++ ld/scripttempl/h8300.sc	9 Sep 2009 07:34:40 -0000
@@ -11,7 +11,7 @@ TORS=".tors :
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
 
 MEMORY
 {
Index: ld/scripttempl/h8300h.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/h8300h.sc,v
retrieving revision 1.4
diff -u -p -r1.4 h8300h.sc
--- ld/scripttempl/h8300h.sc	10 Jan 2001 11:42:27 -0000	1.4
+++ ld/scripttempl/h8300h.sc	9 Sep 2009 07:34:40 -0000
@@ -11,7 +11,7 @@ TORS=".tors :
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(h8300h)
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
 
 /* The memory size is 256KB to coincide with the simulator.
    Don't change either without considering the other.  */
Index: ld/scripttempl/h8300hn.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/h8300hn.sc,v
retrieving revision 1.1
diff -u -p -r1.1 h8300hn.sc
--- ld/scripttempl/h8300hn.sc	24 Apr 2003 15:25:24 -0000	1.1
+++ ld/scripttempl/h8300hn.sc	9 Sep 2009 07:34:40 -0000
@@ -11,7 +11,7 @@ TORS=".tors :
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(h8300hn)
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
 
 MEMORY
 {
Index: ld/scripttempl/h8300s.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/h8300s.sc,v
retrieving revision 1.4
diff -u -p -r1.4 h8300s.sc
--- ld/scripttempl/h8300s.sc	10 Jan 2001 11:42:27 -0000	1.4
+++ ld/scripttempl/h8300s.sc	9 Sep 2009 07:34:40 -0000
@@ -11,7 +11,7 @@ TORS=".tors :
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(h8300s)
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
 
 /* The memory size is 256KB to coincide with the simulator.
    Don't change either without considering the other.  */
Index: ld/scripttempl/h8300sn.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/h8300sn.sc,v
retrieving revision 1.1
diff -u -p -r1.1 h8300sn.sc
--- ld/scripttempl/h8300sn.sc	24 Apr 2003 15:25:24 -0000	1.1
+++ ld/scripttempl/h8300sn.sc	9 Sep 2009 07:34:40 -0000
@@ -11,7 +11,7 @@ TORS=".tors :
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(h8300sn)
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
 
 MEMORY
 {
Index: ld/scripttempl/h8300sx.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/h8300sx.sc,v
retrieving revision 1.1
diff -u -p -r1.1 h8300sx.sc
--- ld/scripttempl/h8300sx.sc	3 Jun 2003 21:43:52 -0000	1.1
+++ ld/scripttempl/h8300sx.sc	9 Sep 2009 07:34:40 -0000
@@ -11,7 +11,7 @@ TORS=".tors :
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(h8300sx)
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
 
 /* The memory size is 256KB to coincide with the simulator.
    Don't change either without considering the other.  */
Index: ld/scripttempl/h8300sxn.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/h8300sxn.sc,v
retrieving revision 1.1
diff -u -p -r1.1 h8300sxn.sc
--- ld/scripttempl/h8300sxn.sc	10 Jun 2003 08:31:04 -0000	1.1
+++ ld/scripttempl/h8300sxn.sc	9 Sep 2009 07:34:40 -0000
@@ -11,7 +11,7 @@ TORS=".tors :
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(h8300sxn)
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
 
 MEMORY
 {
Index: ld/scripttempl/hppaelf.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/hppaelf.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 hppaelf.sc
--- ld/scripttempl/hppaelf.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/hppaelf.sc	9 Sep 2009 07:34:40 -0000
@@ -3,7 +3,7 @@ test "$LD_FLAG" = "N" && DATA_ADDR=.
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
-ENTRY("\$START\$")
+${RELOCATING+ENTRY("\$START\$")}
 ${RELOCATING+${LIB_SEARCH_DIRS}}
 SECTIONS
 {
Index: ld/scripttempl/i386beos.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/i386beos.sc,v
retrieving revision 1.2
diff -u -p -r1.2 i386beos.sc
--- ld/scripttempl/i386beos.sc	2 Sep 2000 20:43:22 -0000	1.2
+++ ld/scripttempl/i386beos.sc	9 Sep 2009 07:34:40 -0000
@@ -38,7 +38,7 @@ ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABL
 
 ${LIB_SEARCH_DIRS}
 
-ENTRY(__start)
+${RELOCATING+ENTRY (__start)}
 ${RELOCATING+header = .;}
 ${RELOCATING+__fltused = .; /* set up floating pt for MS .obj\'s */}
 ${RELOCATING+__ldused = .;}
Index: ld/scripttempl/i386coff.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/i386coff.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 i386coff.sc
--- ld/scripttempl/i386coff.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/i386coff.sc	9 Sep 2009 07:34:40 -0000
@@ -9,7 +9,7 @@ cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/i386go32.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/i386go32.sc,v
retrieving revision 1.8
diff -u -p -r1.8 i386go32.sc
--- ld/scripttempl/i386go32.sc	23 Sep 2002 11:36:15 -0000	1.8
+++ ld/scripttempl/i386go32.sc	9 Sep 2009 07:34:40 -0000
@@ -17,7 +17,7 @@ DTOR='.dtor : {
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/m68kaux.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/m68kaux.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 m68kaux.sc
--- ld/scripttempl/m68kaux.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/m68kaux.sc	9 Sep 2009 07:34:40 -0000
@@ -9,7 +9,7 @@ cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/m68klynx.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/m68klynx.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 m68klynx.sc
--- ld/scripttempl/m68klynx.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/m68klynx.sc	9 Sep 2009 07:34:40 -0000
@@ -3,7 +3,7 @@ cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/m88kbcs.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/m88kbcs.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 m88kbcs.sc
--- ld/scripttempl/m88kbcs.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/m88kbcs.sc	9 Sep 2009 07:34:40 -0000
@@ -5,7 +5,7 @@ FINI='.fini : { *(.fini) }'
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
-ENTRY(__start)
+${RELOCATING+ENTRY (__start)}
 ${RELOCATING+${LIB_SEARCH_DIRS}}
 
 SECTIONS 				
Index: ld/scripttempl/maxqcoff.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/maxqcoff.sc,v
retrieving revision 1.1
diff -u -p -r1.1 maxqcoff.sc
--- ld/scripttempl/maxqcoff.sc	8 Nov 2004 13:17:24 -0000	1.1
+++ ld/scripttempl/maxqcoff.sc	9 Sep 2009 07:34:40 -0000
@@ -2,7 +2,7 @@ test -z "$ENTRY" && ENTRY=_main
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 MEMORY 
   {
   rom (rx)  : ORIGIN = 0, LENGTH = 0x7FFE
Index: ld/scripttempl/mcorepe.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/mcorepe.sc,v
retrieving revision 1.5
diff -u -p -r1.5 mcorepe.sc
--- ld/scripttempl/mcorepe.sc	3 Sep 2009 18:04:34 -0000	1.5
+++ ld/scripttempl/mcorepe.sc	9 Sep 2009 07:34:40 -0000
@@ -47,7 +47,7 @@ fi
 cat <<EOF
 ${LIB_SEARCH_DIRS}
 
-ENTRY(_mainCRTStartup)
+${RELOCATING+ENTRY (_mainCRTStartup)}
 
 SECTIONS
 {
Index: ld/scripttempl/mips.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/mips.sc,v
retrieving revision 1.2
diff -u -p -r1.2 mips.sc
--- ld/scripttempl/mips.sc	21 Apr 2004 20:52:30 -0000	1.2
+++ ld/scripttempl/mips.sc	9 Sep 2009 07:34:40 -0000
@@ -19,7 +19,7 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG
 	      "${LITTLE_OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/ppcpe.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/ppcpe.sc,v
retrieving revision 1.2
diff -u -p -r1.2 ppcpe.sc
--- ld/scripttempl/ppcpe.sc	3 Sep 2009 18:04:34 -0000	1.2
+++ ld/scripttempl/ppcpe.sc	9 Sep 2009 07:34:41 -0000
@@ -22,7 +22,7 @@ ${LIB_SEARCH_DIRS}
    "-u mainCRTStartup" to make sure it gets included in the link.
 */
 
-ENTRY(mainCRTStartup)
+${RELOCATING+ENTRY (mainCRTStartup)}
 
 SECTIONS
 {
Index: ld/scripttempl/sa29200.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/sa29200.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 sa29200.sc
--- ld/scripttempl/sa29200.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/sa29200.sc	9 Sep 2009 07:34:41 -0000
@@ -1,6 +1,6 @@
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
-ENTRY(start)
+${RELOCATING+ENTRY (start)}
 
 SECTIONS {
   .text ${RELOCATING+${TEXT_START_ADDR}} : 
Index: ld/scripttempl/sparccoff.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/sparccoff.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 sparccoff.sc
--- ld/scripttempl/sparccoff.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/sparccoff.sc	9 Sep 2009 07:34:41 -0000
@@ -5,7 +5,7 @@ cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/sparclynx.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/sparclynx.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 sparclynx.sc
--- ld/scripttempl/sparclynx.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/sparclynx.sc	9 Sep 2009 07:34:41 -0000
@@ -4,7 +4,7 @@ cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/tic4xcoff.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/tic4xcoff.sc,v
retrieving revision 1.3
diff -u -p -r1.3 tic4xcoff.sc
--- ld/scripttempl/tic4xcoff.sc	4 Apr 2003 08:15:15 -0000	1.3
+++ ld/scripttempl/tic4xcoff.sc	9 Sep 2009 07:34:41 -0000
@@ -73,7 +73,7 @@ ${RELOCATING-/* Linker script for $OUTPU
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH("${OUTPUT_ARCH}")
 ${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 ${RELOCATING+ __HEAP_SIZE = DEFINED(__HEAP_SIZE) ? __HEAP_SIZE : ${HEAP_SIZE_DEFAULT};}
 ${RELOCATING+ __STACK_SIZE  = DEFINED(__STACK_SIZE)  ? __STACK_SIZE  : ${STACK_SIZE_DEFAULT};}
Index: ld/scripttempl/tic54xcoff.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/tic54xcoff.sc,v
retrieving revision 1.2
diff -u -p -r1.2 tic54xcoff.sc
--- ld/scripttempl/tic54xcoff.sc	30 Jun 2000 12:36:38 -0000	1.2
+++ ld/scripttempl/tic54xcoff.sc	9 Sep 2009 07:34:41 -0000
@@ -12,7 +12,7 @@ MEMORY
 	/*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80
 }
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS 				
 { 					
Index: ld/scripttempl/tic80coff.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/tic80coff.sc,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 tic80coff.sc
--- ld/scripttempl/tic80coff.sc	3 May 1999 07:29:08 -0000	1.1.1.1
+++ ld/scripttempl/tic80coff.sc	9 Sep 2009 07:34:41 -0000
@@ -23,7 +23,7 @@ cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
Index: ld/scripttempl/z8000.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/z8000.sc,v
retrieving revision 1.2
diff -u -p -r1.2 z8000.sc
--- ld/scripttempl/z8000.sc	3 Nov 2000 19:49:05 -0000	1.2
+++ ld/scripttempl/z8000.sc	9 Sep 2009 07:34:41 -0000
@@ -1,7 +1,7 @@
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH("${OUTPUT_ARCH}")
-ENTRY(_start)
+${RELOCATING+ENTRY (_start)}
 
 SECTIONS 				
 { 					

-- 
Alan Modra
Australia Development Lab, IBM


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