This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] PR gas/21661: Check unsupported .symver with common symbol
On Tue, Jun 27, 2017 at 9:03 AM, Renlin Li <renlin.li@foss.arm.com> wrote:
> Hi H.J.,
>
> This patch breaks aarch64/arm linux toolchain in cross build environment.
>
> I have got the following error message:
>
> /tmpdir/ccQfHyoF.s: Assembler messages:
> /tmpdir/ccQfHyoF.s: Error: `loc1@GLIBC_2.4' can't be versioned to common
> symbol 'loc1'
> /tmpdir/ccQfHyoF.s: Error: `loc2@GLIBC_2.4' can't be versioned to common
> symbol 'loc2'
> /tmpdir/ccQfHyoF.s: Error: `locs@GLIBC_2.4' can't be versioned to common
> symbol 'locs'
> make[2]: *** [/tmpdir/build-arm-none-linux-gnueabi/obj/glibc/misc/regexp.os]
> Error 1
>
> in glibc, I saw the following code in glibc/misc/regexp.c which generate
> .symver directive for each variable.
>
> compat_symbol (libc, loc1, loc1, GLIBC_2_0);
> compat_symbol (libc, loc2, loc2, GLIBC_2_0);
> compat_symbol (libc, locs, locs, GLIBC_2_0);
Your glibc needs fix. See:
https://sourceware.org/bugzilla/show_bug.cgi?id=21666
--
H.J.