From: Ian Lance Taylor Date: Mon, 12 May 1997 15:12:12 +0000 (+0000) Subject: Mon May 12 11:11:06 1997 Andreas Schwab X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d046499bc8ad7c3f113386ac6e5481ac698ebd9;p=binutils-gdb.git Mon May 12 11:11:06 1997 Andreas Schwab * scripttempl/elf.sc: Don't align the data segment on the next 8 byte boundary, instead let the linker use whatever the individual sections require. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index b601fd62b31..e8dd49583ec 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +Mon May 12 11:11:06 1997 Andreas Schwab + + * scripttempl/elf.sc: Don't align the data segment on the next 8 + byte boundary, instead let the linker use whatever the individual + sections require. + Fri May 9 17:45:46 1997 Ian Lance Taylor * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support. diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 665af8e1cae..27f2e9d53f8 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -16,6 +16,7 @@ # OTHER_BSS_SYMBOLS - symbols that appear at the start of the # .bss section besides __bss_start. # DATA_PLT - .plt should be in data segment, not text segment. +# 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. @@ -27,6 +28,14 @@ if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHI test "$LD_FLAG" = "N" && DATA_ADDR=. INTERP=".interp ${RELOCATING-0} : { *(.interp) }" PLT=".plt ${RELOCATING-0} : { *(.plt) }" + +# 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 + cat <