Only provide ENTRY on final link.

This commit is contained in:
Alan Modra 2009-09-09 11:59:14 +00:00
parent 9384f2ffd0
commit 596d6d9145
36 changed files with 73 additions and 35 deletions

View File

@ -1,3 +1,41 @@
2009-09-09 Alan Modra <amodra@bigpond.net.au>
* 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.
2009-09-07 Tristan Gingold <gingold@adacore.com>
* po/ld.pot: Regenerate.

View File

@ -6,7 +6,7 @@
cat <<EOF
OUTPUT_ARCH(${ARCH})
${RELOCATING+${LIB_SEARCH_DIRS}}
ENTRY(__start)
${RELOCATING+ENTRY (__start)}
SECTIONS
{
.pad 0 : { *(.pad) }

View File

@ -13,7 +13,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -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
{

View File

@ -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}}:

View File

@ -1,7 +1,7 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
ENTRY(_start)
${RELOCATING+ENTRY (_start)}
${RELOCATING+${LIB_SEARCH_DIRS}}
SECTIONS

View File

@ -1,6 +1,6 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
ENTRY(start)
${RELOCATING+ENTRY (start)}
SECTIONS {
.text ${RELOCATING+${TEXT_START_ADDR}} :

View File

@ -1,7 +1,7 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
ENTRY("_start")
${RELOCATING+ENTRY ("_start")}
MEMORY
{

View File

@ -1,7 +1,7 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
ENTRY("_start")
${RELOCATING+ENTRY ("_start")}
MEMORY
{
vectarea : o =0xc00000, l = 0x0300

View File

@ -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;

View File

@ -41,7 +41,7 @@ ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABLE_OUTPUT_FORMAT})}
${LIB_SEARCH_DIRS}
ENTRY(_mainCRTStartup)
${RELOCATING+ENTRY (_mainCRTStartup)}
SECTIONS
{

View File

@ -11,7 +11,7 @@ TORS=".tors :
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
ENTRY("_start")
${RELOCATING+ENTRY ("_start")}
MEMORY
{

View File

@ -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. */

View File

@ -11,7 +11,7 @@ TORS=".tors :
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(h8300hn)
ENTRY("_start")
${RELOCATING+ENTRY ("_start")}
MEMORY
{

View File

@ -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. */

View File

@ -11,7 +11,7 @@ TORS=".tors :
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(h8300sn)
ENTRY("_start")
${RELOCATING+ENTRY ("_start")}
MEMORY
{

View File

@ -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. */

View File

@ -11,7 +11,7 @@ TORS=".tors :
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(h8300sxn)
ENTRY("_start")
${RELOCATING+ENTRY ("_start")}
MEMORY
{

View File

@ -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
{

View File

@ -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 = .;}

View File

@ -9,7 +9,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -17,7 +17,7 @@ DTOR='.dtor : {
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -9,7 +9,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -3,7 +3,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -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

View File

@ -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

View File

@ -47,7 +47,7 @@ fi
cat <<EOF
${LIB_SEARCH_DIRS}
ENTRY(_mainCRTStartup)
${RELOCATING+ENTRY (_mainCRTStartup)}
SECTIONS
{

View File

@ -19,7 +19,7 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
"${LITTLE_OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -22,7 +22,7 @@ ${LIB_SEARCH_DIRS}
"-u mainCRTStartup" to make sure it gets included in the link.
*/
ENTRY(mainCRTStartup)
${RELOCATING+ENTRY (mainCRTStartup)}
SECTIONS
{

View File

@ -1,6 +1,6 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
ENTRY(start)
${RELOCATING+ENTRY (start)}
SECTIONS {
.text ${RELOCATING+${TEXT_START_ADDR}} :

View File

@ -5,7 +5,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -4,7 +4,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -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};}

View File

@ -12,7 +12,7 @@ MEMORY
/*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80
}
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -23,7 +23,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{

View File

@ -1,7 +1,7 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH("${OUTPUT_ARCH}")
ENTRY(_start)
${RELOCATING+ENTRY (_start)}
SECTIONS
{