]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Ensure that the text segment is aligned on disk when using --rosegment.
authorNick Clifton <nickc@redhat.com>
Tue, 18 Jun 2024 08:15:04 +0000 (09:15 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 18 Jun 2024 08:15:04 +0000 (09:15 +0100)
ld/scripttempl/elf.sc

index f1a61e7bcee2313046ef0fc558dfe35448b88418..54716110b61e2dbab9c36dd3885f8bf52a3f6dce 100644 (file)
@@ -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=" "