aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Meloun <mmel@FreeBSD.org>2026-04-15 09:32:54 +0000
committerMichal Meloun <mmel@FreeBSD.org>2026-04-15 16:02:01 +0000
commit1dddb580f950a27fb9859b2879755dde114c9d8b (patch)
tree2364f25c01b7c1080b64d77560393a0b34519681
parent18b7115cba2f698909a4801dc2cc1b04b1f4f210 (diff)
arm64: Define the .iplt section placement.
Ensure that the .plt and .ipld sections are in the executable memory segment. MFC after: 1 week Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D56403
-rw-r--r--sys/conf/ldscript.arm647
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/conf/ldscript.arm64 b/sys/conf/ldscript.arm64
index ae231c3037e6..7ec0d4324270 100644
--- a/sys/conf/ldscript.arm64
+++ b/sys/conf/ldscript.arm64
@@ -15,6 +15,12 @@ SECTIONS
*(.gnu.warning)
*(.gnu.linkonce.t*)
} =0x9090
+ .plt :
+ {
+ *(.plt)
+ *(.iplt)
+ }
+
/*
* Align to the the largest page size the kernel could be built for.
* If we don't then building page tables in locore.S could fail as it
@@ -66,7 +72,6 @@ SECTIONS
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
.init : { *(.init) } =0x9090
- .plt : { *(.plt) }
. = ALIGN(4);
_extab_start = .;