decompressor: Add rodata PHDR and section to ld script
This commit is contained in:
parent
916aa370b2
commit
09c87feaee
|
@ -5,6 +5,7 @@ ENTRY(_start)
|
||||||
PHDRS
|
PHDRS
|
||||||
{
|
{
|
||||||
text PT_LOAD FLAGS((1 << 0) | (1 << 2)) ;
|
text PT_LOAD FLAGS((1 << 0) | (1 << 2)) ;
|
||||||
|
rodata PT_LOAD FLAGS((1 << 2)) ;
|
||||||
data PT_LOAD FLAGS((1 << 1) | (1 << 2)) ;
|
data PT_LOAD FLAGS((1 << 1) | (1 << 2)) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,9 +18,12 @@ SECTIONS
|
||||||
*(.text .text.*)
|
*(.text .text.*)
|
||||||
} :text
|
} :text
|
||||||
|
|
||||||
|
.rodata : {
|
||||||
|
*(.rodata .rodata.*)
|
||||||
|
} :rodata
|
||||||
|
|
||||||
.data : {
|
.data : {
|
||||||
*(.data .data.*)
|
*(.data .data.*)
|
||||||
*(.rodata .rodata.*)
|
|
||||||
} :data
|
} :data
|
||||||
|
|
||||||
.bss : {
|
.bss : {
|
||||||
|
|
Loading…
Reference in New Issue