* ld/emulparams/amiga.sh (PAGE_SIZE, NONPAGED_TEXT_START_ADDR): Remove
unused values. * ld/emulparams/amiga_bss.sh (PAGE_SIZE, NONPAGED_TEXT_START_ADDR): Likewise. * ld/scripttempl/amiga.sc (___machtype): Move out of .text section and drop ABSOLUTE. (___text_size): Move out of .text section and replace ABSOLUTE with SIZEOF to compute its value. (___data_size): Move out of .data section and replace ABSOLUTE with SIZEOF to compute its value. (___bss_size): Move out of .bss section and replace ABSOLUTE with SIZEOF to compute its value. * ld/scripttempl/amiga_bss.sc (___machtype): Move out of .text section and drop ABSOLUTE. (___text_size): Move out of .text section and replace ABSOLUTE with SIZEOF to compute its value. (___data_size): Move out of .data section and replace ABSOLUTE with SIZEOF on .data and .bss to compute its value. (___bss_size): Move out of .data section and drop useless ABSOLUTE. (__edata): Move to its expected place at the end of .data section. (__bss_start): Move to its expected place at the start of .bss section.
This commit is contained in:
parent
b0b16e9038
commit
8aa59c7193
|
@ -1,8 +1,6 @@
|
|||
SCRIPT_NAME=amiga
|
||||
OUTPUT_FORMAT="amiga"
|
||||
TEXT_START_ADDR=0x0
|
||||
PAGE_SIZE=0x0
|
||||
SEGMENT_SIZE=0x0
|
||||
NONPAGED_TEXT_START_ADDR=0x0
|
||||
TEMPLATE_NAME=amiga
|
||||
ARCH=m68k
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
SCRIPT_NAME=amiga_bss
|
||||
OUTPUT_FORMAT="amiga"
|
||||
TEXT_START_ADDR=0x0
|
||||
PAGE_SIZE=0x0
|
||||
SEGMENT_SIZE=0x0
|
||||
NONPAGED_TEXT_START_ADDR=0x0
|
||||
TEMPLATE_NAME=amiga
|
||||
ARCH=m68k
|
||||
|
|
|
@ -8,17 +8,17 @@ ${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
${RELOCATING+PROVIDE(___machtype = 0x0);}
|
||||
${RELOCATING+. = ${TEXT_START_ADDR};}
|
||||
.text :
|
||||
{
|
||||
${RELOCATING+___machtype = ABSOLUTE(0x0);}
|
||||
${RELOCATING+__stext = .;}
|
||||
*(.text)
|
||||
${RELOCATING+___datadata_relocs = .;}
|
||||
${RELOCATING+__etext = .;}
|
||||
${RELOCATING+___text_size = ABSOLUTE(__etext - __stext);}
|
||||
${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
|
||||
}
|
||||
${RELOCATING+___text_size = SIZEOF(.text);}
|
||||
${RELOCATING+. = ${DATA_ALIGNMENT};}
|
||||
.data :
|
||||
{
|
||||
|
@ -27,17 +27,16 @@ SECTIONS
|
|||
*(.data)
|
||||
${RELOCATING+___a4_init = 0x7ffe;}
|
||||
${RELOCATING+__edata = .;}
|
||||
${RELOCATING+___data_size = ABSOLUTE(__edata - __sdata);}
|
||||
}
|
||||
${RELOCATING+. = ALIGN(0x0);}
|
||||
${RELOCATING+___data_size = SIZEOF(.data);}
|
||||
.bss :
|
||||
{
|
||||
${RELOCATING+__bss_start = .;}
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
${RELOCATING+__end = .;}
|
||||
${RELOCATING+___bss_size = ABSOLUTE(__end - __bss_start);}
|
||||
}
|
||||
${RELOCATING+___bss_size = SIZEOF(.bss);}
|
||||
.data_chip :
|
||||
{
|
||||
*(.data_chip)
|
||||
|
|
|
@ -8,17 +8,17 @@ ${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
${RELOCATING+PROVIDE(___machtype = 0x0);}
|
||||
${RELOCATING+. = ${TEXT_START_ADDR};}
|
||||
.text :
|
||||
{
|
||||
${RELOCATING+___machtype = ABSOLUTE(0x0);}
|
||||
${RELOCATING+__stext = .;}
|
||||
*(.text)
|
||||
${RELOCATING+___datadata_relocs = .;}
|
||||
${RELOCATING+__etext = .;}
|
||||
${RELOCATING+___text_size = ABSOLUTE(__etext - __stext);}
|
||||
${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
|
||||
}
|
||||
${RELOCATING+___text_size = SIZEOF(.text);}
|
||||
${RELOCATING+. = ${DATA_ALIGNMENT};}
|
||||
.data :
|
||||
{
|
||||
|
@ -26,16 +26,16 @@ SECTIONS
|
|||
${CONSTRUCTING+CONSTRUCTORS}
|
||||
*(.data)
|
||||
${RELOCATING+___a4_init = 0x7ffe;}
|
||||
${RELOCATING+___data_size = ABSOLUTE(__edata - __sdata);}
|
||||
${RELOCATING+___bss_size = ABSOLUTE(0);}
|
||||
${RELOCATING+__edata = .;}
|
||||
}
|
||||
.bss :
|
||||
{
|
||||
${RELOCATING+__bss_start = .;}
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
${RELOCATING+__edata = .;}
|
||||
${RELOCATING+__bss_start = .;}
|
||||
${RELOCATING+__end = ALIGN(4) };
|
||||
${RELOCATING+__end = .;}
|
||||
}
|
||||
${RELOCATING+___data_size = SIZEOF(.data) + SIZEOF(.bss);}
|
||||
${RELOCATING+___bss_size = 0x0;}
|
||||
}
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue