#if defined -> #ifdef
This commit is contained in:
parent
15e6ca78da
commit
305b0ffce5
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: headers.c,v 1.13 2002/09/13 13:28:43 mycroft Exp $ */
|
||||
/* $NetBSD: headers.c,v 1.14 2002/09/25 06:43:46 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 John D. Polstra.
|
||||
@ -194,7 +194,7 @@ _rtld_digest_dynamic(obj)
|
||||
#endif
|
||||
break;
|
||||
|
||||
#if defined(__mips__)
|
||||
#ifdef __mips__
|
||||
case DT_MIPS_LOCAL_GOTNO:
|
||||
obj->local_gotno = dynp->d_un.d_val;
|
||||
break;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rtld.c,v 1.76 2002/09/24 20:23:11 mycroft Exp $ */
|
||||
/* $NetBSD: rtld.c,v 1.77 2002/09/25 06:43:46 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 John D. Polstra.
|
||||
@ -174,7 +174,7 @@ _rtld_init(mapbase, relocbase)
|
||||
|
||||
assert(objself.needed == NULL);
|
||||
|
||||
#if !defined(__mips__)
|
||||
#ifndef __mips__
|
||||
/* no relocation for mips/i386 */
|
||||
assert(!objself.textrel);
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rtld.h,v 1.57 2002/09/24 20:23:12 mycroft Exp $ */
|
||||
/* $NetBSD: rtld.h,v 1.58 2002/09/25 06:43:46 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 John D. Polstra.
|
||||
@ -149,7 +149,7 @@ typedef struct Struct_Obj_Entry {
|
||||
const Elf_Sym *symtab; /* Symbol table */
|
||||
const char *strtab; /* String table */
|
||||
unsigned long strsize; /* Size in bytes of string table */
|
||||
#if defined(__mips__)
|
||||
#ifdef __mips__
|
||||
Elf_Word local_gotno; /* Number of local GOT entries */
|
||||
Elf_Word symtabno; /* Number of dynamic symbols */
|
||||
Elf_Word gotsym; /* First dynamic symbol in GOT */
|
||||
|
Loading…
Reference in New Issue
Block a user