diff options
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/elf32cr16.sc | 6 | ||||
-rw-r--r-- | ld/scripttempl/elf32cr16c.sc | 6 | ||||
-rw-r--r-- | ld/scripttempl/elf32crx.sc | 6 | ||||
-rw-r--r-- | ld/scripttempl/elf32xc16xs.sc | 2 |
4 files changed, 1 insertions, 19 deletions
diff --git a/ld/scripttempl/elf32cr16.sc b/ld/scripttempl/elf32cr16.sc index 7c357c1..61351c5 100644 --- a/ld/scripttempl/elf32cr16.sc +++ b/ld/scripttempl/elf32cr16.sc @@ -10,14 +10,8 @@ cat <<EOF /* Example Linker Script for linking NS CR16 elf32 files. */ -/* The next line forces the entry point (${ENTRY} in this script) - to be entered in the output file as an undefined symbol. - It is needed in case the entry point is not called explicitly - (which is the usual case) AND is in an archive. */ - OUTPUT_FORMAT("${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) -${RELOCATING+EXTERN(${ENTRY})} ${RELOCATING+ENTRY(${ENTRY})} /* Define memory regions. */ diff --git a/ld/scripttempl/elf32cr16c.sc b/ld/scripttempl/elf32cr16c.sc index 56bab60..84fc61c 100644 --- a/ld/scripttempl/elf32cr16c.sc +++ b/ld/scripttempl/elf32cr16c.sc @@ -7,12 +7,6 @@ cat <<EOF elf32 files, which were compiled with either the near data model or the default data model. */ -/* Force the entry point to be entered in the output file as - an undefined symbol. This is needed in case the entry point - (which is not called explicitly) is in an archive (which is - the usual case). */ - -${RELOCATING+EXTERN(${ENTRY})} ${RELOCATING+ENTRY(${ENTRY})} MEMORY diff --git a/ld/scripttempl/elf32crx.sc b/ld/scripttempl/elf32crx.sc index 514254a..c320bda 100644 --- a/ld/scripttempl/elf32crx.sc +++ b/ld/scripttempl/elf32crx.sc @@ -10,14 +10,8 @@ cat <<EOF /* Example Linker Script for linking NS CRX elf32 files. */ -/* The next line forces the entry point (${ENTRY} in this script) - to be entered in the output file as an undefined symbol. - It is needed in case the entry point is not called explicitly - (which is the usual case) AND is in an archive. */ - OUTPUT_FORMAT("${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) -${RELOCATING+EXTERN(${ENTRY})} ${RELOCATING+ENTRY(${ENTRY})} /* Define memory regions. */ diff --git a/ld/scripttempl/elf32xc16xs.sc b/ld/scripttempl/elf32xc16xs.sc index 215b50a..3565ece 100644 --- a/ld/scripttempl/elf32xc16xs.sc +++ b/ld/scripttempl/elf32xc16xs.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 |