1 /* -*- mode: C; c-basic-offset: 3; -*- */
3 /*--------------------------------------------------------------------*/
4 /*--- Supplemental functions for libgcc normally provided by glibc ---*/
5 /*--------------------------------------------------------------------*/
8 This file is part of Valgrind, a dynamic binary instrumentation
11 Copyright (C) 2020 Mark Wielaard
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation; either version 2 of the
17 License, or (at your option) any later version.
19 This program is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 General Public License for more details.
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, see <http://www.gnu.org/licenses/>.
27 The GNU General Public License is contained in the file COPYING.
31 #include "pub_core_basics.h"
32 #include "pub_core_clientstate.h"
34 /*====================================================================*/
35 /*=== arm64 libgcc support function for init_have_lse_atomics ===*/
36 /*====================================================================*/
38 #if defined(VGP_arm64_linux)
49 unsigned long int __getauxval (unsigned long int type
);
50 unsigned long int __getauxval (unsigned long int type
)
53 for (p
= (struct auxv
*) VG_(client_auxv
);
54 p
!= NULL
&& p
->a_type
!= AT_NULL
;
56 if (p
->a_type
== type
)
63 #if defined(VGO_solaris)
64 /* At least on Solaris 11.3 ar does not like
66 int some_symbol_to_keep_ar_happy
;