diff options
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/.Sanitize | 1 | ||||
-rw-r--r-- | ld/emulparams/mn10300.sh | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize index 6723bcc..62a8870 100644 --- a/ld/emulparams/.Sanitize +++ b/ld/emulparams/.Sanitize @@ -121,6 +121,7 @@ mipsbsd.sh mipsidt.sh mipsidtl.sh mipslit.sh +mn10300.sh news.sh ns32knbsd.sh pc532macha.sh diff --git a/ld/emulparams/mn10300.sh b/ld/emulparams/mn10300.sh new file mode 100644 index 0000000..dc7d126 --- /dev/null +++ b/ld/emulparams/mn10300.sh @@ -0,0 +1,19 @@ +MACHINE= +SCRIPT_NAME=elf +OUTPUT_FORMAT="elf32-mn10300" +TEXT_START_ADDR=0x0 +ARCH=mn10300 +MAXPAGESIZE=256 +ENTRY=_start +EMBEDDED=yes + +# Hmmm, there's got to be a better way. This sets the stack to the +# top of the simulator memory (2^18 bytes). +OTHER_RELOCATING_SECTIONS='.stack 0x40000 : { _stack = .; *(.stack) }' + +# These are for compatibility with the COFF toolchain. +# XXX These should definitely disappear. +CTOR_START='___ctors = .;' +CTOR_END='___ctors_end = .;' +DTOR_START='___dtors = .;' +DTOR_END='___dtors_end = .;' |