Prototype different functions.

This commit is contained in:
mycroft 2002-09-12 20:24:03 +00:00
parent 547bc13b97
commit de4565ee93
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mdreloc.c,v 1.19 2002/09/12 20:21:01 mycroft Exp $ */ /* $NetBSD: mdreloc.c,v 1.20 2002/09/12 20:24:03 mycroft Exp $ */
/*- /*-
* Copyright (c) 2000 Eduardo Horvath. * Copyright (c) 2000 Eduardo Horvath.
@ -205,7 +205,8 @@ static const long reloc_target_bitmask[] = {
#define HIVAL(v, s) (((v) >> (s)) & 0x003fffff) #define HIVAL(v, s) (((v) >> (s)) & 0x003fffff)
#define LOVAL(v) ((v) & 0x000003ff) #define LOVAL(v) ((v) & 0x000003ff)
void _rtld_bind_start(void); void _rtld_bind_start_0(long, long);
void _rtld_bind_start_1(long, long);
void _rtld_relocate_nonplt_self(Elf_Dyn *, Elf_Addr); void _rtld_relocate_nonplt_self(Elf_Dyn *, Elf_Addr);
int int
@ -502,8 +503,6 @@ _rtld_setup_pltgot(const Obj_Entry *obj)
*/ */
{ {
Elf_Word *entry = (Elf_Word *)obj->pltgot; Elf_Word *entry = (Elf_Word *)obj->pltgot;
extern void _rtld_bind_start_0 __P((long, long));
extern void _rtld_bind_start_1 __P((long, long));
/* Install in entries 0 and 1 */ /* Install in entries 0 and 1 */
_rtld_install_plt(&entry[0], (Elf_Addr) &_rtld_bind_start_0); _rtld_install_plt(&entry[0], (Elf_Addr) &_rtld_bind_start_0);