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. */ 6SECTIONS 7{ 8 .text : { 9 *(.text*) 10 } 11 .rodata : 12 { 13 *(.rodata .rodata.* .gnu.linkonce.r.*) 14 } 15 .data.rel.ro : { 16 *(.data.rel.ro*) 17 } 18 .data : { 19 *(.data*) 20 } 21 .bss : { 22 *(.bss*) 23 } 24} 25