This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: nosys.specs in newlib 2.2.0
- From: "Bin.Cheng" <amker dot cheng at gmail dot com>
- To: "lange at chello dot at" <lange at chello dot at>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Thu, 29 Jan 2015 10:13:21 +0800
- Subject: Re: nosys.specs in newlib 2.2.0
- Authentication-results: sourceware.org; auth=none
- References: <1858270668 dot 2066289 dot 1422384387213 dot open-xchange at upcmail dot upc dot at>
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