Commit | Line | Data |
---|---|---|
333d0055 JC |
1 | /* Linker script to undo -split-sections and merge all sections together when |
2 | * linking relocatable object files for GHCi. | |
3 | * ld -r normally retains the individual sections, which is what you would want | |
4 | * if the intention is to eventually link into a binary with --gc-sections, but | |
5 | * it doesn't have a flag for directly doing what we want. */ | |
6 | SECTIONS | |
7 | { | |
8 | .text : { | |
9 | *(.text*) | |
10 | } | |
11 | .rodata.cst16 : { | |
12 | *(.rodata.cst16*) | |
13 | } | |
14 | .data.rel.ro : { | |
15 | *(.data.rel.ro*) | |
16 | } | |
17 | .data : { | |
18 | *(.data*) | |
19 | } | |
20 | .bss : { | |
21 | *(.bss*) | |
22 | } | |
23 | } |