summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ld/scripttempl/aout.sc
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/ld/scripttempl/aout.sc')
-rw-r--r--gnu/usr.bin/binutils/ld/scripttempl/aout.sc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ld/scripttempl/aout.sc b/gnu/usr.bin/binutils/ld/scripttempl/aout.sc
index a5b7c188ffb..66cc42dfeb6 100644
--- a/gnu/usr.bin/binutils/ld/scripttempl/aout.sc
+++ b/gnu/usr.bin/binutils/ld/scripttempl/aout.sc
@@ -1,5 +1,9 @@
+test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
+test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
+
cat <<EOF
-OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
+ "${LITTLE_OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
${RELOCATING+${LIB_SEARCH_DIRS}}