mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
24 lines
577 B
Perl
24 lines
577 B
Perl
|
/* 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.cst16 : {
|
||
|
*(.rodata.cst16*)
|
||
|
}
|
||
|
.data.rel.ro : {
|
||
|
*(.data.rel.ro*)
|
||
|
}
|
||
|
.data : {
|
||
|
*(.data*)
|
||
|
}
|
||
|
.bss : {
|
||
|
*(.bss*)
|
||
|
}
|
||
|
}
|