diff options
author | Ken Raeburn <raeburn@cygnus> | 1995-05-18 22:21:18 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1995-05-18 22:21:18 +0000 |
commit | ff15324f6383f5532d167eba6f4e80f67d94a84a (patch) | |
tree | 57677beae66e13583f9d046ed51b2c8e7bac6d91 /ld/scripttempl | |
parent | 1b9016457d41c7037e33c2e2267f309ded4ca2a1 (diff) | |
download | gdb-ff15324f6383f5532d167eba6f4e80f67d94a84a.zip gdb-ff15324f6383f5532d167eba6f4e80f67d94a84a.tar.gz gdb-ff15324f6383f5532d167eba6f4e80f67d94a84a.tar.bz2 |
Bunch of changes from Richard Earnshaw for generic bi-endian ARM aout targets.
Details in change logs.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/.Sanitize | 1 | ||||
-rw-r--r-- | ld/scripttempl/armaout.sc | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/ld/scripttempl/.Sanitize b/ld/scripttempl/.Sanitize index 46c2242..0e6008a 100644 --- a/ld/scripttempl/.Sanitize +++ b/ld/scripttempl/.Sanitize @@ -34,6 +34,7 @@ Things-to-keep: README a29k.sc alpha.sc +armaout.sc aout.sc ebmon29k.sc elf.sc diff --git a/ld/scripttempl/armaout.sc b/ld/scripttempl/armaout.sc new file mode 100644 index 0000000..e9276a8 --- /dev/null +++ b/ld/scripttempl/armaout.sc @@ -0,0 +1,35 @@ +cat <<EOF +OUTPUT_FORMAT("${OUTPUT_FORMAT}") +OUTPUT_ARCH(${ARCH}) + +${RELOCATING+${LIB_SEARCH_DIRS}} +${STACKZERO+${RELOCATING+${STACKZERO}}} +SECTIONS +{ + .text ${RELOCATING+${TEXT_START_ADDR}} : + { + CREATE_OBJECT_SYMBOLS + ${RELOCATING+__stext_ = .;} + *(.text) + ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}} + ${RELOCATING+_etext = ${DATA_ALIGNMENT};} + ${RELOCATING+__etext = ${DATA_ALIGNMENT};} + } + .data ${RELOCATING+${DATA_ALIGNMENT}} : + { + ${RELOCATING+__sdata_ = .;} + *(.data) + ${CONSTRUCTING+CONSTRUCTORS} + ${RELOCATING+_edata = .;} + ${RELOCATING+__edata = .;} + } + .bss ${RELOCATING+ SIZEOF(.data) + ADDR (.data)} : + { + ${RELOCATING+ __bss_start = .}; + *(.bss) + *(COMMON) + ${RELOCATING+_end = ALIGN(4) }; + ${RELOCATING+__end = ALIGN(4) }; + } +} +EOF |