From 7b74583e2ca2f54df341dea1efaf5bf40efb9b0b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 18 Jun 2024 09:15:04 +0100 Subject: [PATCH] Ensure that the text segment is aligned on disk when using --rosegment. --- ld/scripttempl/elf.sc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index f1a61e7bcee..54716110b61 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -372,7 +372,7 @@ if test -z "$TINY_READONLY_SECTION"; then *ro*textonly*) ALL_TEXT_BEFORE_RO=" " SEPARATE_TEXT=" " - TEXT_SEGMENT_ALIGN= + TEXT_SEGMENT_ALIGN=". = ALIGN(${MAXPAGESIZE});" ;; *textonly*) SEPARATE_TEXT=" " -- 2.47.3