From: Nick Clifton Date: Tue, 18 Jun 2024 08:15:04 +0000 (+0100) Subject: Ensure that the text segment is aligned on disk when using --rosegment. X-Git-Tag: binutils-2_43~367 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b74583e2ca2f54df341dea1efaf5bf40efb9b0b;p=thirdparty%2Fbinutils-gdb.git Ensure that the text segment is aligned on disk when using --rosegment. --- 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=" "