aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2024-06-18 09:15:04 +0100
committerNick Clifton <nickc@redhat.com>2024-06-18 09:15:04 +0100
commit7b74583e2ca2f54df341dea1efaf5bf40efb9b0b (patch)
tree25ee1077944c52c4f1a0a5539f0251889e294b15 /ld
parentc7e4521c972e455a7331e96d3f9870c0deccde26 (diff)
downloadgdb-7b74583e2ca2f54df341dea1efaf5bf40efb9b0b.zip
gdb-7b74583e2ca2f54df341dea1efaf5bf40efb9b0b.tar.gz
gdb-7b74583e2ca2f54df341dea1efaf5bf40efb9b0b.tar.bz2
Ensure that the text segment is aligned on disk when using --rosegment.
Diffstat (limited to 'ld')
-rw-r--r--ld/scripttempl/elf.sc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index f1a61e7..5471611 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=" "