[PATCH] PR gas/21661: Check unsupported .symver with common symbol
Renlin Li
renlin.li@foss.arm.com
Tue Jun 27 16:54:00 GMT 2017
Hi H.J.,
On 27/06/17 17:24, H.J. Lu wrote:
> 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
I missed the context. The issue is resolved with an updated glibc.
Thanks!
Renlin
>
More information about the Binutils
mailing list