1 # Copyright (C) 2014-2019 Free Software Foundation, Inc.
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved.
7 test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
8 test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
9 test -z "${ALIGNMENT}" && ALIGNMENT="4"
12 /* Copyright (C) 2014-2019 Free Software Foundation, Inc.
14 Copying and distribution of this script, with or without modification,
15 are permitted in any medium without royalty provided the copyright
16 notice and this notice are preserved. */
18 OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
19 "${LITTLE_OUTPUT_FORMAT}")
22 ${RELOCATING+${LIB_SEARCH_DIRS}}
23 ${STACKZERO+${RELOCATING+${STACKZERO}}}
24 ${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
25 ${RELOCATING+${EXECUTABLE_SYMBOLS}}
26 ${RELOCATING+PROVIDE (__stack = 0);}
29 ${RELOCATING+. = ${TEXT_START_ADDR};}
34 /* The next six sections are for SunOS dynamic linking. The order
42 ${RELOCATING+_etext = .;}
43 ${RELOCATING+__etext = .;}
44 ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
46 ${RELOCATING+. = ${DATA_ALIGNMENT};}
49 /* The first three sections are for SunOS dynamic linking. */
54 *(.linux-dynamic) /* For Linux dynamic linking. */
55 ${CONSTRUCTING+CONSTRUCTORS}
56 ${RELOCATING+_edata = .;}
57 ${RELOCATING+__edata = .;}
61 ${RELOCATING+ __bss_start = .};
64 ${RELOCATING+. = ALIGN(${ALIGNMENT});}
65 ${RELOCATING+_end = . };
66 ${RELOCATING+__end = . };