Hello Waldemar,

seems the third assembler function in this file, thumb_cmpxchg, is then also completely
unused. I've done some more searches and also current llvm does not seem to depend
on these, so I'll send in a removal request for the complete file if nobody else objects.

best regards,

Florian La Roche

-----Waldemar Brodkorb <wbx@openasdk.org> schrieb: -----
An: Florian La Roche <F.LaRoche@pilz.de>
Von: Waldemar Brodkorb <wbx@openasdk.org>
Datum: 02.06.2018 07:59
Kopie: Waldemar Brodkorb <wbx@uclibc-ng.org>, buildroot@busybox.net, devel@uclibc-ng.org
Betreff: Re: [uclibc-ng-devel] thumb_swp/thumb_swpb

Hi Florian,
Florian La Roche wrote,

> Hello Waldemar Brodkorb,
> seems this is triggered if gcc (also with older versions) compiles for
> coretex-a53
> if thumb-mode is enabled. (So this would trigger if e.g. raspberrypi3_defconfig
> gets thumb mode enabled or if you change vexpress_defconfig to compile for
> a53.)
> The error output from gcc is:
> AS ldso/ldso/arm/thumb_atomics.oS
> ldso/ldso/arm/thumb_atomics.S: Assembler messages:
> ldso/ldso/arm/thumb_atomics.S:49: Error: swp{b} use is obsoleted for ARMv8 and
> later
> ldso/ldso/arm/thumb_atomics.S:55: Error: swp{b} use is obsoleted for ARMv8 and
> later
> Makerules:373: recipe for target 'ldso/ldso/arm/thumb_atomics.oS' failed
> Do you know which software depends on this spcial function to exist in
> uclibc-ng?

I got some time to search through the git history log and I believe
the two functions where just imported when TLS support for ARM was
added from glibc to uClibc in 2009.
The functions are not used internally in ld.so and I furthermore
think they are not used at all.
As both functions marked hidden and uses double underscore as
prefix, they can't be used in a public API by someone else.

Can you sent a patch including the removal of the comment in front

Thanks in advance

Geschäftsführung: Susanne Kunschert, Thomas Pilz
Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht Stuttgart
Umsatzsteuer: ID-Nr. DE 145 355 773, WEEE-Reg.-Nr. DE 71636849
This email is intended solely for the use of the named address(es). Any unauthorised disclosure, copying or distribution of these confidential information contained therein, or the taking of any action based on it, is prohibited. The sender disclaims any liability for the integrity of this email. Legally binding declarations must be in written form.
Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt, bevor Sie diese E-Mail drucken.
We do care about the environment! - Please consider the environment before printing this e-mail.