summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ld/emulparams
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-06-10 10:55:58 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-06-10 10:55:58 +0000
commita7e831079363e3bb45f3172f6e59ba48e335682b (patch)
treeee4324eac9a9d66f189fab60498ec42b8226b7fc /gnu/usr.bin/binutils/ld/emulparams
parent467cb0a471d13c5186a6ee166e60b47c30da64e9 (diff)
Bring Cygnus versions into the trunk, keeping our local patches
Diffstat (limited to 'gnu/usr.bin/binutils/ld/emulparams')
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf32b4300.sh5
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf32bmip.sh10
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf32l4300.sh5
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf32lmip.sh10
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf32lppc.sh4
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf32ppc.sh4
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf64_sparc.sh2
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf_i386.sh4
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/mipsidt.sh1
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/mipsidtl.sh1
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/z8002.sh2
11 files changed, 26 insertions, 22 deletions
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf32b4300.sh b/gnu/usr.bin/binutils/ld/emulparams/elf32b4300.sh
index b8755889d1f..3ccdad39d04 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/elf32b4300.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf32b4300.sh
@@ -1,8 +1,8 @@
-SCRIPT_NAME=elf
+SCRIPT_NAME=elfmips
OUTPUT_FORMAT="elf32-bigmips"
BIG_OUTPUT_FORMAT="elf32-bigmips"
LITTLE_OUTPUT_FORMAT="elf32-littlemips"
-TEXT_START_ADDR=0xa001af20
+TEXT_START_ADDR=0xa0020000
DATA_ADDR=.
MAXPAGESIZE=0x40000
OTHER_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
@@ -20,6 +20,7 @@ OTHER_SECTIONS='
.gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
'
ARCH=mips
+MACHINE=4000
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
DYNAMIC_LINK=false
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf32bmip.sh b/gnu/usr.bin/binutils/ld/emulparams/elf32bmip.sh
index 470497d8fc6..3bc284e6d0c 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/elf32bmip.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf32bmip.sh
@@ -1,4 +1,4 @@
-SCRIPT_NAME=elf
+SCRIPT_NAME=elfmips
OUTPUT_FORMAT="elf32-bigmips"
BIG_OUTPUT_FORMAT="elf32-bigmips"
LITTLE_OUTPUT_FORMAT="elf32-littlemips"
@@ -6,16 +6,18 @@ TEXT_START_ADDR=0x0400000
DATA_ADDR=0x10000000
MAXPAGESIZE=0x40000
NONPAGED_TEXT_START_ADDR=0x0400000
+SHLIB_TEXT_START_ADDR=0x5ffe0000
OTHER_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
+OTHER_GOT_SYMBOLS='
+ _gp = ALIGN(16) + 0x7ff0;
+'
OTHER_READWRITE_SECTIONS='
- _gp = . + 0x8000;
.lit8 : { *(.lit8) }
.lit4 : { *(.lit4) }
'
TEXT_START_SYMBOLS='_ftext = . ;'
DATA_START_SYMBOLS='_fdata = . ;'
OTHER_BSS_SYMBOLS='_fbss = .;'
-EXECUTABLE_SYMBOLS='_DYNAMIC_LINK = 0;'
OTHER_SECTIONS='
.gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
.gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
@@ -23,4 +25,4 @@ OTHER_SECTIONS='
ARCH=mips
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
-DYNAMIC_LINK=false
+EMBEDDED=yes
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf32l4300.sh b/gnu/usr.bin/binutils/ld/emulparams/elf32l4300.sh
index aeac8a88efb..f3cd085a577 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/elf32l4300.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf32l4300.sh
@@ -1,8 +1,8 @@
-SCRIPT_NAME=elf
+SCRIPT_NAME=elfmips
OUTPUT_FORMAT="elf32-littlemips"
BIG_OUTPUT_FORMAT="elf32-bigmips"
LITTLE_OUTPUT_FORMAT="elf32-littlemips"
-TEXT_START_ADDR=0xa001af20
+TEXT_START_ADDR=0xa0020000
DATA_ADDR=.
MAXPAGESIZE=0x40000
OTHER_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
@@ -20,6 +20,7 @@ OTHER_SECTIONS='
.gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
'
ARCH=mips
+MACHINE=4000
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
DYNAMIC_LINK=false
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf32lmip.sh b/gnu/usr.bin/binutils/ld/emulparams/elf32lmip.sh
index bb91f350cce..c892dc17cbb 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/elf32lmip.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf32lmip.sh
@@ -1,4 +1,4 @@
-SCRIPT_NAME=elf
+SCRIPT_NAME=elfmips
OUTPUT_FORMAT="elf32-littlemips"
BIG_OUTPUT_FORMAT="elf32-bigmips"
LITTLE_OUTPUT_FORMAT="elf32-littlemips"
@@ -6,16 +6,18 @@ TEXT_START_ADDR=0x0400000
DATA_ADDR=0x10000000
MAXPAGESIZE=0x40000
NONPAGED_TEXT_START_ADDR=0x0400000
+SHLIB_TEXT_START_ADDR=0x5ffe0000
OTHER_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
+OTHER_GOT_SYMBOLS='
+ _gp = ALIGN(16) + 0x7ff0;
+'
OTHER_READWRITE_SECTIONS='
- _gp = . + 0x8000;
.lit8 : { *(.lit8) }
.lit4 : { *(.lit4) }
'
TEXT_START_SYMBOLS='_ftext = . ;'
DATA_START_SYMBOLS='_fdata = . ;'
OTHER_BSS_SYMBOLS='_fbss = .;'
-EXECUTABLE_SYMBOLS='_DYNAMIC_LINK = 0;'
OTHER_SECTIONS='
.gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
.gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
@@ -23,4 +25,4 @@ OTHER_SECTIONS='
ARCH=mips
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
-DYNAMIC_LINK=false
+EMBEDDED=yes
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf32lppc.sh b/gnu/usr.bin/binutils/ld/emulparams/elf32lppc.sh
index 50a34af9d5b..65daf8c9eee 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/elf32lppc.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf32lppc.sh
@@ -2,8 +2,6 @@ TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
SCRIPT_NAME=elfppc
OUTPUT_FORMAT="elf32-powerpcle"
-TEXT_START_ADDR=0x0400000
-DATA_ADDR=0x10000000
+TEXT_START_ADDR=0x40000
MAXPAGESIZE=0x40000
-NONPAGED_TEXT_START_ADDR=0x0400000
ARCH=powerpc
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf32ppc.sh b/gnu/usr.bin/binutils/ld/emulparams/elf32ppc.sh
index f2b44849fcb..4c1e7b31949 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/elf32ppc.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf32ppc.sh
@@ -2,8 +2,6 @@ TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
SCRIPT_NAME=elfppc
OUTPUT_FORMAT="elf32-powerpc"
-TEXT_START_ADDR=0x0400000
-DATA_ADDR=0x10000000
+TEXT_START_ADDR=0x40000
MAXPAGESIZE=0x40000
-NONPAGED_TEXT_START_ADDR=0x0400000
ARCH=powerpc
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf64_sparc.sh b/gnu/usr.bin/binutils/ld/emulparams/elf64_sparc.sh
index 668809bdd50..4a9dc0b767a 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/elf64_sparc.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf64_sparc.sh
@@ -3,4 +3,4 @@ OUTPUT_FORMAT="elf64-sparc"
TEXT_START_ADDR=0x100200
MAXPAGESIZE=0x100000
NONPAGED_TEXT_START_ADDR=0x100200
-ARCH=sparc
+ARCH="sparc:v9"
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf_i386.sh b/gnu/usr.bin/binutils/ld/emulparams/elf_i386.sh
index b841d9cd189..b11b7d71886 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/elf_i386.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf_i386.sh
@@ -1,8 +1,8 @@
SCRIPT_NAME=elf
OUTPUT_FORMAT="elf32-i386"
-TEXT_START_ADDR=0x08000000
+TEXT_START_ADDR=0x08048000
MAXPAGESIZE=0x1000
-NONPAGED_TEXT_START_ADDR=0x08000000
+NONPAGED_TEXT_START_ADDR=0x08048000
ARCH=i386
NOP=0x9090
TEMPLATE_NAME=elf32
diff --git a/gnu/usr.bin/binutils/ld/emulparams/mipsidt.sh b/gnu/usr.bin/binutils/ld/emulparams/mipsidt.sh
index cb2d87d3322..63176f5fdea 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/mipsidt.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/mipsidt.sh
@@ -8,3 +8,4 @@ ENTRY=start
TEXT_START_ADDR=0xa0012000
DATA_ADDR=.
TEMPLATE_NAME=mipsecoff
+EMBEDDED=yes
diff --git a/gnu/usr.bin/binutils/ld/emulparams/mipsidtl.sh b/gnu/usr.bin/binutils/ld/emulparams/mipsidtl.sh
index 57e00261df8..02279ded635 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/mipsidtl.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/mipsidtl.sh
@@ -8,3 +8,4 @@ ENTRY=start
TEXT_START_ADDR=0xa0012000
DATA_ADDR=.
TEMPLATE_NAME=mipsecoff
+EMBEDDED=yes
diff --git a/gnu/usr.bin/binutils/ld/emulparams/z8002.sh b/gnu/usr.bin/binutils/ld/emulparams/z8002.sh
index 711b8f38727..299b5f5a45d 100644
--- a/gnu/usr.bin/binutils/ld/emulparams/z8002.sh
+++ b/gnu/usr.bin/binutils/ld/emulparams/z8002.sh
@@ -3,4 +3,4 @@ OUTPUT_FORMAT="coff-z8k"
OUTPUT_ARCH="z8002"
TEXT_START_ADDR=0x0
TARGET_PAGE_SIZE=128
-ARCH=z8k
+ARCH=z8002