This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: One-direction NOCROSSREFS check (linker, ld)
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Tzu-Chien Chiu'" <tzuchien dot chiu at gmail dot com>, <binutils at sourceware dot org>
- Date: Fri, 22 Sep 2006 17:32:22 +0100
- Subject: RE: One-direction NOCROSSREFS check (linker, ld)
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....