diff options
author | Per Bothner <per@bothner.com> | 1992-02-15 22:07:15 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-02-15 22:07:15 +0000 |
commit | 6ecb2b74ee6a45adfba96efff8807448f070b754 (patch) | |
tree | 03413fd8e49d3a73f717d17d0ef167f8cba9f212 /ld/a29k.sc-sh | |
parent | 3340f7e5fdd11b6c544714500fca870707793fd0 (diff) | |
download | gdb-6ecb2b74ee6a45adfba96efff8807448f070b754.zip gdb-6ecb2b74ee6a45adfba96efff8807448f070b754.tar.gz gdb-6ecb2b74ee6a45adfba96efff8807448f070b754.tar.bz2 |
Major rewrite of how ld is configured. The major idea
is to use shell scripts to generate everything.
* generic.em replaces ldtemplate.
* Other *.em files replace various *.c files.
A *.em file is a shell script that generates the corresponding
ld__*.c file that implements an emulation. This is usually
a straight 'cat' of a here-document, possibly with substitutions.
* Script files (*.sc) are places by *.sc-sh scripts.
Again, these are simple shell scripts that 'cat'
here-documents, usually with some substitutions.
The output a *.sc-sh is a script file.
Diffstat (limited to 'ld/a29k.sc-sh')
-rwxr-xr-x | ld/a29k.sc-sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ld/a29k.sc-sh b/ld/a29k.sc-sh new file mode 100755 index 0000000..ffc4219 --- /dev/null +++ b/ld/a29k.sc-sh @@ -0,0 +1,40 @@ +cat <<EOF +OUTPUT_FORMAT("coff-a29k-big") +INPUT(/lab3/u3/sym1/tools/usr/lib/segments.o) /* Has .rstack/.mstack */ +SEARCH_DIR(/lib) +SEARCH_DIR(/usr/lib) +SEARCH_DIR(/usr/local/lib) +MEMORY { + text : ORIGIN = 0x1000000, LENGTH = 0x1000000 + talias : ORIGIN = 0x2000000, LENGTH = 0x1000000 + data : ORIGIN = 0x3000000, LENGTH = 0x1000000 + mstack : ORIGIN = 0x4000000, LENGTH = 0x1000000 + rstack : ORIGIN = 0x5000000, LENGTH = 0x1000000 +} +SECTIONS +{ + .text : { + *(.text) + __etext = .; + *(.lit) + *(.shdata) + } > text + .shbss SIZEOF(.text) + ADDR(.text) : { + *(.shbss) + } + .talias : { } > talias + .data : { + *(.data) + __edata = .; + } > data + .bss SIZEOF(.data) + ADDR(.data) : + { + *(.bss) + *(COMMON) + __end = ALIGN(0x8); + } + .mstack : { } > mstack + .rstack : { } > rstack +} + +EOF |