summaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/aix.sc2
-rw-r--r--ld/scripttempl/alpha.sc2
-rw-r--r--ld/scripttempl/armcoff.sc2
-rw-r--r--ld/scripttempl/crisaout.sc2
-rw-r--r--ld/scripttempl/delta68.sc2
-rw-r--r--ld/scripttempl/ebmon29k.sc2
-rw-r--r--ld/scripttempl/elf32xc16x.sc2
-rw-r--r--ld/scripttempl/elf32xc16xl.sc2
-rw-r--r--ld/scripttempl/elfmicroblaze.sc2
-rw-r--r--ld/scripttempl/epocpe.sc2
-rw-r--r--ld/scripttempl/h8300.sc2
-rw-r--r--ld/scripttempl/h8300h.sc2
-rw-r--r--ld/scripttempl/h8300hn.sc2
-rw-r--r--ld/scripttempl/h8300s.sc2
-rw-r--r--ld/scripttempl/h8300sn.sc2
-rw-r--r--ld/scripttempl/h8300sx.sc2
-rw-r--r--ld/scripttempl/h8300sxn.sc2
-rw-r--r--ld/scripttempl/hppaelf.sc2
-rw-r--r--ld/scripttempl/i386beos.sc2
-rw-r--r--ld/scripttempl/i386coff.sc2
-rw-r--r--ld/scripttempl/i386go32.sc2
-rw-r--r--ld/scripttempl/m68kaux.sc2
-rw-r--r--ld/scripttempl/m68klynx.sc2
-rw-r--r--ld/scripttempl/m88kbcs.sc2
-rw-r--r--ld/scripttempl/maxqcoff.sc2
-rw-r--r--ld/scripttempl/mcorepe.sc2
-rw-r--r--ld/scripttempl/mips.sc2
-rw-r--r--ld/scripttempl/ppcpe.sc2
-rw-r--r--ld/scripttempl/sa29200.sc2
-rw-r--r--ld/scripttempl/sparccoff.sc2
-rw-r--r--ld/scripttempl/sparclynx.sc2
-rw-r--r--ld/scripttempl/tic4xcoff.sc2
-rw-r--r--ld/scripttempl/tic54xcoff.sc2
-rw-r--r--ld/scripttempl/tic80coff.sc2
-rw-r--r--ld/scripttempl/z8000.sc2
35 files changed, 35 insertions, 35 deletions
diff --git a/ld/scripttempl/aix.sc b/ld/scripttempl/aix.sc
index cdd3eac813..d592dbe59f 100644
--- a/ld/scripttempl/aix.sc
+++ b/ld/scripttempl/aix.sc
@@ -6,7 +6,7 @@
cat <<EOF
OUTPUT_ARCH(${ARCH})
${RELOCATING+${LIB_SEARCH_DIRS}}
-ENTRY(__start)
+${RELOCATING+ENTRY (__start)}
SECTIONS
{
.pad 0 : { *(.pad) }
diff --git a/ld/scripttempl/alpha.sc b/ld/scripttempl/alpha.sc
index 44a10c469c..99565b4131 100644
--- a/ld/scripttempl/alpha.sc
+++ b/ld/scripttempl/alpha.sc
@@ -13,7 +13,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/armcoff.sc b/ld/scripttempl/armcoff.sc
index 781301c807..ebc019a89f 100644
--- a/ld/scripttempl/armcoff.sc
+++ b/ld/scripttempl/armcoff.sc
@@ -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
{
diff --git a/ld/scripttempl/crisaout.sc b/ld/scripttempl/crisaout.sc
index 186fac765d..c58f56d802 100644
--- a/ld/scripttempl/crisaout.sc
+++ b/ld/scripttempl/crisaout.sc
@@ -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}}:
diff --git a/ld/scripttempl/delta68.sc b/ld/scripttempl/delta68.sc
index d9963054e7..fb196f3b3d 100644
--- a/ld/scripttempl/delta68.sc
+++ b/ld/scripttempl/delta68.sc
@@ -1,7 +1,7 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
-ENTRY(_start)
+${RELOCATING+ENTRY (_start)}
${RELOCATING+${LIB_SEARCH_DIRS}}
SECTIONS
diff --git a/ld/scripttempl/ebmon29k.sc b/ld/scripttempl/ebmon29k.sc
index 62050ee217..5079488502 100644
--- a/ld/scripttempl/ebmon29k.sc
+++ b/ld/scripttempl/ebmon29k.sc
@@ -1,6 +1,6 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
-ENTRY(start)
+${RELOCATING+ENTRY (start)}
SECTIONS {
.text ${RELOCATING+${TEXT_START_ADDR}} :
diff --git a/ld/scripttempl/elf32xc16x.sc b/ld/scripttempl/elf32xc16x.sc
index 7ffdc38799..cb72508c99 100644
--- a/ld/scripttempl/elf32xc16x.sc
+++ b/ld/scripttempl/elf32xc16x.sc
@@ -1,7 +1,7 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
MEMORY
{
diff --git a/ld/scripttempl/elf32xc16xl.sc b/ld/scripttempl/elf32xc16xl.sc
index 215b50ae9c..3565ecec36 100644
--- a/ld/scripttempl/elf32xc16xl.sc
+++ b/ld/scripttempl/elf32xc16xl.sc
@@ -1,7 +1,7 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
MEMORY
{
vectarea : o =0xc00000, l = 0x0300
diff --git a/ld/scripttempl/elfmicroblaze.sc b/ld/scripttempl/elfmicroblaze.sc
index 7677261ed5..a54b89193c 100644
--- a/ld/scripttempl/elfmicroblaze.sc
+++ b/ld/scripttempl/elfmicroblaze.sc
@@ -47,7 +47,7 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
/*${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;
diff --git a/ld/scripttempl/epocpe.sc b/ld/scripttempl/epocpe.sc
index 34aebf6f94..0651c01700 100644
--- a/ld/scripttempl/epocpe.sc
+++ b/ld/scripttempl/epocpe.sc
@@ -41,7 +41,7 @@ ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABLE_OUTPUT_FORMAT})}
${LIB_SEARCH_DIRS}
-ENTRY(_mainCRTStartup)
+${RELOCATING+ENTRY (_mainCRTStartup)}
SECTIONS
{
diff --git a/ld/scripttempl/h8300.sc b/ld/scripttempl/h8300.sc
index 1fdf30c8fd..f142f4bcc0 100644
--- a/ld/scripttempl/h8300.sc
+++ b/ld/scripttempl/h8300.sc
@@ -11,7 +11,7 @@ TORS=".tors :
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
MEMORY
{
diff --git a/ld/scripttempl/h8300h.sc b/ld/scripttempl/h8300h.sc
index c2bc2e14ba..9a415373ff 100644
--- a/ld/scripttempl/h8300h.sc
+++ b/ld/scripttempl/h8300h.sc
@@ -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. */
diff --git a/ld/scripttempl/h8300hn.sc b/ld/scripttempl/h8300hn.sc
index e2c2954478..5cdfc5a6c9 100644
--- a/ld/scripttempl/h8300hn.sc
+++ b/ld/scripttempl/h8300hn.sc
@@ -11,7 +11,7 @@ TORS=".tors :
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(h8300hn)
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
MEMORY
{
diff --git a/ld/scripttempl/h8300s.sc b/ld/scripttempl/h8300s.sc
index 53c9dec11c..e07253d9bf 100644
--- a/ld/scripttempl/h8300s.sc
+++ b/ld/scripttempl/h8300s.sc
@@ -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. */
diff --git a/ld/scripttempl/h8300sn.sc b/ld/scripttempl/h8300sn.sc
index b2647ca405..27ba4a1373 100644
--- a/ld/scripttempl/h8300sn.sc
+++ b/ld/scripttempl/h8300sn.sc
@@ -11,7 +11,7 @@ TORS=".tors :
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(h8300sn)
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
MEMORY
{
diff --git a/ld/scripttempl/h8300sx.sc b/ld/scripttempl/h8300sx.sc
index d3807c0d0c..247e9777e5 100644
--- a/ld/scripttempl/h8300sx.sc
+++ b/ld/scripttempl/h8300sx.sc
@@ -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. */
diff --git a/ld/scripttempl/h8300sxn.sc b/ld/scripttempl/h8300sxn.sc
index 0b1bcf1196..90bd7891b8 100644
--- a/ld/scripttempl/h8300sxn.sc
+++ b/ld/scripttempl/h8300sxn.sc
@@ -11,7 +11,7 @@ TORS=".tors :
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(h8300sxn)
-ENTRY("_start")
+${RELOCATING+ENTRY ("_start")}
MEMORY
{
diff --git a/ld/scripttempl/hppaelf.sc b/ld/scripttempl/hppaelf.sc
index 941ce08998..a96ad54a21 100644
--- a/ld/scripttempl/hppaelf.sc
+++ b/ld/scripttempl/hppaelf.sc
@@ -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
{
diff --git a/ld/scripttempl/i386beos.sc b/ld/scripttempl/i386beos.sc
index 21a01e56cd..f507accffa 100644
--- a/ld/scripttempl/i386beos.sc
+++ b/ld/scripttempl/i386beos.sc
@@ -38,7 +38,7 @@ ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABLE_OUTPUT_FORMAT})}
${LIB_SEARCH_DIRS}
-ENTRY(__start)
+${RELOCATING+ENTRY (__start)}
${RELOCATING+header = .;}
${RELOCATING+__fltused = .; /* set up floating pt for MS .obj\'s */}
${RELOCATING+__ldused = .;}
diff --git a/ld/scripttempl/i386coff.sc b/ld/scripttempl/i386coff.sc
index fbb1b7918c..da14632024 100644
--- a/ld/scripttempl/i386coff.sc
+++ b/ld/scripttempl/i386coff.sc
@@ -9,7 +9,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/i386go32.sc b/ld/scripttempl/i386go32.sc
index 54908fe110..e5bcf2ac57 100644
--- a/ld/scripttempl/i386go32.sc
+++ b/ld/scripttempl/i386go32.sc
@@ -17,7 +17,7 @@ DTOR='.dtor : {
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/m68kaux.sc b/ld/scripttempl/m68kaux.sc
index 404280e127..09032be8d6 100644
--- a/ld/scripttempl/m68kaux.sc
+++ b/ld/scripttempl/m68kaux.sc
@@ -9,7 +9,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/m68klynx.sc b/ld/scripttempl/m68klynx.sc
index 81d2245885..c624aadd20 100644
--- a/ld/scripttempl/m68klynx.sc
+++ b/ld/scripttempl/m68klynx.sc
@@ -3,7 +3,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/m88kbcs.sc b/ld/scripttempl/m88kbcs.sc
index f52b14dc0c..0cd6ab9258 100644
--- a/ld/scripttempl/m88kbcs.sc
+++ b/ld/scripttempl/m88kbcs.sc
@@ -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
diff --git a/ld/scripttempl/maxqcoff.sc b/ld/scripttempl/maxqcoff.sc
index 2e093048c0..d35107d778 100644
--- a/ld/scripttempl/maxqcoff.sc
+++ b/ld/scripttempl/maxqcoff.sc
@@ -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
diff --git a/ld/scripttempl/mcorepe.sc b/ld/scripttempl/mcorepe.sc
index 5b10881cd8..511fdb1f89 100644
--- a/ld/scripttempl/mcorepe.sc
+++ b/ld/scripttempl/mcorepe.sc
@@ -47,7 +47,7 @@ fi
cat <<EOF
${LIB_SEARCH_DIRS}
-ENTRY(_mainCRTStartup)
+${RELOCATING+ENTRY (_mainCRTStartup)}
SECTIONS
{
diff --git a/ld/scripttempl/mips.sc b/ld/scripttempl/mips.sc
index 972351f754..f53558aba4 100644
--- a/ld/scripttempl/mips.sc
+++ b/ld/scripttempl/mips.sc
@@ -19,7 +19,7 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
"${LITTLE_OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/ppcpe.sc b/ld/scripttempl/ppcpe.sc
index 83e260930c..182fbe5544 100644
--- a/ld/scripttempl/ppcpe.sc
+++ b/ld/scripttempl/ppcpe.sc
@@ -22,7 +22,7 @@ ${LIB_SEARCH_DIRS}
"-u mainCRTStartup" to make sure it gets included in the link.
*/
-ENTRY(mainCRTStartup)
+${RELOCATING+ENTRY (mainCRTStartup)}
SECTIONS
{
diff --git a/ld/scripttempl/sa29200.sc b/ld/scripttempl/sa29200.sc
index a2f267e649..96851d7fec 100644
--- a/ld/scripttempl/sa29200.sc
+++ b/ld/scripttempl/sa29200.sc
@@ -1,6 +1,6 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
-ENTRY(start)
+${RELOCATING+ENTRY (start)}
SECTIONS {
.text ${RELOCATING+${TEXT_START_ADDR}} :
diff --git a/ld/scripttempl/sparccoff.sc b/ld/scripttempl/sparccoff.sc
index 6bbb7ad6e9..309aa836a5 100644
--- a/ld/scripttempl/sparccoff.sc
+++ b/ld/scripttempl/sparccoff.sc
@@ -5,7 +5,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/sparclynx.sc b/ld/scripttempl/sparclynx.sc
index c2b1e1d327..d6ea11015a 100644
--- a/ld/scripttempl/sparclynx.sc
+++ b/ld/scripttempl/sparclynx.sc
@@ -4,7 +4,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/tic4xcoff.sc b/ld/scripttempl/tic4xcoff.sc
index 121f3ed4c1..83245caa10 100644
--- a/ld/scripttempl/tic4xcoff.sc
+++ b/ld/scripttempl/tic4xcoff.sc
@@ -73,7 +73,7 @@ ${RELOCATING-/* Linker script for $OUTPUT_ARCHNAME object file (ld -r). */}
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};}
diff --git a/ld/scripttempl/tic54xcoff.sc b/ld/scripttempl/tic54xcoff.sc
index 8d8a81166b..f17b480d1f 100644
--- a/ld/scripttempl/tic54xcoff.sc
+++ b/ld/scripttempl/tic54xcoff.sc
@@ -12,7 +12,7 @@ MEMORY
/*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80
}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/tic80coff.sc b/ld/scripttempl/tic80coff.sc
index 2b6f6534aa..f28e904909 100644
--- a/ld/scripttempl/tic80coff.sc
+++ b/ld/scripttempl/tic80coff.sc
@@ -23,7 +23,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
diff --git a/ld/scripttempl/z8000.sc b/ld/scripttempl/z8000.sc
index 646c88080a..b03f5d85ee 100644
--- a/ld/scripttempl/z8000.sc
+++ b/ld/scripttempl/z8000.sc
@@ -1,7 +1,7 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH("${OUTPUT_ARCH}")
-ENTRY(_start)
+${RELOCATING+ENTRY (_start)}
SECTIONS
{