|
Packit Service |
97d2fb |
/* i386 specific auxv handling.
|
|
Packit Service |
97d2fb |
Copyright (C) 2007 Red Hat, Inc.
|
|
Packit Service |
97d2fb |
This file is part of elfutils.
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
This file is free software; you can redistribute it and/or modify
|
|
Packit Service |
97d2fb |
it under the terms of either
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
* the GNU Lesser General Public License as published by the Free
|
|
Packit Service |
97d2fb |
Software Foundation; either version 3 of the License, or (at
|
|
Packit Service |
97d2fb |
your option) any later version
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
or
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
* the GNU General Public License as published by the Free
|
|
Packit Service |
97d2fb |
Software Foundation; either version 2 of the License, or (at
|
|
Packit Service |
97d2fb |
your option) any later version
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
or both in parallel, as here.
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
elfutils is distributed in the hope that it will be useful, but
|
|
Packit Service |
97d2fb |
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
97d2fb |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
97d2fb |
General Public License for more details.
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
You should have received copies of the GNU General Public License and
|
|
Packit Service |
97d2fb |
the GNU Lesser General Public License along with this program. If
|
|
Packit Service |
97d2fb |
not, see <http://www.gnu.org/licenses/>. */
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
#ifdef HAVE_CONFIG_H
|
|
Packit Service |
97d2fb |
# include <config.h>
|
|
Packit Service |
97d2fb |
#endif
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
#define BACKEND ppc_
|
|
Packit Service |
97d2fb |
#include "libebl_CPU.h"
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
int
|
|
Packit Service |
97d2fb |
EBLHOOK(auxv_info) (GElf_Xword a_type, const char **name, const char **format)
|
|
Packit Service |
97d2fb |
{
|
|
Packit Service |
97d2fb |
if (a_type != AT_HWCAP)
|
|
Packit Service |
97d2fb |
return 0;
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
*name = "HWCAP";
|
|
Packit Service |
97d2fb |
*format = "b"
|
|
Packit Service |
97d2fb |
"ppcle\0" "truele\0" "3\0" "4\0" "5\0" "6\0" "7\0" "8\0" "9\0"
|
|
Packit Service |
97d2fb |
"power6x\0" "dfp\0" "pa6t\0" "arch_2_05\0"
|
|
Packit Service |
97d2fb |
"ic_snoop\0" "smt\0" "booke\0" "cellbe\0"
|
|
Packit Service |
97d2fb |
"power5+\0" "power5\0" "power4\0" "notb\0"
|
|
Packit Service |
97d2fb |
"efpdouble\0" "efpsingle\0" "spe\0" "ucache\0"
|
|
Packit Service |
97d2fb |
"4xxmac\0" "mmu\0" "fpu\0" "altivec\0"
|
|
Packit Service |
97d2fb |
"ppc601\0" "ppc64\0" "ppc32\0" "\0";
|
|
Packit Service |
97d2fb |
return 1;
|
|
Packit Service |
97d2fb |
}
|
|
Packit Service |
97d2fb |
|
|
Packit Service |
97d2fb |
__typeof (ppc_auxv_info) ppc64_auxv_info
|
|
Packit Service |
97d2fb |
__attribute__ ((alias ("ppc_auxv_info")));
|