[binutils-gdb] Ensure that the text segment is aligned on disk when using --rosegment.
Nick Clifton
nickc@sourceware.org
Tue Jun 18 08:15:35 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7b74583e2ca2f54df341dea1efaf5bf40efb9b0b
commit 7b74583e2ca2f54df341dea1efaf5bf40efb9b0b
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jun 18 09:15:04 2024 +0100
Ensure that the text segment is aligned on disk when using --rosegment.
Diff:
---
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=" "
More information about the Binutils-cvs
mailing list