One-direction NOCROSSREFS check (linker, ld)
Dave Korn
dave.korn@artimi.com
Sat Sep 23 01:00:00 GMT 2006
On 22 September 2006 16:21, Tzu-Chien Chiu wrote:
> Hello. This is LD link script question.
>
> How make the linker to issue an error about the symbols in section B
> is referenced in section A, but *without* an error if the symbols in
> section A is referenced in section B?
> It's an embedded system software. Section A contains a boot loader and
> an SD card driver. The section A loads section B from the SD card, and
> jump to an entry function in section B after the entire section B is
> loaded. The entry function in section B is the only symbol can be
> referenced from section A.
How about linking each one separately, and supplying the address of the
entry function in B on the commandline of the linker commandline for section
A, using "--defsym"? If A fails to link, you know you have a problem....
cheers,
DaveK
--
Can't think of a witty .sigline today....
More information about the Binutils
mailing list