Weird error cross-compiling glibc with binutils 2.22 or head
Andreas Schwab
schwab@linux-m68k.org
Fri Feb 3 22:41:00 GMT 2012
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."
More information about the Binutils
mailing list