diff options
Diffstat (limited to 'gnu/usr.bin/binutils/ld/scripttempl/aout.sc')
-rw-r--r-- | gnu/usr.bin/binutils/ld/scripttempl/aout.sc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/ld/scripttempl/aout.sc b/gnu/usr.bin/binutils/ld/scripttempl/aout.sc index 66cc42dfeb6..80dbb379633 100644 --- a/gnu/usr.bin/binutils/ld/scripttempl/aout.sc +++ b/gnu/usr.bin/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 |