This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Resolve symbols for object files in link script
- From: Ian Lance Taylor <iant at google dot com>
- To: "Tzu-Chien Chiu" <tzuchien dot chiu at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: 03 Oct 2006 21:47:53 -0700
- Subject: Re: Resolve symbols for object files in link script
- References: <4d77c5f20610032052h22cccc90o81f1e154f582aeee@mail.gmail.com>
"Tzu-Chien Chiu" <tzuchien.chiu@gmail.com> writes:
> It seems to me that the order LD resolves symbols is:
>
> (1) the object files listed in the command line
> (2) the object files listed in the link script
Actually the object files listed in the link script are opened at the
point at which the link script appears in the command line. And you
can have more than one linker script listing files to open, although
you can only have one SECTIONS command. I'm not sure how much that
helps in your case, just thought I give the correct answer.
Ian