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