* scripttempl/elf.sc: Re-order .rel[a].foo outputs to the
same order seen for the main sections. Add OTHER_READONLY_RELOC_SECTIONS and OTHER_GOT_RELOC_SECTIONS.
This commit is contained in:
parent
9e41f97317
commit
9e4141bc7b
1 changed files with 24 additions and 20 deletions
|
@ -115,6 +115,9 @@ SECTIONS
|
||||||
.gnu.version ${RELOCATING-0} : { *(.gnu.version) }
|
.gnu.version ${RELOCATING-0} : { *(.gnu.version) }
|
||||||
.gnu.version_d ${RELOCATING-0} : { *(.gnu.version_d) }
|
.gnu.version_d ${RELOCATING-0} : { *(.gnu.version_d) }
|
||||||
.gnu.version_r ${RELOCATING-0} : { *(.gnu.version_r) }
|
.gnu.version_r ${RELOCATING-0} : { *(.gnu.version_r) }
|
||||||
|
|
||||||
|
.rel.init ${RELOCATING-0} : { *(.rel.init) }
|
||||||
|
.rela.init ${RELOCATING-0} : { *(.rela.init) }
|
||||||
.rel.text ${RELOCATING-0} :
|
.rel.text ${RELOCATING-0} :
|
||||||
{
|
{
|
||||||
*(.rel.text)
|
*(.rel.text)
|
||||||
|
@ -127,18 +130,8 @@ SECTIONS
|
||||||
${RELOCATING+*(.rela.text.*)}
|
${RELOCATING+*(.rela.text.*)}
|
||||||
${RELOCATING+*(.rela.gnu.linkonce.t*)}
|
${RELOCATING+*(.rela.gnu.linkonce.t*)}
|
||||||
}
|
}
|
||||||
.rel.data ${RELOCATING-0} :
|
.rel.fini ${RELOCATING-0} : { *(.rel.fini) }
|
||||||
{
|
.rela.fini ${RELOCATING-0} : { *(.rela.fini) }
|
||||||
*(.rel.data)
|
|
||||||
${RELOCATING+*(.rel.data.*)}
|
|
||||||
${RELOCATING+*(.rel.gnu.linkonce.d*)}
|
|
||||||
}
|
|
||||||
.rela.data ${RELOCATING-0} :
|
|
||||||
{
|
|
||||||
*(.rela.data)
|
|
||||||
${RELOCATING+*(.rela.data.*)}
|
|
||||||
${RELOCATING+*(.rela.gnu.linkonce.d*)}
|
|
||||||
}
|
|
||||||
.rel.rodata ${RELOCATING-0} :
|
.rel.rodata ${RELOCATING-0} :
|
||||||
{
|
{
|
||||||
*(.rel.rodata)
|
*(.rel.rodata)
|
||||||
|
@ -151,20 +144,31 @@ SECTIONS
|
||||||
${RELOCATING+*(.rela.rodata.*)}
|
${RELOCATING+*(.rela.rodata.*)}
|
||||||
${RELOCATING+*(.rela.gnu.linkonce.r*)}
|
${RELOCATING+*(.rela.gnu.linkonce.r*)}
|
||||||
}
|
}
|
||||||
.rel.got ${RELOCATING-0} : { *(.rel.got) }
|
${OTHER_READONLY_RELOC_SECTIONS}
|
||||||
.rela.got ${RELOCATING-0} : { *(.rela.got) }
|
.rel.data ${RELOCATING-0} :
|
||||||
|
{
|
||||||
|
*(.rel.data)
|
||||||
|
${RELOCATING+*(.rel.data.*)}
|
||||||
|
${RELOCATING+*(.rel.gnu.linkonce.d*)}
|
||||||
|
}
|
||||||
|
.rela.data ${RELOCATING-0} :
|
||||||
|
{
|
||||||
|
*(.rela.data)
|
||||||
|
${RELOCATING+*(.rela.data.*)}
|
||||||
|
${RELOCATING+*(.rela.gnu.linkonce.d*)}
|
||||||
|
}
|
||||||
.rel.ctors ${RELOCATING-0} : { *(.rel.ctors) }
|
.rel.ctors ${RELOCATING-0} : { *(.rel.ctors) }
|
||||||
.rela.ctors ${RELOCATING-0} : { *(.rela.ctors) }
|
.rela.ctors ${RELOCATING-0} : { *(.rela.ctors) }
|
||||||
.rel.dtors ${RELOCATING-0} : { *(.rel.dtors) }
|
.rel.dtors ${RELOCATING-0} : { *(.rel.dtors) }
|
||||||
.rela.dtors ${RELOCATING-0} : { *(.rela.dtors) }
|
.rela.dtors ${RELOCATING-0} : { *(.rela.dtors) }
|
||||||
.rel.init ${RELOCATING-0} : { *(.rel.init) }
|
.rel.got ${RELOCATING-0} : { *(.rel.got) }
|
||||||
.rela.init ${RELOCATING-0} : { *(.rela.init) }
|
.rela.got ${RELOCATING-0} : { *(.rela.got) }
|
||||||
.rel.fini ${RELOCATING-0} : { *(.rel.fini) }
|
${OTHER_GOT_RELOC_SECTIONS}
|
||||||
.rela.fini ${RELOCATING-0} : { *(.rela.fini) }
|
|
||||||
.rel.bss ${RELOCATING-0} : { *(.rel.bss) }
|
.rel.bss ${RELOCATING-0} : { *(.rel.bss) }
|
||||||
.rela.bss ${RELOCATING-0} : { *(.rela.bss) }
|
.rela.bss ${RELOCATING-0} : { *(.rela.bss) }
|
||||||
.rel.plt ${RELOCATING-0} : { *(.rel.plt) }
|
.rel.plt ${RELOCATING-0} : { *(.rel.plt) }
|
||||||
.rela.plt ${RELOCATING-0} : { *(.rela.plt) }
|
.rela.plt ${RELOCATING-0} : { *(.rela.plt) }
|
||||||
|
|
||||||
.init ${RELOCATING-0} : { KEEP (*(.init)) } =${NOP-0}
|
.init ${RELOCATING-0} : { KEEP (*(.init)) } =${NOP-0}
|
||||||
${DATA_PLT-${PLT}}
|
${DATA_PLT-${PLT}}
|
||||||
.text ${RELOCATING-0} :
|
.text ${RELOCATING-0} :
|
||||||
|
|
Loading…
Reference in a new issue