> [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