Commit | Line | Data |
---|---|---|
ed601bea ILT |
1 | cat <<EOF |
2 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
3 | OUTPUT_ARCH(${ARCH}) | |
ed601bea ILT |
4 | ${RELOCATING+${LIB_SEARCH_DIRS}} |
5 | ${STACKZERO+${RELOCATING+${STACKZERO}}} | |
6 | ${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}} | |
10533b5b RS |
7 | ${RELOCATING+${EXECUTABLE_SYMBOLS}} |
8 | PROVIDE (__stack = 0); | |
ed601bea ILT |
9 | SECTIONS |
10 | { | |
10533b5b | 11 | .text ${TEXT_START_ADDR} : |
ed601bea ILT |
12 | { |
13 | CREATE_OBJECT_SYMBOLS | |
14 | *(.text) | |
15 | /* The next six sections are for SunOS dynamic linking. The order | |
16 | is important. */ | |
17 | *(.dynrel) | |
18 | *(.hash) | |
19 | *(.dynsym) | |
20 | *(.dynstr) | |
21 | *(.rules) | |
22 | *(.need) | |
5753006b ILT |
23 | ${RELOCATING+_etext = .;} |
24 | ${RELOCATING+__etext = .;} | |
ed601bea | 25 | ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}} |
ed601bea | 26 | } |
5753006b ILT |
27 | ${RELOCATING+. = ${DATA_ALIGNMENT};} |
28 | .data : | |
ed601bea ILT |
29 | { |
30 | /* The first three sections are for SunOS dynamic linking. */ | |
31 | *(.dynamic) | |
32 | *(.got) | |
33 | *(.plt) | |
34 | *(.data) | |
5753006b | 35 | *(.linux-dynamic) /* For Linux dynamic linking. */ |
ed601bea ILT |
36 | ${CONSTRUCTING+CONSTRUCTORS} |
37 | ${RELOCATING+_edata = .;} | |
66da6c84 | 38 | ${RELOCATING+__edata = .;} |
ed601bea | 39 | } |
5753006b | 40 | .bss : |
ed601bea ILT |
41 | { |
42 | ${RELOCATING+ __bss_start = .}; | |
43 | *(.bss) | |
44 | *(COMMON) | |
45 | ${RELOCATING+_end = ALIGN(4) }; | |
46 | ${RELOCATING+__end = ALIGN(4) }; | |
47 | } | |
48 | } | |
49 | EOF |