ld: How to padd output file to a specified size with zeros?
Posted: Wed Mar 18, 2009 2:50 pm
Hi,
How can I tell my linker i586-elf-ld to fill the output file to a specified size with zeroes?
There's my linker script:
TIA
Sebihepp
How can I tell my linker i586-elf-ld to fill the output file to a specified size with zeroes?
There's my linker script:
Code: Select all
ENTRY(start)
INPUT(bootloader.bin boot.bin)
OUTPUT(reserved.bin)
OUTPUT_FORMAT(binary)
MEMORY
{
FLOPPY : ORIGIN = 0x10000, LENGTH = 1474560-512
}
SECTIONS
{
.text :
{
*(.text)
*(.data)
*(.bss)
} >FLOPPY =0x00
}
Sebihepp