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]

One-direction NOCROSSREFS check (linker, ld)


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?

NOCROSSREFS checks cross references, but I only want to check "one direction."

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.

There are a lot of symbol in both section A and B. It's infeasible to
check them manually. At present the only approach I come up with is to
use a script to check disassembled code. I don't think it's robust.

--
Tzu-Chien Chiu - SMedia Technology Corp.
URL: http://www.csie.nctu.edu.tw/~jwchiu/


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