git: c159be9a0a73 - stable/14 - arm: fix symbols around the .ARM.exidx section

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

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

commit c159be9a0a738d70e009392db5894a54a79dc21f
Author:     Michal Meloun <mmel@FreeBSD.org>
AuthorDate: 2024-11-17 10:33:32 +0000
Commit:     Michal Meloun <mmel@FreeBSD.org>
CommitDate: 2024-12-08 10:36:38 +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 a1c38a5636e2..4c6716908bde 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) }