git: b9d95dc51a21 - stable/13 - arm: fix symbols around the .ARM.exidx section

From: Michal Meloun <mmel_at_FreeBSD.org>
Date: Sun, 08 Dec 2024 13:38:08 UTC
The branch stable/13 has been updated by mmel:

URL: https://cgit.FreeBSD.org/src/commit/?id=b9d95dc51a21449aa363b3bd963c330ebd690913

commit b9d95dc51a21449aa363b3bd963c330ebd690913
Author:     Michal Meloun <mmel@FreeBSD.org>
AuthorDate: 2024-11-17 10:33:32 +0000
Commit:     Michal Meloun <mmel@FreeBSD.org>
CommitDate: 2024-12-08 13:19:42 +0000

    arm: fix symbols around the .ARM.exidx section
    
    Insert a direct assignment to the location counter to ensure that orphaned
    sections cannot be emitted between the _exidx_start symbol and the .ARM.exidx
    section.
    
    Discussed with: jrtc27
    MFC after:      1 week
    
    (cherry picked from commit 1701dfae1be3be6f8f1fdd3b6b636d3161b33420)
---
 sys/conf/ldscript.arm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/conf/ldscript.arm b/sys/conf/ldscript.arm
index 37e8d442b33e..62adb1e773d0 100644
--- a/sys/conf/ldscript.arm
+++ b/sys/conf/ldscript.arm
@@ -67,6 +67,7 @@ SECTIONS
   _extab_end = .;
   PROVIDE(extab_end = .);
 
+  . = ALIGN(4);
   _exidx_start = .;
   PROVIDE(exidx_start = .);
   .ARM.exidx : { *(.ARM.exidx) }