From b1f11361752e71ad3bf6445bc2ba516958fa17ad Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 30 Mar 1995 10:00:08 +0000 Subject: Thu Mar 30 01:38:00 1995 Roland McGrath * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though both are zero). * elf/dlfcn.h: New file. --- elf/elf.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'elf/elf.h') diff --git a/elf/elf.h b/elf/elf.h index b5a3bafa62..40c0cd8aab 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -188,9 +188,9 @@ typedef struct Elf32_Half st_shndx; /* Section index */ } Elf32_Sym; -/* Special symbol index. */ +/* Special section index. */ -#define SHN_UNDEF 0 /* Undefined symbol */ +#define SHN_UNDEF 0 /* No section, undefined symbol. */ /* How to extract and insert information held in the st_info field. */ @@ -216,6 +216,14 @@ typedef struct #define STT_LOPROC 13 /* Start of processor-specific */ #define STT_HIPROC 15 /* End of processor-specific */ + +/* Symbol table indices are found in the hash buckets and chain table + of a symbol hash table section. This special index value indicates + the end of a chain, meaning no further symbols are found in that bucket. */ + +#define STN_UNDEF 0 /* End of a chain. */ + + /* Relocation table entry without addend (in section of type SHT_REL). */ typedef struct -- cgit v1.2.3-65-gdbad