From 1a7f2a866ea638dce6bbac83a4f5fcd686f51795 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 13 May 1997 03:30:20 +0000 Subject: [PATCH] * scripttempl/elfmips.sc: Remove. * scripttempl/elf.sc: Set ENTRY based on target. Permit TEXT_DYNAMIC to control .dynamic segment. Permit SHLIB_TEXT_START_ADDR to set start of shared object. Support INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put .gnu.linkonce.t* in .text when relocating. Support OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS. * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf. (DATA_ADDR): Don't set. (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS. (OTHER_TEXT_SECTIONS): Set. (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS. (MACHINE): Set to empty string. * emulparams/elf32l4300.sh: Likewise. * emulparams/elf32ebmip.sh: Likewise. * emulparams/elf32elmip.sh: Likewise. * emulparams/elf32bmip.sh: Likewise. Also: (TEXT_DYNAMIC): Set. * emulparams/elf32lmips.sh: Likewise. * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than elfmips.sc. (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise. --- ld/ChangeLog | 26 +++++ ld/scripttempl/.Sanitize | 1 - ld/scripttempl/elfmips.sc | 207 -------------------------------------- 3 files changed, 26 insertions(+), 208 deletions(-) delete mode 100644 ld/scripttempl/elfmips.sc diff --git a/ld/ChangeLog b/ld/ChangeLog index e8dd49583e..653260a37f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,29 @@ +Mon May 12 23:22:58 1997 Ian Lance Taylor + + * scripttempl/elfmips.sc: Remove. + * scripttempl/elf.sc: Set ENTRY based on target. Permit + TEXT_DYNAMIC to control .dynamic segment. Permit + SHLIB_TEXT_START_ADDR to set start of shared object. Support + INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put + .gnu.linkonce.t* in .text when relocating. Support + OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as + DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS. + * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf. + (DATA_ADDR): Don't set. + (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS. + (OTHER_TEXT_SECTIONS): Set. + (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS. + (MACHINE): Set to empty string. + * emulparams/elf32l4300.sh: Likewise. + * emulparams/elf32ebmip.sh: Likewise. + * emulparams/elf32elmip.sh: Likewise. + * emulparams/elf32bmip.sh: Likewise. Also: + (TEXT_DYNAMIC): Set. + * emulparams/elf32lmips.sh: Likewise. + * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than + elfmips.sc. + (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise. + Mon May 12 11:11:06 1997 Andreas Schwab * scripttempl/elf.sc: Don't align the data segment on the next 8 diff --git a/ld/scripttempl/.Sanitize b/ld/scripttempl/.Sanitize index 6bb42746da..3e969d7219 100644 --- a/ld/scripttempl/.Sanitize +++ b/ld/scripttempl/.Sanitize @@ -58,7 +58,6 @@ delta68.sc ebmon29k.sc elf.sc elfd10v.sc -elfmips.sc elfppc.sc go32coff.sc h8300.sc diff --git a/ld/scripttempl/elfmips.sc b/ld/scripttempl/elfmips.sc deleted file mode 100644 index 9dae3e5348..0000000000 --- a/ld/scripttempl/elfmips.sc +++ /dev/null @@ -1,207 +0,0 @@ -# -# Unusual variables checked by this code: -# NOP - two byte opcode for no-op (defaults to 0) -# DATA_ADDR - if end-of-text-plus-one-page isn't right for data start -# OTHER_READONLY_SECTIONS - other than .text .init .rodata ... -# (e.g., .PARISC.milli) -# OTHER_READWRITE_SECTIONS - other than .data .bss .ctors .sdata ... -# (e.g., .PARISC.global) -# OTHER_SECTIONS - at the end -# EXECUTABLE_SYMBOLS - symbols that must be defined for an -# executable (e.g., _DYNAMIC_LINK) -# TEXT_START_SYMBOLS - symbols that appear at the start of the -# .text section. -# DATA_START_SYMBOLS - symbols that appear at the start of the -# .data section. -# OTHER_BSS_SYMBOLS - symbols that appear at the start of the -# .bss section besides __bss_start. -# EMBEDDED - whether this is for an embedded system. -# -# When adding sections, do note that the names of some sections are used -# when specifying the start address of the next. -# - -# We use a start address of __start for Irix 5 and GNU/Linux/MIPS, -# _start for other targets. This is for compatibility with Irix 5, -# and with old MIPS ELF toolchains. -if [ -z "$ENTRY" ]; then - case "${target}" in - mips*-*-irix5*) ENTRY=__start ;; - mips*-*-linux*) ENTRY=__start ;; - *) ENTRY=_start ;; - esac -fi - -# if this is for an embedded system, don't add SIZEOF_HEADERS. -if [ -z "$EMBEDDED" ]; then - test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS" -else - test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}" -fi - -test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} -test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} -test "$LD_FLAG" = "N" && DATA_ADDR=. -INTERP=".interp ${RELOCATING-0} : { *(.interp) }" -cat <