PR 4515
authorAlan Modra <amodra@gmail.com>
Thu, 9 Aug 2007 11:02:24 +0000 (11:02 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Aug 2007 11:02:24 +0000 (11:02 +0000)
* genscripts.sh: Delete all references to NONPAGED_TEXT_START_ADDR.
* ldint.texinfo: Likewise.
* emulparams/armaoutb.sh (NONPAGED_TEXT_START_ADDRESS): Delete.
* emulparams/armaoutl.sh: Likewise.
* emulparams/arcelf.sh (NONPAGED_TEXT_START_ADDR): Delete.
* emulparams/bfin.sh: Likewise
* emulparams/crisaout.sh: Likewise
* emulparams/elf32_sparc.sh: Likewise
* emulparams/elf32am33lin.sh: Likewise
* emulparams/elf32b4300.sh: Likewise
* emulparams/elf32bmip.sh: Likewise
* emulparams/elf32mcore.sh: Likewise
* emulparams/elf32xtensa.sh: Likewise
* emulparams/elf64_s390.sh: Likewise
* emulparams/elf64_sparc.sh: Likewise
* emulparams/elf64alpha.sh: Likewise
* emulparams/elf_i386.sh: Likewise
* emulparams/elf_i386_be.sh: Likewise
* emulparams/elf_i386_chaos.sh: Likewise
* emulparams/elf_i386_ldso.sh: Likewise
* emulparams/elf_i386_vxworks.sh: Likewise
* emulparams/elf_s390.sh: Likewise
* emulparams/elf_x86_64.sh: Likewise
* emulparams/i386aout.sh: Likewise
* emulparams/i386moss.sh: Likewise
* emulparams/i386msdos.sh: Likewise
* emulparams/i386nto.sh: Likewise
* emulparams/i386nw.sh: Likewise
* emulparams/m68kaout.sh: Likewise
* emulparams/m68kelf.sh: Likewise
* emulparams/ppcnw.sh: Likewise
* emulparams/sun4.sh: Likewise
* emulparams/tic80coff.sh: Likewise
* emulparams/vaxnbsd.sh: Likewise
* emulparams/armnbsd.sh (NONPAGED_TEXT_START_ADDR): Delete.
(TEXT_START_ADDR): Set for -n, -N.
* emulparams/coff_sparc.sh: Likewise
* emulparams/elf32vax.sh: Likewise
* emulparams/i386bsd.sh: Likewise
* emulparams/i386go32.sh: Likewise
* emulparams/i386linux.sh: Likewise
* emulparams/i386lynx.sh: Likewise
* emulparams/i386mach.sh: Likewise
* emulparams/m68k4knbsd.sh: Likewise
* emulparams/m68klinux.sh: Likewise
* emulparams/m68knbsd.sh: Likewise
* emulparams/ns32knbsd.sh: Likewise
* emulparams/pc532macha.sh: Likewise
* emulparams/ppclynx.sh: Likewise
* emulparams/scoreelf.sh: Likewise
* emulparams/sparcaout.sh: Likewise
* emulparams/sparclinux.sh: Likewise
* emulparams/sun3.sh: Likewise
* emulparams/vsta.sh: Likewise

54 files changed:
ld/ChangeLog
ld/emulparams/arcelf.sh
ld/emulparams/armaoutb.sh
ld/emulparams/armaoutl.sh
ld/emulparams/armnbsd.sh
ld/emulparams/bfin.sh
ld/emulparams/coff_sparc.sh
ld/emulparams/crisaout.sh
ld/emulparams/elf32_sparc.sh
ld/emulparams/elf32am33lin.sh
ld/emulparams/elf32b4300.sh
ld/emulparams/elf32bmip.sh
ld/emulparams/elf32mcore.sh
ld/emulparams/elf32vax.sh
ld/emulparams/elf32xtensa.sh
ld/emulparams/elf64_s390.sh
ld/emulparams/elf64_sparc.sh
ld/emulparams/elf64alpha.sh
ld/emulparams/elf_i386.sh
ld/emulparams/elf_i386_be.sh
ld/emulparams/elf_i386_chaos.sh
ld/emulparams/elf_i386_ldso.sh
ld/emulparams/elf_i386_vxworks.sh
ld/emulparams/elf_s390.sh
ld/emulparams/elf_x86_64.sh
ld/emulparams/i386aout.sh
ld/emulparams/i386bsd.sh
ld/emulparams/i386go32.sh
ld/emulparams/i386linux.sh
ld/emulparams/i386lynx.sh
ld/emulparams/i386mach.sh
ld/emulparams/i386moss.sh
ld/emulparams/i386msdos.sh
ld/emulparams/i386nto.sh
ld/emulparams/i386nw.sh
ld/emulparams/m68k4knbsd.sh
ld/emulparams/m68kaout.sh
ld/emulparams/m68kelf.sh
ld/emulparams/m68klinux.sh
ld/emulparams/m68knbsd.sh
ld/emulparams/ns32knbsd.sh
ld/emulparams/pc532macha.sh
ld/emulparams/ppclynx.sh
ld/emulparams/ppcnw.sh
ld/emulparams/scoreelf.sh
ld/emulparams/sparcaout.sh
ld/emulparams/sparclinux.sh
ld/emulparams/sun3.sh
ld/emulparams/sun4.sh
ld/emulparams/tic80coff.sh
ld/emulparams/vaxnbsd.sh
ld/emulparams/vsta.sh
ld/genscripts.sh
ld/ldint.texinfo

index be87b5572a27ab1fe20e5d2019e2e0369c76cf38..11de68ad1ef813d64c81126c415c022bca6ae031 100644 (file)
@@ -1,4 +1,62 @@
-2007-08-07     Ralf Corsépius <ralf.corsepius@rtems.org>
+2007-08-09  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 4515
+       * genscripts.sh: Delete all references to NONPAGED_TEXT_START_ADDR.
+       * ldint.texinfo: Likewise.
+       * emulparams/armaoutb.sh (NONPAGED_TEXT_START_ADDRESS): Delete.
+       * emulparams/armaoutl.sh: Likewise.
+       * emulparams/arcelf.sh (NONPAGED_TEXT_START_ADDR): Delete.
+       * emulparams/bfin.sh: Likewise
+       * emulparams/crisaout.sh: Likewise
+       * emulparams/elf32_sparc.sh: Likewise
+       * emulparams/elf32am33lin.sh: Likewise
+       * emulparams/elf32b4300.sh: Likewise
+       * emulparams/elf32bmip.sh: Likewise
+       * emulparams/elf32mcore.sh: Likewise
+       * emulparams/elf32xtensa.sh: Likewise
+       * emulparams/elf64_s390.sh: Likewise
+       * emulparams/elf64_sparc.sh: Likewise
+       * emulparams/elf64alpha.sh: Likewise
+       * emulparams/elf_i386.sh: Likewise
+       * emulparams/elf_i386_be.sh: Likewise
+       * emulparams/elf_i386_chaos.sh: Likewise
+       * emulparams/elf_i386_ldso.sh: Likewise
+       * emulparams/elf_i386_vxworks.sh: Likewise
+       * emulparams/elf_s390.sh: Likewise
+       * emulparams/elf_x86_64.sh: Likewise
+       * emulparams/i386aout.sh: Likewise
+       * emulparams/i386moss.sh: Likewise
+       * emulparams/i386msdos.sh: Likewise
+       * emulparams/i386nto.sh: Likewise
+       * emulparams/i386nw.sh: Likewise
+       * emulparams/m68kaout.sh: Likewise
+       * emulparams/m68kelf.sh: Likewise
+       * emulparams/ppcnw.sh: Likewise
+       * emulparams/sun4.sh: Likewise
+       * emulparams/tic80coff.sh: Likewise
+       * emulparams/vaxnbsd.sh: Likewise
+       * emulparams/armnbsd.sh (NONPAGED_TEXT_START_ADDR): Delete.
+       (TEXT_START_ADDR): Set for -n, -N.
+       * emulparams/coff_sparc.sh: Likewise
+       * emulparams/elf32vax.sh: Likewise
+       * emulparams/i386bsd.sh: Likewise
+       * emulparams/i386go32.sh: Likewise
+       * emulparams/i386linux.sh: Likewise
+       * emulparams/i386lynx.sh: Likewise
+       * emulparams/i386mach.sh: Likewise
+       * emulparams/m68k4knbsd.sh: Likewise
+       * emulparams/m68klinux.sh: Likewise
+       * emulparams/m68knbsd.sh: Likewise
+       * emulparams/ns32knbsd.sh: Likewise
+       * emulparams/pc532macha.sh: Likewise
+       * emulparams/ppclynx.sh: Likewise
+       * emulparams/scoreelf.sh: Likewise
+       * emulparams/sparcaout.sh: Likewise
+       * emulparams/sparclinux.sh: Likewise
+       * emulparams/sun3.sh: Likewise
+       * emulparams/vsta.sh: Likewise
+
+2007-08-07  Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * configure.tgt: Add bfin-*rtems*.
 
index 6c524c9a762a5d04d3161088d6e2fb2098e3a797..31db4a9be116c2760b06b23e40f82d992d7a26b6 100644 (file)
@@ -6,7 +6,6 @@ LITTLE_OUTPUT_FORMAT="elf32-littlearc"
 BIG_OUTPUT_FORMAT="elf32-bigarc"
 TEXT_START_ADDR=0x0
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x0
 ARCH=arc
 MACHINE=
 ENTRY=start
index 59ab6f14f6074ae4c9ae4663026792ce7763d77f..efef2c327d9d38c700ed2402b122d636b0736703 100644 (file)
@@ -2,6 +2,5 @@ SCRIPT_NAME=armaout
 OUTPUT_FORMAT="a.out-arm-big"
 HEADER_START_ADDR=0x8000
 TEXT_START_ADDR=0x8000
-NONPAGED_TEXT_START_ADDRESS=0x8000
 TARGET_PAGE_SIZE=32768
 ARCH=arm
index 9501f33ec2a2209df75809b0277cee3577b075bf..5eccc4c1b8f05ea66c7d99aac001724d96cebeb5 100644 (file)
@@ -2,6 +2,5 @@ SCRIPT_NAME=armaout
 OUTPUT_FORMAT="a.out-arm-little"
 HEADER_START_ADDR=0x8000
 TEXT_START_ADDR=0x8000
-NONPAGED_TEXT_START_ADDRESS=0x8000
 TARGET_PAGE_SIZE=32768
 ARCH=arm
index fc2779164a0ec31397cf801b9db0362febedbf2a..dd4768daace38b9e4fec8291d4b431f99b4d088a 100644 (file)
@@ -1,7 +1,9 @@
 SCRIPT_NAME=aout
 TEXT_START_ADDR=0x1020
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
 OUTPUT_FORMAT="a.out-arm-netbsd"
 TARGET_PAGE_SIZE=0x1000
 ARCH=arm
 EXECUTABLE_SYMBOLS='__DYNAMIC = 0;'
-NONPAGED_TEXT_START_ADDR=0x1000
index 73e2b946a5a8fd457824f5439a64a94a002fc76e..1c764e8f9af40633ade7a7066c11a081ad8e8e38 100755 (executable)
@@ -3,7 +3,6 @@ OUTPUT_FORMAT="elf32-bfin"
 TEXT_START_ADDR=0x0
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 TARGET_PAGE_SIZE=0x1000
-NONPAGED_TEXT_START_ADDR=${TEXT_START_ADDR}
 ARCH=bfin
 MACHINE=
 ENTRY=__start
index 0cf852a7b2156d1c32d19a317ca42b54aa5556b8..d66cf616415fd0f9d1d3338542ce2971345fb145 100644 (file)
@@ -3,5 +3,7 @@ OUTPUT_FORMAT="coff-sparc"
 # following are dubious (borrowed from sparc lynx)
 TARGET_PAGE_SIZE=0x1000
 TEXT_START_ADDR=0
-NONPAGED_TEXT_START_ADDR=0x1000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
 ARCH=sparc
index bb9135aa81bf83306ca88d1c5c990e65183c14dd..625e90fd5ef6638181dbf30dafca165d18d70ba3 100644 (file)
@@ -3,5 +3,4 @@ SCRIPT_NAME=crisaout
 OUTPUT_FORMAT="a.out-cris"
 TARGET_PAGE_SIZE=2
 TEXT_START_ADDR=0
-NONPAGED_TEXT_START_ADDR=0
 ARCH=cris
index d09d9dc7edb99309c858f9c1593c9cd8721f4907..3db6d8838d1ad71467298ff0cc10d3cdd59a95d2 100644 (file)
@@ -6,7 +6,6 @@ OUTPUT_FORMAT="elf32-sparc"
 TEXT_START_ADDR=0x10000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x10000
 ALIGNMENT=8
 ARCH=sparc
 MACHINE=
index 31dbc70b882d8c8ea844e7aa94d24c45b89fe6ef..2f8b9624aa5cd1b32c6512405da6de8fb6555236 100644 (file)
@@ -2,7 +2,6 @@ SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-am33lin"
 TEXT_START_ADDR=0x8000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x8000000
 ARCH=mn10300
 MACHINE=
 NOP=0xcbcb
index d3e43547dd36195dac8ccc357dda0ba5cbb269cb..52fa2950a75b38fb66ff4c20ffa5242035c540ef 100644 (file)
@@ -4,7 +4,6 @@
 EMBEDDED=yes
 . ${srcdir}/emulparams/elf32bmip.sh
 TEXT_START_ADDR=0xa0020000
-unset NONPAGED_TEXT_START_ADDR
 unset SHLIB_TEXT_START_ADDR
 EXECUTABLE_SYMBOLS='_DYNAMIC_LINK = 0;'
 DYNAMIC_LINK=FALSE
index ce33674cf93c84920c4ee48b6fc12b7bf731b193..bcb850900124c78d6e388447d52206685f824727 100644 (file)
@@ -10,7 +10,6 @@ TEXT_START_ADDR=0x0400000
 test -n "${EMBEDDED}" || DATA_ADDR=0x10000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x0400000
 SHLIB_TEXT_START_ADDR=0x5ffe0000
 TEXT_DYNAMIC=
 INITIAL_READONLY_SECTIONS=
index 6d9f2d6a992c2e5af32776ef3bfd64f95a82d73f..31d65dc88389d93350f4ec0da245fcd3dfc2fc1d 100644 (file)
@@ -6,7 +6,6 @@ PAGE_SIZE=0x1000
 TARGET_PAGE_SIZE=0x400
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 TEXT_START_ADDR=0
-NONPAGED_TEXT_START_ADDR=0
 ARCH=mcore
 EMBEDDED=yes
 
index 42e846f22e2bf6068d05fabe566cfd385dc1d5d2..4c6ef3971735000dea828e2ff9679722782a3aa3 100644 (file)
@@ -1,8 +1,10 @@
 SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-vax"
 TEXT_START_ADDR=0x10000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x1000
 ARCH=vax
 MACHINE=
 NOP=0x0101
index 185da49dfbbc2e87cee5031c3ec7957bda305224..c5c522ad9f29dfe808f4f0e09792dc3b67be6ff7 100644 (file)
@@ -5,7 +5,6 @@ OUTPUT_FORMAT=undefined
 BIG_OUTPUT_FORMAT="elf32-xtensa-be"
 LITTLE_OUTPUT_FORMAT="elf32-xtensa-le"
 TEXT_START_ADDR=0x400000
-NONPAGED_TEXT_START_ADDR=0x400000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=xtensa
 MACHINE=
index a26bbb63e0deabafd1261bcdc31557d176689c7e..ede836ccf2c9fda2233f3a1824dca8ff7e412359 100644 (file)
@@ -4,7 +4,6 @@ OUTPUT_FORMAT="elf64-s390"
 TEXT_START_ADDR=0x80000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x80000000
 ARCH="s390:64-bit"
 MACHINE=
 NOP=0x07070707
index cef4bff96e1b0d600dfb43d2b9a9cab51eebaa89..03cab9efd324a15e5887b78f38d4086e4967b5bc 100644 (file)
@@ -15,11 +15,9 @@ NO_SMALL_DATA=yes
 case "$target" in
   sparc*-solaris*)
     TEXT_START_ADDR=0x100000000
-    NONPAGED_TEXT_START_ADDR=0x100000000
     ;;
   *)
     TEXT_START_ADDR=0x100000
-    NONPAGED_TEXT_START_ADDR=0x100000
     ;;
 esac
 
index 2c3b7d4dd2b6fc96f8857400d0fc3c34caf057bc..a42e75d0358c28322948720cae11be1204bd2f27 100644 (file)
@@ -7,7 +7,6 @@ OUTPUT_FORMAT="elf64-alpha"
 TEXT_START_ADDR="0x120000000"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-NONPAGED_TEXT_START_ADDR="0x120000000"
 ARCH=alpha
 MACHINE=
 GENERATE_SHLIB_SCRIPT=yes
index bdeaebb30849474e87e59c2d25cc56aaa95c033a..908515a7adbf2cdd58192bac5204f989fce23b2f 100644 (file)
@@ -3,7 +3,6 @@ OUTPUT_FORMAT="elf32-i386"
 TEXT_START_ADDR=0x08048000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x08048000
 ARCH=i386
 MACHINE=
 NOP=0x90909090
index 460707fc484a90aeb5d79d62edea84469c107ca3..b61738c4a0c9faac63c08f2c04c2478d12b7a7fd 100644 (file)
@@ -1,8 +1,6 @@
 SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-i386"
 TEXT_START_ADDR=0x80000000
-#SHLIB_TEXT_START_ADDR=0x80000000
-NONPAGED_TEXT_START_ADDR=0x80000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=i386
 MACHINE=
index a652913f86e5a378ae84965d2efbfc8b2533ba4a..1322174a165731d0f100d5096920527776d8d5da 100644 (file)
@@ -2,7 +2,6 @@ SCRIPT_NAME=elf_chaos
 OUTPUT_FORMAT="elf32-i386"
 TEXT_START_ADDR=0x40000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x40000000
 ARCH=i386
 MACHINE=
 NOP=0x90909090
index d62184fc9c2927957c79947944e1f6da780a2528..b4ac9603a4fc80b79bc6efc461fcc522ef11127c 100644 (file)
@@ -2,7 +2,6 @@ SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-i386"
 TEXT_START_ADDR=0x08048000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x08048000
 ARCH=i386
 MACHINE=
 NOP=0x90909090
index cb36283da4f6c923a885e206bf4ec77af59d7aa6..90a98b3dcf34a96b5d3db7a8f7740b87d20ef682 100644 (file)
@@ -3,7 +3,6 @@ OUTPUT_FORMAT="elf32-i386-vxworks"
 TEXT_START_ADDR=0x08048000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x08048000
 ARCH=i386
 MACHINE=
 NOP=0x90909090
index d958504a8345feb6322d1b36de6b21e2ce34bede..e252e8e09f63a24fa90980b5582eb204a2694f7c 100644 (file)
@@ -3,7 +3,6 @@ OUTPUT_FORMAT="elf32-s390"
 TEXT_START_ADDR=0x00400000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x00400000
 ARCH="s390:31-bit"
 MACHINE=
 NOP=0x07070707
index 449ccc90bd8d0f24ad53be99daa53b58210eb506..cdd41195ca77f68d598abbda99482473a3325f81 100644 (file)
@@ -4,7 +4,6 @@ OUTPUT_FORMAT="elf64-x86-64"
 TEXT_START_ADDR=0x400000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x400000
 ARCH="i386:x86-64"
 MACHINE=
 NOP=0x90909090
index dc9e5546145a1948ee0a90911182c4adf303fd7f..d682e7cba874333eb5647f0e1070810e950c7eb8 100644 (file)
@@ -2,5 +2,7 @@ SCRIPT_NAME=aout
 OUTPUT_FORMAT="a.out-i386"
 TARGET_PAGE_SIZE=0x1000
 TEXT_START_ADDR=0
-NONPAGED_TEXT_START_ADDR=0x1000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
 ARCH=i386
index e0c0e2fab6cc67752bdcfe513d83b849caa3af5b..23ab852a4d7c61a0093e230ce8edffafc911978c 100644 (file)
@@ -2,5 +2,7 @@ SCRIPT_NAME=aout
 OUTPUT_FORMAT="a.out-i386-bsd"
 TARGET_PAGE_SIZE=0x1000
 TEXT_START_ADDR=0
-NONPAGED_TEXT_START_ADDR=0x1000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
 ARCH=i386
index 0ef16c4d37cc3b095c90df885e7b155f5f31dfbc..104209fcec77be58f113b74f50115907bfd587df 100644 (file)
@@ -2,7 +2,9 @@ SCRIPT_NAME=i386go32
 OUTPUT_FORMAT="coff-go32"
 TEXT_START_ADDR=0x10a8
 TARGET_PAGE_SIZE=0x1000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0 ;;
+esac
 SEGMENT_SIZE=0x200
-NONPAGED_TEXT_START_ADDR=0x0
 ARCH=i386
 
index a416422d92f0f1cdf7d11e10b89f1f4cd97dcf78..7b7463a11281dc041c79aaca7ee3b66aa35c906e 100644 (file)
@@ -2,6 +2,8 @@ SCRIPT_NAME=aout
 OUTPUT_FORMAT="a.out-i386-linux"
 TARGET_PAGE_SIZE=0x1000
 TEXT_START_ADDR=0x1020
-NONPAGED_TEXT_START_ADDR=0
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0 ;;
+esac
 ARCH=i386
 TEMPLATE_NAME=linux
index 18e0860c0f518b93ddd30026f5d45e0f133d8d04..6d9d9fe11d66ff04b8c4548c91d946ed1e16350f 100644 (file)
@@ -4,8 +4,10 @@ ENTRY=_main
 TEXT_BASE=0x0
 DYN_TEXT_BASE=0x00400000
 TEXT_START_ADDR="(DEFINED(_DYNAMIC) ? ${DYN_TEXT_BASE} : ${TEXT_BASE})"
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x1000
 ARCH=i386
 MACHINE=
 NOP=0x9090
index b7cb2764f5940c4b758acb98def55e4b990b8b8e..dc446021e2c61a1cd85a236f51c492f2869ec25d 100644 (file)
@@ -1,7 +1,9 @@
 SCRIPT_NAME=aout
 OUTPUT_FORMAT="a.out-mach3"
 TEXT_START_ADDR=0x10020
-NONPAGED_TEXT_START_ADDR=0x10000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x10000 ;;
+esac
 SEGMENT_SIZE=0x1000
 PAD_TEXT=t
 ARCH=i386
index 659c7f2c9d558e95944012e5376996f467d6bd7c..81161b7b5ae0b345d098ee2d884b0f8790d04986 100644 (file)
@@ -2,7 +2,6 @@ SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-i386"
 TEXT_START_ADDR=0x00002000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x00002000
 ARCH=i386
 MACHINE=
 NOP=0x90909090
index 9311fa1fe5afe1b479bd6d9afc7b9d5e6ad53af3..293bf68f16a6a49fab2cfc65a2b3be433df31f78 100644 (file)
@@ -1,7 +1,6 @@
 SCRIPT_NAME=i386msdos
 OUTPUT_FORMAT="msdos"
 TEXT_START_ADDR=0x0
-NONPAGED_TEXT_START_ADDR=0x0
 SEGMENT_SIZE=0x10
 PAD_TEXT=t
 ARCH=i386
index 256d4c8d14183430270192eb7212401c5ee86dbf..078289c384b8dd686609d02beeba194d7ad2200a 100644 (file)
@@ -3,8 +3,6 @@ OUTPUT_FORMAT="elf32-i386"
 TEXT_START_ADDR=0x08048000
 TEXT_START_SYMBOLS='_btext = .;'
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x08048000
-#SHLIB_TEXT_START_ADDR=0xb0300000
 ARCH=i386
 MACHINE=
 NOP=0x9090
index dd5558cf0008770d11171d772006a439d79f78c3..e1897bef95778ca7a83a64971b56ad4375ef598a 100644 (file)
@@ -2,7 +2,6 @@ SCRIPT_NAME=nw
 OUTPUT_FORMAT="elf32-i386"
 TEXT_START_ADDR=0x08000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x08000000
 ARCH=i386
 NOP=0x90909090
 TEMPLATE_NAME=elf32
index 1bc24c0e9b9cb981a2664f8d73d0ae4112dc42cb..d160264a1324095ec280fde29e56f47fdab79c18 100644 (file)
@@ -1,6 +1,8 @@
 SCRIPT_NAME=aout
 TEXT_START_ADDR=0x1020
-NONPAGED_TEXT_START_ADDR=0x1000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
 OUTPUT_FORMAT="a.out-m68k4k-netbsd"
 TARGET_PAGE_SIZE=0x1000
 ARCH=m68k
index 9bfaaf719a31cbf1f41a9abcf20bf36166695167..09e6c72b4bdf685d0e7b111fda4c75274a5a4336 100644 (file)
@@ -3,5 +3,4 @@ OUTPUT_FORMAT="a.out-zero-big"
 TEXT_START_ADDR=0x2020
 TARGET_PAGE_SIZE=0x2000
 SEGMENT_SIZE=0x20000
-NONPAGED_TEXT_START_ADDR=0x2000
 ARCH=m68k
index 4771f6b50fafa8f0ce423a44dd4c80a45c623b76..3cda61fc05ed7da4defab1d92f899d2cdcddff0b 100644 (file)
@@ -2,7 +2,6 @@ SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-m68k"
 TEXT_START_ADDR=0x80000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=${TEXT_START_ADDR}
 ARCH=m68k
 MACHINE=
 NOP=0x4e754e75
index 56c3dad9bfca8cfd6ba20e0face0d12afd02ceb4..924fdbee56d4eca5185aa3bd30316acfc1b740d0 100644 (file)
@@ -2,6 +2,8 @@ SCRIPT_NAME=aout
 OUTPUT_FORMAT="a.out-m68k-linux"
 TARGET_PAGE_SIZE=0x1000
 TEXT_START_ADDR=0x1020
-NONPAGED_TEXT_START_ADDR=0
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0 ;;
+esac
 ARCH=m68k
 TEMPLATE_NAME=linux
index a742807ddd946129bc7e041961fa513906e0a875..fcda407f47ccc8e18283d5fc269232c18a1ebb3f 100644 (file)
@@ -1,6 +1,8 @@
 SCRIPT_NAME=aout
 TEXT_START_ADDR=0x2020
-NONPAGED_TEXT_START_ADDR=0x2000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x2000 ;;
+esac
 OUTPUT_FORMAT="a.out-m68k-netbsd"
 TARGET_PAGE_SIZE=0x2000
 ARCH=m68k
index 2ded301471f9a96a39f892914889afc1fa366c7d..12e4b09a01f66d2024eeebd449ccd0ceb367efa1 100644 (file)
@@ -1,8 +1,10 @@
 SCRIPT_NAME=aout
 TEXT_START_ADDR=0x1020
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
 OUTPUT_FORMAT="a.out-ns32k-netbsd"
 TARGET_PAGE_SIZE=0x1000
 ARCH=ns32k
 EXECUTABLE_SYMBOLS='__DYNAMIC = 0;'
-NONPAGED_TEXT_START_ADDR=0x1000
 EXTRA_EM_FILE=netbsd
index 9c1d0791c8d35ad29e0aa3222b8c72550c45d774..2b70618d112f1ed71479aed5fb31f90f42abdd7f 100644 (file)
@@ -2,5 +2,7 @@ SCRIPT_NAME=aout
 OUTPUT_FORMAT="a.out-pc532-mach"
 TARGET_PAGE_SIZE=0x1000
 TEXT_START_ADDR="0x10020"
-NONPAGED_TEXT_START_ADDR=0x10000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x10000 ;;
+esac
 ARCH=ns32k
index 5c5769ea79656d34599902e38f03cd7fb3268c09..42039082a2c1cb397cec48dcc4034f03dce42f86 100644 (file)
@@ -4,7 +4,9 @@ TEXT_BASE=0x00002000
 DYN_TEXT_BASE=0x00400000
 TEXT_START_ADDR="(DEFINED(_DYNAMIC) ? ${DYN_TEXT_BASE} : ${TEXT_BASE})"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x1000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
 ARCH=powerpc
 MACHINE=
 TEMPLATE_NAME=elf32
index 14b2745caad02f0eab30b24c132d6614546d0a3d..e7d197d5cc1f73eb26e32b9e8c506d4d928deefc 100644 (file)
@@ -3,5 +3,4 @@ OUTPUT_FORMAT="elf32-powerpc"
 TEXT_START_ADDR=0x0400000
 DATA_ADDR=0x10000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-NONPAGED_TEXT_START_ADDR=0x0400000
 ARCH=powerpc
index e138de2b30e46db18cc399b4194503277cba1f5b..0ca5e56a1f8d41995440344a428e9602cde2531d 100644 (file)
@@ -7,8 +7,10 @@ LITTLE_OUTPUT_FORMAT="elf32-littlescore"
 GROUP="-lm -lc -lglsim -lgcc -lstdc++"
 
 TEXT_START_ADDR=0x00000000
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x0400000 ;;
+esac
 MAXPAGESIZE=256
-NONPAGED_TEXT_START_ADDR=0x0400000
 SHLIB_TEXT_START_ADDR=0x5ffe0000
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x3ff0;
index 429b925c18c61c3039ebc6fdc0d937969c3c1a38..e109064646587c757ace2668159715caf31eb068 100644 (file)
@@ -3,6 +3,8 @@ OUTPUT_FORMAT="a.out-sunos-big"
 BIG_OUTPUT_FORMAT="a.out-sunos-big"
 LITTLE_OUTPUT_FORMAT="a.out-sparc-little"
 TEXT_START_ADDR=0x2020
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x2000 ;;
+esac
 TARGET_PAGE_SIZE=0x2000
-NONPAGED_TEXT_START_ADDR=0x2000
 ARCH=sparc
index 7ccb0bec90c7c3318714989615314b0d809bcc9f..e2164bcc9e2828ede160b4f3387234ba8f23ef6a 100644 (file)
@@ -2,6 +2,8 @@ SCRIPT_NAME=aout
 OUTPUT_FORMAT="a.out-sparc-linux"
 TARGET_PAGE_SIZE=0x1000
 TEXT_START_ADDR=0x1020
-NONPAGED_TEXT_START_ADDR=0
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0 ;;
+esac
 ARCH=sparc
 TEMPLATE_NAME=linux
index db0f71f3abddda0dd6d5dc5d379032c0faa68583..64c0c466664c067f87fcaec9e238b06d5d6b4989 100644 (file)
@@ -1,8 +1,10 @@
 SCRIPT_NAME=aout
 OUTPUT_FORMAT="a.out-sunos-big"
 TEXT_START_ADDR=0x2020
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x2000 ;;
+esac
 TARGET_PAGE_SIZE=0x2000
 SEGMENT_SIZE=0x20000
-NONPAGED_TEXT_START_ADDR=0x2000
 ARCH=m68k
 TEMPLATE_NAME=sunos
index bd42775331b93aa58cf87f8c1ff52305f6259844..6cfbccc2babaa67e10fe4dce1fc1f45503a43889 100644 (file)
@@ -2,7 +2,6 @@ SCRIPT_NAME=aout
 OUTPUT_FORMAT="a.out-sunos-big"
 TEXT_START_ADDR=0x2020
 TARGET_PAGE_SIZE=0x2000
-NONPAGED_TEXT_START_ADDR=0x2000
 ALIGNMENT=8
 ARCH=sparc
 TEMPLATE_NAME=sunos
index 70703231fd5d90d406d53c8b4bc9a6090585b15a..088e9b03478489c890eff6d86b51ecbf91e3b1a0 100644 (file)
@@ -39,12 +39,6 @@ ARCH=tic80
 #
 TEXT_START_ADDR=0x2000000
 
-# If this is defined, the genscripts.sh script sets TEXT_START_ADDR to
-# its value before running the scripttempl script for the -n and -N
-# options.
-#
-# NONPAGED_TEXT_START_ADDR=
-
 # The genscripts.sh script uses this to set the default value of 
 # DATA_ALIGNMENT when running the scripttempl script.
 #
index b16813fdcdf6d064c2e3ee44280abc070cf123be..2d26831f7ca826f724177cc7183eb49af6e2e844 100644 (file)
@@ -4,4 +4,3 @@ OUTPUT_FORMAT="a.out-vax-netbsd"
 TARGET_PAGE_SIZE=0x1000
 ARCH=vax
 EXECUTABLE_SYMBOLS='__DYNAMIC = 0;'
-NONPAGED_TEXT_START_ADDR=0x1000
index cc6249bea4386f571ccbe6caca6c110d83e1de0c..0610f305bb04a5afbe0b285fbbb1966833ab559c 100644 (file)
@@ -3,6 +3,8 @@ OUTPUT_FORMAT="a.out-i386"
 TEXT_START_ADDR=0x1020
 TARGET_PAGE_SIZE=0x1000
 SEGMENT_SIZE=0x400000
-NONPAGED_TEXT_START_ADDR=0x0
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0 ;;
+esac
 ARCH=i386
 
index 17c516c479000049595ca0fdc55b366272eaa813..d78ffce3c2360fb596a864c2986267e7a3e9baa0 100755 (executable)
@@ -289,7 +289,6 @@ RELOCATING=" "
 
 LD_FLAG=n
 DATA_ALIGNMENT=${DATA_ALIGNMENT_n}
-TEXT_START_ADDR=${NONPAGED_TEXT_START_ADDR-${TEXT_START_ADDR}}
 ( echo "/* Script for -n: mix text and data on same page */"
   . ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
   . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
@@ -327,7 +326,6 @@ if test -n "$GENERATE_SHLIB_SCRIPT"; then
   LD_FLAG=shared
   DATA_ALIGNMENT=${DATA_ALIGNMENT_s-${DATA_ALIGNMENT_}}
   CREATE_SHLIB=" "
-  # Note that TEXT_START_ADDR is set to NONPAGED_TEXT_START_ADDR.
   (
     echo "/* Script for ld --shared: link shared library */"
     . ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
@@ -360,7 +358,6 @@ if test -n "$GENERATE_PIE_SCRIPT"; then
   LD_FLAG=pie
   DATA_ALIGNMENT=${DATA_ALIGNMENT_s-${DATA_ALIGNMENT_}}
   CREATE_PIE=" "
-  # Note that TEXT_START_ADDR is set to NONPAGED_TEXT_START_ADDR.
   (
     echo "/* Script for ld -pie: link position independent executable */"
     . ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
index 85d736b088ca52f06ec64ccc143471d94950330d..81a5adab7ff73d74eb327c8167d5cbbf7eb844bc 100644 (file)
@@ -214,12 +214,6 @@ Some @file{scripttempl} scripts use this to set the entry address, in an
 Some @file{scripttempl} scripts use this to set the start address of the
 @samp{.text} section.
 
-@item NONPAGED_TEXT_START_ADDR
-If this is defined, the @file{genscripts.sh} script sets
-@code{TEXT_START_ADDR} to its value before running the
-@file{scripttempl} script for the @code{-n} and @code{-N} options
-(@pxref{linker scripts}).
-
 @item SEGMENT_SIZE
 The @file{genscripts.sh} script uses this to set the default value of
 @code{DATA_ALIGNMENT} when running the @file{scripttempl} script.