]> Shamusworld >> Repos - rmac/blobdiff - object.h
Fix for bug #170 - ELF output module exports global,defined symbols as undefined
[rmac] / object.h
index f8714577dfae5fd65a6b906ed2c4ad6f4a640ff9..fe5997c745e76fa3dc31edcab1c4311e7af9a160 100644 (file)
--- 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[];