1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-05 19:35:52 +03:00
* sysdeps/powerpc/dl-machine.h (elf_machine_matches_host): Mark
	static inline, not extern inline.
	(elf_machine_dynamic): Likewise.
	(elf_machine_lazy_rel): Likewise.
	(elf_machine_plt_value): Likewise.
	* sysdeps/powerpc/backtrace.c: Include stddef.h to get NULL
	definition.
	Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
This commit is contained in:
Ulrich Drepper
1998-12-11 15:32:09 +00:00
parent 486fa0b7d4
commit c2a329735e
3 changed files with 15 additions and 5 deletions

View File

@@ -1,5 +1,14 @@
1998-12-11 Ulrich Drepper <drepper@cygnus.com> 1998-12-11 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/powerpc/dl-machine.h (elf_machine_matches_host): Mark
static inline, not extern inline.
(elf_machine_dynamic): Likewise.
(elf_machine_lazy_rel): Likewise.
(elf_machine_plt_value): Likewise.
* sysdeps/powerpc/backtrace.c: Include stddef.h to get NULL
definition.
Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
* sysdeps/mips/dl-machine.h (elf_machine_rel): Fixl_addr parameter * sysdeps/mips/dl-machine.h (elf_machine_rel): Fixl_addr parameter
type. Reported by job bogan <job@piquin.uchicago.edu>. type. Reported by job bogan <job@piquin.uchicago.edu>.

View File

@@ -18,6 +18,7 @@
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <execinfo.h> #include <execinfo.h>
#include <stddef.h>
/* This is the stack layout we see with every stack frame. /* This is the stack layout we see with every stack frame.
Note that every routine is required by the ABI to lay out the stack Note that every routine is required by the ABI to lay out the stack

View File

@@ -25,7 +25,7 @@
#include <assert.h> #include <assert.h>
/* Return nonzero iff E_MACHINE is compatible with the running host. */ /* Return nonzero iff E_MACHINE is compatible with the running host. */
extern inline int static inline int
elf_machine_matches_host (Elf32_Half e_machine) elf_machine_matches_host (Elf32_Half e_machine)
{ {
return e_machine == EM_PPC; return e_machine == EM_PPC;
@@ -34,7 +34,7 @@ elf_machine_matches_host (Elf32_Half e_machine)
/* Return the link-time address of _DYNAMIC, stored as /* Return the link-time address of _DYNAMIC, stored as
the first value in the GOT. */ the first value in the GOT. */
extern inline Elf32_Addr static inline Elf32_Addr
elf_machine_dynamic (void) elf_machine_dynamic (void)
{ {
Elf32_Addr *got; Elf32_Addr *got;
@@ -238,7 +238,7 @@ extern int __elf_machine_runtime_setup (struct link_map *map,
int lazy, int profile); int lazy, int profile);
#define elf_machine_runtime_setup __elf_machine_runtime_setup #define elf_machine_runtime_setup __elf_machine_runtime_setup
extern inline void static inline void
elf_machine_lazy_rel (Elf32_Addr l_addr, const Elf32_Rela *reloc) elf_machine_lazy_rel (Elf32_Addr l_addr, const Elf32_Rela *reloc)
{ {
/* elf_machine_runtime_setup handles this. */ /* elf_machine_runtime_setup handles this. */
@@ -252,7 +252,7 @@ extern void __elf_machine_fixup_plt(struct link_map *map,
#define elf_machine_fixup_plt __elf_machine_fixup_plt #define elf_machine_fixup_plt __elf_machine_fixup_plt
/* Return the final value of a plt relocation. */ /* Return the final value of a plt relocation. */
extern inline Elf32_Addr static inline Elf32_Addr
elf_machine_plt_value (struct link_map *map, const Elf32_Rela *reloc, elf_machine_plt_value (struct link_map *map, const Elf32_Rela *reloc,
Elf32_Addr value) Elf32_Addr value)
{ {