diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-01-15 16:49:06 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-05-15 17:40:05 +0200 |
commit | fcbe7fefbb7c66e2f917fca4af59204bc8ff0a7e (patch) | |
tree | 94461fd1f29da4cc6520eee577711aa94bd6f212 /src | |
parent | 0cdf4b0a6821a0e970194ed5b122d3d6270c9814 (diff) |
WIP: Attempt to make linker scripts compatible with binutils 2.27
In binutils-2.27, one can no longer have linker sections with
overlapping VMA addresses. Let's try to work around this.
See https://osmocom.org/issues/1917 for more details.
Diffstat (limited to 'src')
-rw-r--r-- | src/target/firmware/board/compal/ram.lds | 4 | ||||
-rw-r--r-- | src/target/firmware/board/compal_e88/flash.lds | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/target/firmware/board/compal/ram.lds b/src/target/firmware/board/compal/ram.lds index b52b619a..4f08a835 100644 --- a/src/target/firmware/board/compal/ram.lds +++ b/src/target/firmware/board/compal/ram.lds @@ -20,10 +20,10 @@ SECTIONS . = 0x800000; /* romloader data section, contains passthru interrupt vectors */ - .compal.loader (NOLOAD) : { . = 0x100; } > LRAM + .compal.loader (NOLOAD) : { . = 0x1c; } > LRAM /* image signature (prepended by osmocon according to phone type) */ - .compal.header (NOLOAD) : { . = 4; } > LRAM + .compal.header 0x800100 (NOLOAD): { . = 4; } > LRAM /* initialization code */ . = ALIGN(4); diff --git a/src/target/firmware/board/compal_e88/flash.lds b/src/target/firmware/board/compal_e88/flash.lds index 67d727ff..52148d92 100644 --- a/src/target/firmware/board/compal_e88/flash.lds +++ b/src/target/firmware/board/compal_e88/flash.lds @@ -91,8 +91,8 @@ SECTIONS PROVIDE(_got_end = ADDR(.got) + SIZEOF(.got)); /* reserved ram */ - .compal.reservedram 0x800000 (NOLOAD) : { - . = 0xff; + .compal.reservedram 0x800038 (NOLOAD) : { + . = 0xff - 0x38; } > IRAM /* initialized data */ |