Only provide ENTRY on final link.
This commit is contained in:
parent
9384f2ffd0
commit
596d6d9145
38
ld/ChangeLog
38
ld/ChangeLog
@ -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.
|
||||
|
@ -6,7 +6,7 @@
|
||||
cat <<EOF
|
||||
OUTPUT_ARCH(${ARCH})
|
||||
${RELOCATING+${LIB_SEARCH_DIRS}}
|
||||
ENTRY(__start)
|
||||
${RELOCATING+ENTRY (__start)}
|
||||
SECTIONS
|
||||
{
|
||||
.pad 0 : { *(.pad) }
|
||||
|
@ -13,7 +13,7 @@ cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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}}:
|
||||
|
@ -1,7 +1,7 @@
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
OUTPUT_ARCH(${ARCH})
|
||||
ENTRY(_start)
|
||||
${RELOCATING+ENTRY (_start)}
|
||||
${RELOCATING+${LIB_SEARCH_DIRS}}
|
||||
|
||||
SECTIONS
|
||||
|
@ -1,6 +1,6 @@
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
ENTRY(start)
|
||||
${RELOCATING+ENTRY (start)}
|
||||
|
||||
SECTIONS {
|
||||
.text ${RELOCATING+${TEXT_START_ADDR}} :
|
||||
|
@ -1,7 +1,7 @@
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
OUTPUT_ARCH(${ARCH})
|
||||
ENTRY("_start")
|
||||
${RELOCATING+ENTRY ("_start")}
|
||||
MEMORY
|
||||
{
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
OUTPUT_ARCH(${ARCH})
|
||||
ENTRY("_start")
|
||||
${RELOCATING+ENTRY ("_start")}
|
||||
MEMORY
|
||||
{
|
||||
vectarea : o =0xc00000, l = 0x0300
|
||||
|
@ -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;
|
||||
|
@ -41,7 +41,7 @@ ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABLE_OUTPUT_FORMAT})}
|
||||
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(_mainCRTStartup)
|
||||
${RELOCATING+ENTRY (_mainCRTStartup)}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ TORS=".tors :
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
OUTPUT_ARCH(${ARCH})
|
||||
ENTRY("_start")
|
||||
${RELOCATING+ENTRY ("_start")}
|
||||
|
||||
MEMORY
|
||||
{
|
||||
|
@ -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. */
|
||||
|
@ -11,7 +11,7 @@ TORS=".tors :
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
OUTPUT_ARCH(h8300hn)
|
||||
ENTRY("_start")
|
||||
${RELOCATING+ENTRY ("_start")}
|
||||
|
||||
MEMORY
|
||||
{
|
||||
|
@ -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. */
|
||||
|
@ -11,7 +11,7 @@ TORS=".tors :
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
OUTPUT_ARCH(h8300sn)
|
||||
ENTRY("_start")
|
||||
${RELOCATING+ENTRY ("_start")}
|
||||
|
||||
MEMORY
|
||||
{
|
||||
|
@ -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. */
|
||||
|
@ -11,7 +11,7 @@ TORS=".tors :
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
OUTPUT_ARCH(h8300sxn)
|
||||
ENTRY("_start")
|
||||
${RELOCATING+ENTRY ("_start")}
|
||||
|
||||
MEMORY
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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 = .;}
|
||||
|
@ -9,7 +9,7 @@ cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ DTOR='.dtor : {
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -47,7 +47,7 @@ fi
|
||||
cat <<EOF
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(_mainCRTStartup)
|
||||
${RELOCATING+ENTRY (_mainCRTStartup)}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
|
||||
"${LITTLE_OUTPUT_FORMAT}")
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ ${LIB_SEARCH_DIRS}
|
||||
"-u mainCRTStartup" to make sure it gets included in the link.
|
||||
*/
|
||||
|
||||
ENTRY(mainCRTStartup)
|
||||
${RELOCATING+ENTRY (mainCRTStartup)}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
ENTRY(start)
|
||||
${RELOCATING+ENTRY (start)}
|
||||
|
||||
SECTIONS {
|
||||
.text ${RELOCATING+${TEXT_START_ADDR}} :
|
||||
|
@ -5,7 +5,7 @@ cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -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};}
|
||||
|
@ -12,7 +12,7 @@ MEMORY
|
||||
/*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80
|
||||
}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -23,7 +23,7 @@ cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
${LIB_SEARCH_DIRS}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
${RELOCATING+ENTRY (${ENTRY})}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
OUTPUT_ARCH("${OUTPUT_ARCH}")
|
||||
ENTRY(_start)
|
||||
${RELOCATING+ENTRY (_start)}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user