mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-27 10:00:17 -06:00
e37fbbd429
This needs to be done in the ldscripts.
57 lines
956 B
Plaintext
57 lines
956 B
Plaintext
OUTPUT_FORMAT("elf32-i386");
|
|
OUTPUT_ARCH(i386);
|
|
|
|
ENTRY(startup32);
|
|
SECTIONS {
|
|
. = 0;
|
|
.text : {
|
|
_start = .;
|
|
*(.text)
|
|
*(.text.*)
|
|
*(.plt)
|
|
_etext = . ;
|
|
} = 0x9090
|
|
.rodata : {
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
}
|
|
.dynsym : { *(.dynsym) }
|
|
.dynstr : { *(.dynstr) }
|
|
.hash : { *(.hash) }
|
|
.gnu.hash : { *(.gnu.hash) }
|
|
.dynamic : { *(.dynamic) }
|
|
|
|
.rel.text : { *(.rel.text .rel.text.*) }
|
|
.rel.rodata : { *(.rel.rodata .rel.rodata.*) }
|
|
.rel.data : { *(.rel.data .rel.data.*) }
|
|
.rel.got : { *(.rel.got .rel.got.*) }
|
|
.rel.plt : { *(.rel.plt .rel.plt.*) }
|
|
|
|
. = ALIGN(4);
|
|
.data : {
|
|
_data = .;
|
|
*(.data)
|
|
*(.data.*)
|
|
}
|
|
.got : {
|
|
*(.got.plt)
|
|
*(.got)
|
|
_edata = . ;
|
|
}
|
|
. = ALIGN(4);
|
|
.bss : {
|
|
_bss = .;
|
|
*(.dynbss)
|
|
*(.bss)
|
|
*(.bss.*)
|
|
*(COMMON)
|
|
. = ALIGN(16);
|
|
_stacks = .;
|
|
*(.stacks)
|
|
/* _end must be at least 256 byte aligned */
|
|
. = ALIGN(256);
|
|
_end = .;
|
|
}
|
|
/DISCARD/ : { *(*) }
|
|
}
|