X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=object.h;h=22f17bac110ec45f83a847e17fe6e5313a25ce5e;hb=cbc8347d4ffea164ca05b03e4e3be39945be8777;hp=46aef64393359d809c765fc81fbf76d3a5d3746c;hpb=bdbf34766f4d074a5933eb1326fe4ce03d249e10;p=rmac diff --git a/object.h b/object.h index 46aef64..22f17ba 100644 --- a/object.h +++ b/object.h @@ -1,7 +1,7 @@ // -// RMAC - Reboot's Macro Assembler for all Atari computers +// RMAC - Renamed Macro Assembler for all Atari computers // OBJECT.H - Writing Object Files -// Copyright (C) 199x Landon Dyer, 2011-2019 Reboot and Friends +// Copyright (C) 199x Landon Dyer, 2011-2021 Reboot and Friends // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986 // Source utilised with the kind permission of Landon Dyer // @@ -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[];