Skip to content

Commit

Permalink
rp2040: Fix extab section getting put before .text (#394)
Browse files Browse the repository at this point in the history
* rp2040: Fix extab section getting put before .text

* Add extab sections to stage2 and rp2350 arm linker scripts
  • Loading branch information
Grazfather authored Feb 22, 2025
1 parent 1891601 commit 3c4a1c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion port/raspberrypi/rp2xxx/rp2040.ld
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ SECTIONS
*(.rodata*)
} > flash0

.ARM.extab : {
*(.ARM.extab* .gnu.linkonce.armextab.*)
} >flash0

.ARM.exidx : {
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} >flash0
Expand All @@ -54,7 +58,7 @@ SECTIONS
*(.bss*)
microzig_bss_end = .;
} > ram0

.flash_end :
{
microzig_flash_end = .;
Expand Down
4 changes: 4 additions & 0 deletions port/raspberrypi/rp2xxx/rp2350_arm.ld
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ SECTIONS
*(.rodata*)
} > flash0

.ARM.extab : {
*(.ARM.extab* .gnu.linkonce.armextab.*)
} >flash0

.ARM.exidx : {
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} >flash0
Expand Down
5 changes: 4 additions & 1 deletion port/raspberrypi/rp2xxx/src/bootroms/RP2040/shared/stage2.ld
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ SECTIONS
*(.rodata*)
} > flash0

.ARM.extab : {
*(.ARM.extab* .gnu.linkonce.armextab.*)
} >flash0

.ARM.exidx : {
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} >flash0


.data :
{
*(.data*)
Expand Down

0 comments on commit 3c4a1c2

Please sign in to comment.