X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=object.h;fp=object.h;h=fe5997c745e76fa3dc31edcab1c4311e7af9a160;hp=f8714577dfae5fd65a6b906ed2c4ad6f4a640ff9;hb=ceab9325bdbffccecf61ba26387ed03f4ab0591e;hpb=821279dcb7b5d069d175767edcd413b833b0cae3 diff --git a/object.h b/object.h index f871457..fe5997c 100644 --- a/object.h +++ b/object.h @@ -33,6 +33,14 @@ enum ELFSectionNames ES_SYMTAB, ES_STRTAB }; +// +// ELF special section indices (field st_shndx) +// Lifted from glibc (https://sourceware.org/git/?p=glibc.git;a=blob;f=elf/elf.h) +// +#define SHN_UNDEF 0 /* Undefined section */ +#define SHN_ABS 0xFFF1 /* Associated symbol is absolute */ +#define SHN_COMMON 0xFFF2 /* Associated symbol is common */ + // Exported variables. extern uint8_t * objImage; extern int elfHdrNum[];