Skip to content

Commit 28fd648

Browse files
committed
soc/xtensa/dc233c: Link iram/iram0 sections generically
The linkage for the "after vector" RAM region was specifying files explicitly, which breaks when other files (or new files) want to add code to these regions. In particular call0 needs to use iram to store local jump targets for the vector entry. There's really no good spec on this. Conventionally xtensa platforms have always put the .iram and iram0 sections (and their derived sections like literals) immediately after the vector table, but I doubt there's a promise to that extent anywhere. Just try to adhere to what convention there is. (I note there's also a ".iram1" section referenced here that I'm not moving because I don't know what's in it) Signed-off-by: Andy Ross <andyross@google.com>
1 parent 28d3b5a commit 28fd648

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

soc/xtensa/dc233c/include/xtensa-dc233c.ld

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,10 @@ SECTIONS
300300
* conflict with auto-refill TLB resulting in
301301
* TLB multi-hit exception.
302302
*/
303+
*(.iram0.literal .iram.literal .iram.text.literal .iram0.text .iram.text)
303304

304305
*libarch__xtensa__core.a:xtensa-asm2-util.S.obj(.literal)
305306
*libarch__xtensa__core.a:xtensa-asm2-util.S.obj(.text)
306-
*libarch__xtensa__core.a:xtensa-asm2-util.S.obj(.iram.text)
307-
*libarch__xtensa__core.a:xtensa-asm2-util.S.obj(.iram0.text)
308-
309-
*libarch__xtensa__core.a:window_vectors.S.obj(.iram.text)
310307

311308
*libarch__xtensa__core.a:xtensa-asm2.c.obj(.literal.*)
312309
*libarch__xtensa__core.a:xtensa-asm2.c.obj(.text.*)

0 commit comments

Comments
 (0)