AArch64: Prioritise init_have_lse_atomics constructor [PR 105708]

Increase the priority of the init_have_lse_atomics constructor so it runs
before other constructors. This improves chances that rr works when LSE
atomics are supported.

libgcc/
	PR libgcc/105708
	* config/aarch64/lse-init.c: Increase constructor priority.
This commit is contained in:
Wilco Dijkstra 2022-05-25 14:29:03 +01:00 committed by Wilco Dijkstra
parent 761cc32e5a
commit 75c4e4909a

View File

@ -38,7 +38,9 @@ _Bool __aarch64_have_lse_atomics
unsigned long int __getauxval (unsigned long int);
static void __attribute__((constructor))
/* Use a higher priority to ensure it runs before user constructors
and library constructors with priority 100. */
static void __attribute__((constructor (90)))
init_have_lse_atomics (void)
{
unsigned long hwcap = __getauxval (AT_HWCAP);