This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Dear All,This is because --nmagic disable linking against shared libraries (but not mentioned in the ld manual). GCC doesn't know that and still passes -lgcc_s to ld. But libgcc_s.a cannot be found. Adding -static when linking should work for you.
I wanted to turn off page alignment for sections in order to reduce the output ELF image size, but got errors: mips-linux-gnu-gcc -Os -mips32r2 -EL -pipe -W -c myapp.c -o myapp.o mips-linux-gnu-gcc -Wl,--nmagic -EL -o myapp.app myapp.o /opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.3/../../../../mips-linux-gnu/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status make: *** [myapp.app] Error 1
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |