From 43ad502097518042ca08eda6d62e9e0fabeeeba6 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 20 Dec 2023 14:52:07 +0000 Subject: [PATCH] there is a super-alignment between btext and text, this creates a hole. Twice, I have seen the sigtramp mapping land inside that hole. This causes grief for the upcoming pinsyscalls() work which operates on address space ranges. But the micro-optimization is silly. ok kettenis --- libexec/ld.so/sparc64/ld.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/ld.so/sparc64/ld.script b/libexec/ld.so/sparc64/ld.script index 77873fa40d0..40bf0814d10 100644 --- a/libexec/ld.so/sparc64/ld.script +++ b/libexec/ld.so/sparc64/ld.script @@ -31,7 +31,7 @@ SECTIONS . = ALIGN(0x2000); boot_text_end = .; } :btext =0 - . = ALIGN(0x100000); + . = ALIGN(0x2000); .text : { *(.text .text.*) } :text =0 /* RELRO DATA */ -- 2.20.1