Update C toolchain linker script to match the rust toolchain script
This commit is contained in:
parent
039488b562
commit
f58ebff44e
|
@ -2,6 +2,7 @@ PHDRS
|
||||||
{
|
{
|
||||||
text PT_LOAD ;
|
text PT_LOAD ;
|
||||||
rodata PT_LOAD ;
|
rodata PT_LOAD ;
|
||||||
|
data PT_LOAD ;
|
||||||
dynamic PT_DYNAMIC ;
|
dynamic PT_DYNAMIC ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,4 +13,12 @@ SECTIONS
|
||||||
.rodata : { *(.rodata*) } :rodata
|
.rodata : { *(.rodata*) } :rodata
|
||||||
.data.rel.ro : { *(.data.rel.ro*) } :rodata
|
.data.rel.ro : { *(.data.rel.ro*) } :rodata
|
||||||
.dynamic : { *(.dynamic) } :dynamic
|
.dynamic : { *(.dynamic) } :dynamic
|
||||||
|
.dynsym : { *(.dynsym) } :data
|
||||||
|
.dynstr : { *(.dynstr) } :data
|
||||||
|
.rel.dyn : { *(.rel.dyn) } :data
|
||||||
|
/DISCARD/ : {
|
||||||
|
*(.eh_frame*)
|
||||||
|
*(.gnu.hash*)
|
||||||
|
*(.hash*)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue