diff options
author | Ken Raeburn <raeburn@cygnus> | 1993-07-12 15:05:38 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1993-07-12 15:05:38 +0000 |
commit | aa6743a58d53b8e575094b0be662d7b8788669a3 (patch) | |
tree | 4954ffd2887025965db749307df2e29055b2b315 /ld | |
parent | e900b30cae08bc422903dd3719b14b6951ca3ea1 (diff) | |
download | gdb-aa6743a58d53b8e575094b0be662d7b8788669a3.zip gdb-aa6743a58d53b8e575094b0be662d7b8788669a3.tar.gz gdb-aa6743a58d53b8e575094b0be662d7b8788669a3.tar.bz2 |
Include .init, .fini, .rodata sections.
Create symbol "end" instead of "__end".
Comment out some parts that may not be needed (yet) for elf.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/scripttempl/elf.sc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 0643925..2e75875 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 |