This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Is it ignoring crt0.o in your libsys.a because you have "-nostartfiles" on the command line? What happens if you rename that object to something other than a startup file name? On 4/11/06, Apostol Terziev <stinky@inray.spnet.net> wrote: > I'm sorry, I've cut and pasted the compiler output, not the linker one. > Here is what the linker says: > > arm-elf-gcc C:\Progra~1\ARMor\eclipse\gcc\arm-elf\lib\libsys.a > ./src/main.o -lsys -nostartfiles -nodefaultlibs -nostdlib -static > -LC:\cygwin\home\Administrator\soft\arm-elf\lib > -LC:\cygwin\home\Administrator\soft\arm-elf\lib -LC:\Program > Files\ARMor\eclipse\gcc\lib\gcc\arm-elf\4.0.2 -Xlinker -Tlpc210x.ld > -Xlinker -static -otest.elf > lpc210x.ld:299: undefined symbol `endless_loop' referenced in expression > collect2: ld returned 1 exit status > make: *** [test.elf] Error 1 > make: Target `all' not remade because of errors. > > > Dimitry Andric wrote: > > >Apostol Terziev wrote: > > > > > >>Here is what happens when I try to link to libsys.a: > >> > >>arm-elf-gcc ./src/main.o -nostartfiles -nodefaultlibs -nostdlib -static > >>-LC:\cygwin\home\Administrator\soft\arm-elf\lib > >>-LC:\cygwin\home\Administrator\soft\arm-elf\lib -LC:\Program > >>Files\ARMor\eclipse\gcc\lib\gcc\arm-elf\4.0.2 -Xlinker -Tlpc2100.ld > >>-Xlinker -static -otest.elf > >>lpc210x.ld:299: undefined symbol `endless_loop' referenced in expression > >> > >> > > > >I don't see -lsys or libsys.a anywhere in your command line, is that > >correct? :) > -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |