/* This saves a little space in the ELF file, since the zda starts
at a higher location that the ELF headers take up. */
- .zdata ${ZDATA_START_ADDR} :
+ .zdata ${RELOCATING+${ZDATA_START_ADDR}} :
{
*(.zdata)
${RELOCATING+*(.zbss)
section. Specifically it prevents the zdata
section from being marked READONLY. */
- .rozdata ${ROZDATA_START_ADDR} :
+ .rozdata ${RELOCATING+${ROZDATA_START_ADDR}} :
{
*(.rozdata)
${RELOCATING+*(romzdata)
}
/* Read-only sections, merged into text segment. */
- . = ${TEXT_START_ADDR};
+ ${RELOCATING+. = ${TEXT_START_ADDR};}
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
It contains a small lookup table at the start followed by the
code pointed to by entries in the lookup table. */
- .call_table_data ${CALL_TABLE_START_ADDR} :
+ .call_table_data ${RELOCATING+${CALL_TABLE_START_ADDR}} :
{
${RELOCATING+PROVIDE(__ctbp = .);}
*(.call_table_data)
.got : {${RELOCATING+ *(.got.plt)} *(.got) }
.dynamic : { *(.dynamic) }
- .tdata ${TDATA_START_ADDR} :
+ .tdata ${RELOCATING+${TDATA_START_ADDR}} :
{
${RELOCATING+PROVIDE (__ep = .);
*(.tbyte)
can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */
- .sdata ${SDATA_START_ADDR} :
+ .sdata ${RELOCATING+${SDATA_START_ADDR}} :
{
${RELOCATING+PROVIDE (__gp = . + 0x8000);}
*(.sdata)
}
/* See comment about .rozdata. */
- .rosdata ${ROSDATA_START_ADDR} :
+ .rosdata ${RELOCATING+${ROSDATA_START_ADDR}} :
{
*(.rosdata)
}
/* This saves a little space in the ELF file, since the zda starts
at a higher location that the ELF headers take up. */
- .zdata ${ZDATA_START_ADDR} :
+ .zdata ${RELOCATING+${ZDATA_START_ADDR}} :
{
*(.zdata)
${RELOCATING+*(.zdata23)
section. Specifically it prevents the zdata
section from being marked READONLY. */
- .rozdata ${ROZDATA_START_ADDR} :
+ .rozdata ${RELOCATING+${ROZDATA_START_ADDR}} :
{
*(.rozdata)
${RELOCATING+*(romzdata)
}
/* Read-only sections, merged into text segment. */
- . = ${TEXT_START_ADDR};
+ ${RELOCATING+. = ${TEXT_START_ADDR};}
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
It contains a small lookup table at the start followed by the
code pointed to by entries in the lookup table. */
- .call_table_data ${CALL_TABLE_START_ADDR} :
+ .call_table_data ${RELOCATING+${CALL_TABLE_START_ADDR}} :
{
${RELOCATING+PROVIDE(__ctbp = .);}
*(.call_table_data)
.got : {${RELOCATING+ *(.got.plt)} *(.got) }
.dynamic : { *(.dynamic) }
- .tdata ${TDATA_START_ADDR} :
+ .tdata ${RELOCATING+${TDATA_START_ADDR}} :
{
${RELOCATING+PROVIDE (__ep = .);
*(.edata)
can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */
- .sdata ${SDATA_START_ADDR} :
+ .sdata ${RELOCATING+${SDATA_START_ADDR}} :
{
${RELOCATING+PROVIDE (__gp = . + 0x8000);}
*(.sdata)
}
/* See comment about .rozdata. */
- .rosdata ${ROSDATA_START_ADDR} :
+ .rosdata ${RELOCATING+${ROSDATA_START_ADDR}} :
{
*(.rosdata)
${RELOCATING+*(.sconst)