54af88a005
provided by Andrey Petrov in PR 24658 Libelf - ELF object file access library.
26 lines
663 B
Text
26 lines
663 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2004/03/04 11:28:00 recht Exp $
|
|
|
|
--- lib/sys_elf.h.in.orig 2004-02-26 15:02:52.000000000 -0800
|
|
+++ lib/sys_elf.h.in 2004-02-24 17:12:43.000000000 -0800
|
|
@@ -85,6 +85,10 @@
|
|
# define ELF32_FSZ_WORD 4
|
|
# endif /* ELF32_FSZ_ADDR */
|
|
|
|
+# ifndef EI_NIDENT
|
|
+# define EI_NIDENT ELF_NIDENT
|
|
+# endif /* EI_NIDENT */
|
|
+
|
|
# ifndef STN_UNDEF
|
|
# define STN_UNDEF 0
|
|
# endif /* STN_UNDEF */
|
|
@@ -101,6 +105,10 @@
|
|
# define ELF64_FSZ_XWORD 8
|
|
# endif /* ELF64_FSZ_ADDR */
|
|
|
|
+# ifndef ELF64_FSZ_SXWORD
|
|
+# define ELF64_FSZ_SXWORD 8
|
|
+# endif
|
|
+
|
|
# ifndef ELF64_ST_BIND
|
|
# define ELF64_ST_BIND(i) ((i)>>4)
|
|
# define ELF64_ST_TYPE(i) ((i)&0xf)
|