This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: arm-elf-ld: undefined reference to 'xxx'
- From: "Alexandre Pereira Nunes" <alexandre dot nunes at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 19 Jan 2009 14:22:20 -0200
- Subject: Re: arm-elf-ld: undefined reference to 'xxx'
- References: <000001c97a34$d3267210$79735630$@com> <3b6faf240901190820i4925b3dfk8c438eabe618fc62@mail.gmail.com>
> [cut] ...
> But if I exchange the place of obj1.o with obj2.o, then the command is
> successful without any error.
>
> I want to solve without exchanging objs. (Bcs, I have too many objs.)
> If arm-elf-ld has an option related to this problem, it will be possible.
>
> Is there the way to solve it?
I don't think this is the right mailing list to ask, but anyway, if
those objects where grouped into an archive (via arm-elf-ar), you
could try the --start-group and --end-group ld options. But AFAIK that
doesn't work with object files.
The object order dependency is a core feature in the way most linkers
works, so generally you can't porbably cheat on it.
Good luck,
Alexandre