ld doesn't warn about undefined memory region name
Galit Heller
Galit.Heller@nsc.com
Tue Oct 21 11:00:00 GMT 2003
Hi,
If an output section is directed (via '>') into a memory region which
wasn't defined in the MEMORY statement, e.g. the linker script has:
MEMORY {
rom : ORIGIN = oxfff0, LENGTH = 0x1000
ram : ORIGIN = 0x1fff0, LENGTH = 0x1000
}
SECTIONS {
.text : { *(.text) } > not_rom_nor_ram
}
Then ld issues no warning or error. Instead, the output section address
is set to 0.
Is this the intended behavior ?
Regards,
Galit.
More information about the Binutils
mailing list