This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

nosys.specs in newlib 2.2.0


 Hello,

I am trying to use the nosys.specs, but they appear to be adding a library group
instead of replacing the default. This apparently means that some symbols arent
resolved (_kill could not be resolved in one of my projects), I really cant
follow why.

The target "link_gcc_c_sequence" is nothing gcc understands and it should be lib
instead. I suppose the simple solution of renaming it wouldnt work together with
nano.specs.

I get the following output for these commands (test.c consists of an empty main
function):

arm-none-eabi-gcc -O2 -v test.c
/prefix/libexec/gcc/arm-none-eabi/4.8.4/collect2 -X
/prefix/lib/gcc/arm-none-eabi/4.8.4/crti.o
/prefix/lib/gcc/arm-none-eabi/4.8.4/crtbegin.o
/prefix/lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/crt0.o
-L/prefix/lib/gcc/arm-none-eabi/4.8.4
-L/prefix/lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib
/tmp/cclh9vw4.o
--start-group -lgcc -lc --end-group
/prefix/lib/gcc/arm-none-eabi/4.8.4/crtend.o
/prefix/lib/gcc/arm-none-eabi/4.8.4/crtn.o

arm-none-eabi-gcc -O2 -v --specs=nosys.specs test.c
/prefix/libexec/gcc/arm-none-eabi/4.8.4/collect2 -X
/prefix/lib/gcc/arm-none-eabi/4.8.4/crti.o
/prefix/lib/gcc/arm-none-eabi/4.8.4/crtbegin.o
/prefix/lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/crt0.o
-L/prefix/lib/gcc/arm-none-eabi/4.8.4
-L/prefix/lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib
/tmp/ccmPSRKU.o
--start-group -lgcc -lc --end-group --start-group -lgcc -lc -lnosys --end-group
/prefix/lib/gcc/arm-none-eabi/4.8.4/crtend.o
/prefix/lib/gcc/arm-none-eabi/4.8.4/crtn.o

arm-none-eabi-gcc -O2 -g -v --specs=nosys.specs test.c
/prefix/libexec/gcc/arm-none-eabi/4.8.4/collect2 -X
/prefix/lib/gcc/arm-none-eabi/4.8.4/crti.o
/prefix/lib/gcc/arm-none-eabi/4.8.4/crtbegin.o
/prefix/lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/crt0.o
-L/prefix/lib/gcc/arm-none-eabi/4.8.4
-L/prefix/lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib
/tmp/ccVjsYCn.o
--start-group -lgcc -lg -lc --end-group --start-group -lgcc -lc -lnosys
--end-group
/prefix/lib/gcc/arm-none-eabi/4.8.4/crtend.o
/prefix/lib/gcc/arm-none-eabi/4.8.4/crtn.o


Kind Regards,
Norbert Lange


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]