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:
parent
761cc32e5a
commit
75c4e4909a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user