summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/ld/scripttempl/aout.sc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/ld/scripttempl/aout.sc')
-rw-r--r--contrib/binutils/ld/scripttempl/aout.sc6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/binutils/ld/scripttempl/aout.sc b/contrib/binutils/ld/scripttempl/aout.sc
index 66cc42d..80dbb37 100644
--- a/contrib/binutils/ld/scripttempl/aout.sc
+++ b/contrib/binutils/ld/scripttempl/aout.sc
@@ -1,5 +1,6 @@
test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
+test -z "${ALIGNMENT}" && ALIGNMENT="4"
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
@@ -48,8 +49,9 @@ SECTIONS
${RELOCATING+ __bss_start = .};
*(.bss)
*(COMMON)
- ${RELOCATING+_end = ALIGN(4) };
- ${RELOCATING+__end = ALIGN(4) };
+ ${RELOCATING+. = ALIGN(${ALIGNMENT});}
+ ${RELOCATING+_end = . };
+ ${RELOCATING+__end = . };
}
}
EOF
OpenPOWER on IntegriCloud