Skip to content

Commit

Permalink
core: arm: kern.ld.S: align .ARM.ex* sections
Browse files Browse the repository at this point in the history
Make sure that the .ARM.exidx and .ARM.extab sections are 8 byte aligned
to work with CFG_CORE_SANITIZE_KADDRESS=y.

Signed-off-by: Jens Wiklander <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
  • Loading branch information
jenswi-linaro authored and jforissier committed Aug 14, 2024
1 parent 3e6106f commit 9cb4152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/arch/arm/kernel/kern.ld.S
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ SECTIONS
}

/* .ARM.exidx is sorted, so has to go in its own output section. */
.ARM.exidx : {
.ARM.exidx : ALIGN(8) {
__exidx_start = .;
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
__exidx_end = .;
}

.ARM.extab : {
.ARM.extab : ALIGN(8) {
__extab_start = .;
*(.ARM.extab*)
__extab_end = .;
Expand Down

0 comments on commit 9cb4152

Please sign in to comment.