This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
One-direction NOCROSSREFS check (linker, ld)
- From: "Tzu-Chien Chiu" <tzuchien dot chiu at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 22 Sep 2006 23:21:16 +0800
- Subject: 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/