nosys.specs in newlib 2.2.0

Bin.Cheng amker.cheng@gmail.com
Thu Jan 29 10:55:00 GMT 2015


On Wed, Jan 28, 2015 at 2:46 AM, lange@chello.at <lange@chello.at> wrote:
>  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
>
>
Hi lange,
Sorry for the inconvenience, indeed I made that change for nano.specs.
It's been sometime since I touched specs, so I don't yet understand
the problem here.  Do you mean the "-lg" added in the last command?
It would be very helpful if I can have a simple case for this.
I will find some time to play with nano.specs later.

Thanks,
bin



More information about the Newlib mailing list