This is the mail archive of the binutils@sourceware.org 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]

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....


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