Undo last change. While these macros are defined in exec_elf.h, they are

enclosed by `#ifdef _KERNEL'.
This commit is contained in:
hannken 1999-10-22 10:10:36 +00:00
parent 8c73075593
commit f991f0978c
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nlist_elf32.c,v 1.16 1999/10/21 21:12:37 erh Exp $ */
/* $NetBSD: nlist_elf32.c,v 1.17 1999/10/22 10:10:36 hannken Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@ -56,6 +56,12 @@
#if (defined(NLIST_ELF32) && (ELFSIZE == 32)) || \
(defined(NLIST_ELF64) && (ELFSIZE == 64))
#define CONCAT(x,y) __CONCAT(x,y)
#define ELFNAME(x) CONCAT(elf,CONCAT(ELFSIZE,CONCAT(_,x)))
#define ELFNAME2(x,y) CONCAT(x,CONCAT(_elf,CONCAT(ELFSIZE,CONCAT(_,y))))
#define ELFNAMEEND(x) CONCAT(x,CONCAT(_elf,ELFSIZE))
#define ELFDEFNNAME(x) CONCAT(ELF,CONCAT(ELFSIZE,CONCAT(_,x)))
/* No need to check for off < 0 because it is unsigned */
#define check(off, size) (off + size > mappedsize)
#define BAD goto out