From aa6743a58d53b8e575094b0be662d7b8788669a3 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 12 Jul 1993 15:05:38 +0000 Subject: [PATCH] Include .init, .fini, .rodata sections. Create symbol "end" instead of "__end". Comment out some parts that may not be needed (yet) for elf. --- ld/scripttempl/elf.sc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 06439252dd1..2e758758758 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -3,15 +3,19 @@ OUTPUT_FORMAT("${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) ${RELOCATING+${LIB_SEARCH_DIRS}} -${RELOCATING+__DYNAMIC = 0;} -${STACKZERO+${RELOCATING+${STACKZERO}}} -${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}} +/* Do we need any of these for elf? + ${RELOCATING+__DYNAMIC = 0;} + ${STACKZERO+${RELOCATING+${STACKZERO}}} + ${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}} */ SECTIONS { .text ${RELOCATING+${TEXT_START_ADDR}}: { CREATE_OBJECT_SYMBOLS + *(.init) *(.text) + *(.fini) + *(.rodata) ${RELOCATING+_etext = ${DATA_ALIGNMENT};} } .data ${RELOCATING+${DATA_ALIGNMENT}} : @@ -26,7 +30,7 @@ SECTIONS *(.bss) *(COMMON) ${RELOCATING+_end = . }; - ${RELOCATING+__end = . }; + ${RELOCATING+end = . }; } } EOF -- 2.30.2