This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]