This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Weird error cross-compiling glibc with binutils 2.22 or head
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: david dot hagood at gmail dot com
- Cc: binutils at sourceware dot org
- Date: Fri, 03 Feb 2012 23:41:00 +0100
- Subject: Re: Weird error cross-compiling glibc with binutils 2.22 or head
- References: <0d51763ebe71ff5ddb7a9c241dce9a10.squirrel@localhost>
david.hagood@gmail.com writes:
> sed > Build/arm-linux-gnueabi/glibc_main/shlib.ldsT \
> -e '/^=========/,/^=========/!d;/^=========/d' \
> -e 's/^.*\.gnu\.hash[ ]*:.*$/ .note.ABI-tag : {
> *(.note.ABI-tag)
> } &/' -e '/^[ ]*\.hash[ ]*:.*$/{h;d;}' -e
> '/DATA_SEGMENT_ALIGN/{H;g}' \
> -e 's/^.*\*(\.dynbss).*$/& \
> PROVIDE(__start___libc_freeres_ptrs = .); \
> *(__libc_freeres_ptrs) \
> PROVIDE(__stop___libc_freeres_ptrs = .);/'\
> -e 's@^.*\*(\.jcr).*$@& \
> PROVIDE(__start__es : {subfreeres = .);\
Here ----------------^
> __libc_subfreeres : { *(__libc_subfreeres) }\
> PROVIDE(__stop___libc_subfreeres = .);\
> PROVIDE(__start___libc_atexit = .);\
> __libc_atexit : { *(__libc_atexit) }\
> PROVIDE(__stop___libc_atexit = .);\
> PROVIDE(__start___libc_thread_subfreeres = .);\
> __libc_thread_subfreeres : { *(__libc_thread_subfreeres) }\
> PROVIDE(__stop___libc_thread_subfreeres = .);\
> /DISCARD/ : { *(.gnu.glibc-stub.*) }@'
> mv -f Build/arm-linux-gnueabi/glibc_main/shlib.ldsT
> Build/arm-linux-gnueabi/glibc_main/shlib.lds
> <snip a buch of items>
> Build/arm-linux-gnueabi/glibc_main/elf/ld.so -lgcc
> ld:Build/arm-linux-gnueabi/glibc_main/shlib.lds:149: syntax error
>
> The error is:
> PROVIDE(__start__es : {subfreeres = .);
> (note the unbalanced { and ))
>
> I have no idea where that is coming from:
See above.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."