]> Shamusworld >> Repos - rmac/blobdiff - object.h
Version bump for last commit. :-)
[rmac] / object.h
index f3e79d23603ed147afbf9cd4fb2af1490e8f1b4b..84d2d601c719aa46c8210894aae770c0478b21ce 100644 (file)
--- a/object.h
+++ b/object.h
@@ -1,7 +1,7 @@
 //
-// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
+// RMAC - Renamed Macro Assembler for all Atari computers
 // OBJECT.H - Writing Object Files
-// Copyright (C) 199x Landon Dyer, 2017 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2022 Reboot and Friends
 // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
 // Source utilised with the kind permission of Landon Dyer
 //
@@ -9,7 +9,7 @@
 #ifndef __OBJECT_H__
 #define __OBJECT_H__
 
-#include <rmac.h>
+#include "rmac.h"
 
 #define BSDHDRSIZE  0x20       // Size of BSD header
 #define HDRSIZE     0x1C       // Size of Alcyon header
@@ -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[];