alpha: Add ldsodefs.h and tst-audit.h.

This commit is contained in:
Richard Henderson 2012-02-08 17:00:52 -08:00
parent dd0c700a97
commit 8c7adf8e79
3 changed files with 69 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2012-02-08 Richard Henderson <rth@twiddle.net>
* sysdeps/alpha/ldsodefs.h: New file.
* sysdeps/alpha/tst-audit.h: New file.
* sysdeps/alpha/tls-macros.h: New file.
* sysdeps/unix/sysv/linux/alpha/getitimer.S: Don't check HAVE_ELF.

43
sysdeps/alpha/ldsodefs.h Normal file
View File

@ -0,0 +1,43 @@
/* Run-time dynamic linker data structures for loaded ELF shared objects.
Copyright (C) 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#ifndef __LDSODEFS_H
#include <elf.h>
struct La_alpha_regs;
struct La_alpha_retval;
#define ARCH_PLTENTER_MEMBERS \
Elf64_Addr (*alpha_gnu_pltenter) (Elf64_Sym *, unsigned int, \
uintptr_t *, uintptr_t *, \
const struct La_alpha_regs *, \
unsigned int *, const char *name, \
long int *framesizep);
#define ARCH_PLTEXIT_MEMBERS \
unsigned int (*alpha_gnu_pltexit) (Elf64_Sym *, unsigned int, \
uintptr_t *, uintptr_t *, \
const struct La_alpha_regs *, \
struct La_alpha_retval *, \
const char *);
#include_next <ldsodefs.h>
#endif

24
sysdeps/alpha/tst-audit.h Normal file
View File

@ -0,0 +1,24 @@
/* Definitions for testing PLT entry/exit auditing. Alpha version.
Copyright (C) 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#define pltenter la_alpha_gnu_pltenter
#define pltexit la_alpha_gnu_pltexit
#define La_regs La_alpha_regs
#define La_retval La_alpha_retval