This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ld doesn't warn about undefined memory region name
- From: "Galit Heller" <Galit dot Heller at nsc dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 21 Oct 2003 12:08:29 +0200
- Subject: ld doesn't warn about undefined memory region name
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.