diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-13 21:47:14 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-04-13 21:47:14 -0600 |
commit | 4e561ae43a734d870470e36c41232482bd5f398f (patch) | |
tree | ecb110156e07aa2f61caa4bcea0c9d44221f156b | |
parent | a5c8b8c59f99108233d99ceceb6f85315694e4b1 (diff) |
altos/stmf0: Split up rom load in altos.ld to make linker happy
The linker isn't happy when the .ld file tries to add text, the .exidx
and .rodata segments in the same block. Split them up for success.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/stmf0/altos.ld | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stmf0/altos.ld b/src/stmf0/altos.ld index 8f8933c6..74fdf3ea 100644 --- a/src/stmf0/altos.ld +++ b/src/stmf0/altos.ld @@ -55,10 +55,16 @@ SECTIONS { ao_product.o(.romconfig*) *(.text*) /* Executable code */ + } > rom + + .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - *(.rodata*) /* Constants */ + } > rom + .rodata : { + *(.rodata*) /* Constants */ } > rom + __text_end__ = .; /* Boot data which must live at the start of ram so that |