diff options
author | Alan Modra <amodra@gmail.com> | 2000-07-28 01:33:14 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-07-28 01:33:14 +0000 |
commit | 41392f033d9a298106d515efbc7e7a572eb7eb3e (patch) | |
tree | 509993164200275e43381857255db0ffcb7e46ee /ld/emulparams | |
parent | 04925e1e0b21992039d1c3923fa47896fac013a6 (diff) | |
download | gdb-41392f033d9a298106d515efbc7e7a572eb7eb3e.zip gdb-41392f033d9a298106d515efbc7e7a572eb7eb3e.tar.gz gdb-41392f033d9a298106d515efbc7e7a572eb7eb3e.tar.bz2 |
Add some shell variables and shell code to elf32.em
to allow elf32.em to be used by ports that require
some minor variations or a few extra functions.
Implement for hppaelf and armelf.
Fix header file include order in m68kcoff.em
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/armelf.sh | 3 | ||||
-rw-r--r-- | ld/emulparams/armelf_linux.sh | 3 | ||||
-rw-r--r-- | ld/emulparams/armelf_linux26.sh | 3 | ||||
-rw-r--r-- | ld/emulparams/hppaelf.sh | 4 | ||||
-rw-r--r-- | ld/emulparams/hppalinux.sh | 3 |
5 files changed, 11 insertions, 5 deletions
diff --git a/ld/emulparams/armelf.sh b/ld/emulparams/armelf.sh index 8c79b64..338b9ce 100644 --- a/ld/emulparams/armelf.sh +++ b/ld/emulparams/armelf.sh @@ -4,7 +4,8 @@ OUTPUT_FORMAT="elf32-littlearm" BIG_OUTPUT_FORMAT="elf32-bigarm" LITTLE_OUTPUT_FORMAT="elf32-littlearm" TEXT_START_ADDR=0x8000 -TEMPLATE_NAME=armelf +TEMPLATE_NAME=elf32 +EXTRA_EM_FILE=armelf OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7)' OTHER_BSS_SYMBOLS='__bss_start__ = .;' OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;' diff --git a/ld/emulparams/armelf_linux.sh b/ld/emulparams/armelf_linux.sh index a85e8bd..c5b963f 100644 --- a/ld/emulparams/armelf_linux.sh +++ b/ld/emulparams/armelf_linux.sh @@ -4,7 +4,8 @@ OUTPUT_FORMAT="elf32-littlearm" BIG_OUTPUT_FORMAT="elf32-bigarm" LITTLE_OUTPUT_FORMAT="elf32-littlearm" MAXPAGESIZE=0x8000 -TEMPLATE_NAME=armelf +TEMPLATE_NAME=elf32 +EXTRA_EM_FILE=armelf GENERATE_SHLIB_SCRIPT=yes DATA_START_SYMBOLS='__data_start = . ;'; diff --git a/ld/emulparams/armelf_linux26.sh b/ld/emulparams/armelf_linux26.sh index 36d1b0e..89cd9fb 100644 --- a/ld/emulparams/armelf_linux26.sh +++ b/ld/emulparams/armelf_linux26.sh @@ -4,7 +4,8 @@ OUTPUT_FORMAT="elf32-littlearm" BIG_OUTPUT_FORMAT="elf32-bigarm" LITTLE_OUTPUT_FORMAT="elf32-littlearm" MAXPAGESIZE=0x8000 -TEMPLATE_NAME=armelf +TEMPLATE_NAME=elf32 +EXTRA_EM_FILE=armelf GENERATE_SHLIB_SCRIPT=yes DATA_START_SYMBOLS='__data_start = . ;'; diff --git a/ld/emulparams/hppaelf.sh b/ld/emulparams/hppaelf.sh index 2cd06ac..77dcb39 100644 --- a/ld/emulparams/hppaelf.sh +++ b/ld/emulparams/hppaelf.sh @@ -3,5 +3,7 @@ OUTPUT_FORMAT="elf32-hppa" TEXT_START_ADDR=0x1000 TARGET_PAGE_SIZE=0x1000 ARCH=hppa +NOP=0x08000240 START="$START$" -TEMPLATE_NAME=hppaelf +TEMPLATE_NAME=elf32 +EXTRA_EM_FILE=hppaelf diff --git a/ld/emulparams/hppalinux.sh b/ld/emulparams/hppalinux.sh index e82315f..f270ba6 100644 --- a/ld/emulparams/hppalinux.sh +++ b/ld/emulparams/hppalinux.sh @@ -6,5 +6,6 @@ MAXPAGESIZE=0x1000 ARCH=hppa NOP=0x08000240 START="_start" -TEMPLATE_NAME=hppaelf DATA_START_SYMBOLS='$global$ = .;' +TEMPLATE_NAME=elf32 +EXTRA_EM_FILE=hppaelf |