diff options
author | Alan Modra <amodra@gmail.com> | 2007-08-09 11:02:24 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-08-09 11:02:24 +0000 |
commit | 88bba78dc42680f0a6634a6784f6f188b2af2849 (patch) | |
tree | 2d75081e0cb2aa212d78b6ed2268d68611eb9ad8 /ld | |
parent | bd6075bf49c37aa1dcb665472ed184172ce28969 (diff) | |
download | binutils-88bba78dc42680f0a6634a6784f6f188b2af2849.zip binutils-88bba78dc42680f0a6634a6784f6f188b2af2849.tar.gz binutils-88bba78dc42680f0a6634a6784f6f188b2af2849.tar.bz2 |
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
Diffstat (limited to 'ld')
54 files changed, 119 insertions, 69 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index be87b55..11de68a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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*. diff --git a/ld/emulparams/arcelf.sh b/ld/emulparams/arcelf.sh index 6c524c9..31db4a9 100644 --- a/ld/emulparams/arcelf.sh +++ b/ld/emulparams/arcelf.sh @@ -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 diff --git a/ld/emulparams/armaoutb.sh b/ld/emulparams/armaoutb.sh index 59ab6f1..efef2c3 100644 --- a/ld/emulparams/armaoutb.sh +++ b/ld/emulparams/armaoutb.sh @@ -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 diff --git a/ld/emulparams/armaoutl.sh b/ld/emulparams/armaoutl.sh index 9501f33..5eccc4c 100644 --- a/ld/emulparams/armaoutl.sh +++ b/ld/emulparams/armaoutl.sh @@ -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 diff --git a/ld/emulparams/armnbsd.sh b/ld/emulparams/armnbsd.sh index fc27791..dd4768d 100644 --- a/ld/emulparams/armnbsd.sh +++ b/ld/emulparams/armnbsd.sh @@ -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 diff --git a/ld/emulparams/bfin.sh b/ld/emulparams/bfin.sh index 73e2b94..1c764e8 100755 --- a/ld/emulparams/bfin.sh +++ b/ld/emulparams/bfin.sh @@ -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 diff --git a/ld/emulparams/coff_sparc.sh b/ld/emulparams/coff_sparc.sh index 0cf852a..d66cf61 100644 --- a/ld/emulparams/coff_sparc.sh +++ b/ld/emulparams/coff_sparc.sh @@ -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 diff --git a/ld/emulparams/crisaout.sh b/ld/emulparams/crisaout.sh index bb9135a..625e90f 100644 --- a/ld/emulparams/crisaout.sh +++ b/ld/emulparams/crisaout.sh @@ -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 diff --git a/ld/emulparams/elf32_sparc.sh b/ld/emulparams/elf32_sparc.sh index d09d9dc..3db6d88 100644 --- a/ld/emulparams/elf32_sparc.sh +++ b/ld/emulparams/elf32_sparc.sh @@ -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= diff --git a/ld/emulparams/elf32am33lin.sh b/ld/emulparams/elf32am33lin.sh index 31dbc70..2f8b962 100644 --- a/ld/emulparams/elf32am33lin.sh +++ b/ld/emulparams/elf32am33lin.sh @@ -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 diff --git a/ld/emulparams/elf32b4300.sh b/ld/emulparams/elf32b4300.sh index d3e4354..52fa295 100644 --- a/ld/emulparams/elf32b4300.sh +++ b/ld/emulparams/elf32b4300.sh @@ -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 diff --git a/ld/emulparams/elf32bmip.sh b/ld/emulparams/elf32bmip.sh index ce33674..bcb8509 100644 --- a/ld/emulparams/elf32bmip.sh +++ b/ld/emulparams/elf32bmip.sh @@ -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= diff --git a/ld/emulparams/elf32mcore.sh b/ld/emulparams/elf32mcore.sh index 6d9f2d6..31d65dc 100644 --- a/ld/emulparams/elf32mcore.sh +++ b/ld/emulparams/elf32mcore.sh @@ -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 diff --git a/ld/emulparams/elf32vax.sh b/ld/emulparams/elf32vax.sh index 42e846f..4c6ef39 100644 --- a/ld/emulparams/elf32vax.sh +++ b/ld/emulparams/elf32vax.sh @@ -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 diff --git a/ld/emulparams/elf32xtensa.sh b/ld/emulparams/elf32xtensa.sh index 185da49..c5c522a 100644 --- a/ld/emulparams/elf32xtensa.sh +++ b/ld/emulparams/elf32xtensa.sh @@ -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= diff --git a/ld/emulparams/elf64_s390.sh b/ld/emulparams/elf64_s390.sh index a26bbb6..ede836c 100644 --- a/ld/emulparams/elf64_s390.sh +++ b/ld/emulparams/elf64_s390.sh @@ -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 diff --git a/ld/emulparams/elf64_sparc.sh b/ld/emulparams/elf64_sparc.sh index cef4bff..03cab9e 100644 --- a/ld/emulparams/elf64_sparc.sh +++ b/ld/emulparams/elf64_sparc.sh @@ -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 diff --git a/ld/emulparams/elf64alpha.sh b/ld/emulparams/elf64alpha.sh index 2c3b7d4..a42e75d 100644 --- a/ld/emulparams/elf64alpha.sh +++ b/ld/emulparams/elf64alpha.sh @@ -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 diff --git a/ld/emulparams/elf_i386.sh b/ld/emulparams/elf_i386.sh index bdeaebb..908515a 100644 --- a/ld/emulparams/elf_i386.sh +++ b/ld/emulparams/elf_i386.sh @@ -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 diff --git a/ld/emulparams/elf_i386_be.sh b/ld/emulparams/elf_i386_be.sh index 460707f..b61738c 100644 --- a/ld/emulparams/elf_i386_be.sh +++ b/ld/emulparams/elf_i386_be.sh @@ -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= diff --git a/ld/emulparams/elf_i386_chaos.sh b/ld/emulparams/elf_i386_chaos.sh index a652913..1322174 100644 --- a/ld/emulparams/elf_i386_chaos.sh +++ b/ld/emulparams/elf_i386_chaos.sh @@ -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 diff --git a/ld/emulparams/elf_i386_ldso.sh b/ld/emulparams/elf_i386_ldso.sh index d62184f..b4ac960 100644 --- a/ld/emulparams/elf_i386_ldso.sh +++ b/ld/emulparams/elf_i386_ldso.sh @@ -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 diff --git a/ld/emulparams/elf_i386_vxworks.sh b/ld/emulparams/elf_i386_vxworks.sh index cb36283..90a98b3 100644 --- a/ld/emulparams/elf_i386_vxworks.sh +++ b/ld/emulparams/elf_i386_vxworks.sh @@ -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 diff --git a/ld/emulparams/elf_s390.sh b/ld/emulparams/elf_s390.sh index d958504..e252e8e 100644 --- a/ld/emulparams/elf_s390.sh +++ b/ld/emulparams/elf_s390.sh @@ -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 diff --git a/ld/emulparams/elf_x86_64.sh b/ld/emulparams/elf_x86_64.sh index 449ccc9..cdd4119 100644 --- a/ld/emulparams/elf_x86_64.sh +++ b/ld/emulparams/elf_x86_64.sh @@ -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 diff --git a/ld/emulparams/i386aout.sh b/ld/emulparams/i386aout.sh index dc9e554..d682e7c 100644 --- a/ld/emulparams/i386aout.sh +++ b/ld/emulparams/i386aout.sh @@ -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 diff --git a/ld/emulparams/i386bsd.sh b/ld/emulparams/i386bsd.sh index e0c0e2f..23ab852 100644 --- a/ld/emulparams/i386bsd.sh +++ b/ld/emulparams/i386bsd.sh @@ -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 diff --git a/ld/emulparams/i386go32.sh b/ld/emulparams/i386go32.sh index 0ef16c4..104209f 100644 --- a/ld/emulparams/i386go32.sh +++ b/ld/emulparams/i386go32.sh @@ -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 diff --git a/ld/emulparams/i386linux.sh b/ld/emulparams/i386linux.sh index a416422..7b7463a 100644 --- a/ld/emulparams/i386linux.sh +++ b/ld/emulparams/i386linux.sh @@ -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 diff --git a/ld/emulparams/i386lynx.sh b/ld/emulparams/i386lynx.sh index 18e0860..6d9d9fe 100644 --- a/ld/emulparams/i386lynx.sh +++ b/ld/emulparams/i386lynx.sh @@ -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 diff --git a/ld/emulparams/i386mach.sh b/ld/emulparams/i386mach.sh index b7cb276..dc44602 100644 --- a/ld/emulparams/i386mach.sh +++ b/ld/emulparams/i386mach.sh @@ -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 diff --git a/ld/emulparams/i386moss.sh b/ld/emulparams/i386moss.sh index 659c7f2..81161b7 100644 --- a/ld/emulparams/i386moss.sh +++ b/ld/emulparams/i386moss.sh @@ -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 diff --git a/ld/emulparams/i386msdos.sh b/ld/emulparams/i386msdos.sh index 9311fa1..293bf68 100644 --- a/ld/emulparams/i386msdos.sh +++ b/ld/emulparams/i386msdos.sh @@ -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 diff --git a/ld/emulparams/i386nto.sh b/ld/emulparams/i386nto.sh index 256d4c8..078289c 100644 --- a/ld/emulparams/i386nto.sh +++ b/ld/emulparams/i386nto.sh @@ -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 diff --git a/ld/emulparams/i386nw.sh b/ld/emulparams/i386nw.sh index dd5558c..e1897be 100644 --- a/ld/emulparams/i386nw.sh +++ b/ld/emulparams/i386nw.sh @@ -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 diff --git a/ld/emulparams/m68k4knbsd.sh b/ld/emulparams/m68k4knbsd.sh index 1bc24c0e..d160264 100644 --- a/ld/emulparams/m68k4knbsd.sh +++ b/ld/emulparams/m68k4knbsd.sh @@ -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 diff --git a/ld/emulparams/m68kaout.sh b/ld/emulparams/m68kaout.sh index 9bfaaf7..09e6c72 100644 --- a/ld/emulparams/m68kaout.sh +++ b/ld/emulparams/m68kaout.sh @@ -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 diff --git a/ld/emulparams/m68kelf.sh b/ld/emulparams/m68kelf.sh index 4771f6b..3cda61f 100644 --- a/ld/emulparams/m68kelf.sh +++ b/ld/emulparams/m68kelf.sh @@ -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 diff --git a/ld/emulparams/m68klinux.sh b/ld/emulparams/m68klinux.sh index 56c3dad..924fdbe 100644 --- a/ld/emulparams/m68klinux.sh +++ b/ld/emulparams/m68klinux.sh @@ -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 diff --git a/ld/emulparams/m68knbsd.sh b/ld/emulparams/m68knbsd.sh index a742807..fcda407 100644 --- a/ld/emulparams/m68knbsd.sh +++ b/ld/emulparams/m68knbsd.sh @@ -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 diff --git a/ld/emulparams/ns32knbsd.sh b/ld/emulparams/ns32knbsd.sh index 2ded301..12e4b09 100644 --- a/ld/emulparams/ns32knbsd.sh +++ b/ld/emulparams/ns32knbsd.sh @@ -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 diff --git a/ld/emulparams/pc532macha.sh b/ld/emulparams/pc532macha.sh index 9c1d079..2b70618 100644 --- a/ld/emulparams/pc532macha.sh +++ b/ld/emulparams/pc532macha.sh @@ -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 diff --git a/ld/emulparams/ppclynx.sh b/ld/emulparams/ppclynx.sh index 5c5769e..4203908 100644 --- a/ld/emulparams/ppclynx.sh +++ b/ld/emulparams/ppclynx.sh @@ -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 diff --git a/ld/emulparams/ppcnw.sh b/ld/emulparams/ppcnw.sh index 14b2745..e7d197d 100644 --- a/ld/emulparams/ppcnw.sh +++ b/ld/emulparams/ppcnw.sh @@ -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 diff --git a/ld/emulparams/scoreelf.sh b/ld/emulparams/scoreelf.sh index e138de2..0ca5e56 100644 --- a/ld/emulparams/scoreelf.sh +++ b/ld/emulparams/scoreelf.sh @@ -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; diff --git a/ld/emulparams/sparcaout.sh b/ld/emulparams/sparcaout.sh index 429b925..e109064 100644 --- a/ld/emulparams/sparcaout.sh +++ b/ld/emulparams/sparcaout.sh @@ -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 diff --git a/ld/emulparams/sparclinux.sh b/ld/emulparams/sparclinux.sh index 7ccb0bec..e2164bc 100644 --- a/ld/emulparams/sparclinux.sh +++ b/ld/emulparams/sparclinux.sh @@ -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 diff --git a/ld/emulparams/sun3.sh b/ld/emulparams/sun3.sh index db0f71f..64c0c46 100644 --- a/ld/emulparams/sun3.sh +++ b/ld/emulparams/sun3.sh @@ -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 diff --git a/ld/emulparams/sun4.sh b/ld/emulparams/sun4.sh index bd42775..6cfbccc 100644 --- a/ld/emulparams/sun4.sh +++ b/ld/emulparams/sun4.sh @@ -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 diff --git a/ld/emulparams/tic80coff.sh b/ld/emulparams/tic80coff.sh index 7070323..088e9b0 100644 --- a/ld/emulparams/tic80coff.sh +++ b/ld/emulparams/tic80coff.sh @@ -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. # diff --git a/ld/emulparams/vaxnbsd.sh b/ld/emulparams/vaxnbsd.sh index b16813f..2d26831 100644 --- a/ld/emulparams/vaxnbsd.sh +++ b/ld/emulparams/vaxnbsd.sh @@ -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 diff --git a/ld/emulparams/vsta.sh b/ld/emulparams/vsta.sh index cc6249b..0610f30 100644 --- a/ld/emulparams/vsta.sh +++ b/ld/emulparams/vsta.sh @@ -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 diff --git a/ld/genscripts.sh b/ld/genscripts.sh index 17c516c..d78ffce 100755 --- a/ld/genscripts.sh +++ b/ld/genscripts.sh @@ -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} diff --git a/ld/ldint.texinfo b/ld/ldint.texinfo index 85d736b..81a5ada 100644 --- a/ld/ldint.texinfo +++ b/ld/ldint.texinfo @@ -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. |