This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: One-direction NOCROSSREFS check (linker, ld)
I think it works, but with a disadvantage.
If the program is linked as a whole, section B comes immediately after
section A. The loading address of section B is the end of section A.
While section A and B linked separately, because the size of section A
is unknown before linking, the loading address (also --defsym address)
of section B must be determined before linking. That is, the "MEMORY
origin" value of section B link script.
2006/9/23, Dave Korn <dave.korn@artimi.com>:
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....
--
Tzu-Chien Chiu - SMedia Technology Corp.
URL: http://www.csie.nctu.edu.tw/~jwchiu/