Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/gold/testsuite/pr22266_script.t
2023-03-06 14:48:14 +01:00

24 lines
596 B
Raku

/* Linker script to undo -split-sections and merge all sections together when
* linking relocatable object files for GHCi.
* ld -r normally retains the individual sections, which is what you would want
* if the intention is to eventually link into a binary with --gc-sections, but
* it doesn't have a flag for directly doing what we want. */
SECTIONS
{
.text : {
*(.text*)
}
.rodata :
{
*(.rodata .rodata.* .gnu.linkonce.r.*)
}
.data.rel.ro : {
*(.data.rel.ro*)
}
.data : {
*(.data*)
}
.bss : {
*(.bss*)
}
}