File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,15 @@ typedef struct Reloc {
55
55
int32_t symoff ; // offset relative to sym
56
56
} Reloc ;
57
57
58
- #define RELOC_KIND_NONE 0 // no relocation, should not produce an entry
59
- #define RELOC_KIND_DEBUG 1 // not a real relocation, a debug entry
60
- #define RELOC_KIND_I32 2 // add a symbol to a 32 bit value
61
- #define RELOC_KIND_AUGS 3 // relocation for AUGS
62
- #define RELOC_KIND_AUGD 4 // relocation for AUGD
63
- #define RELOC_KIND_FPTR16 5 // relocation for function pointer (16 bits)
64
- #define RELOC_KIND_FPTR12 6 // relocation for function pointer (12 bits)
58
+ enum Reloc_Kind {
59
+ RELOC_KIND_NONE = 0 , // no relocation, should not produce an entry
60
+ RELOC_KIND_DEBUG = 1 , // not a real relocation, a debug entry
61
+ RELOC_KIND_I32 = 2 , // add a symbol to a 32 bit value
62
+ RELOC_KIND_AUGS = 3 , // relocation for AUGS
63
+ RELOC_KIND_AUGD = 4 , // relocation for AUGD
64
+ RELOC_KIND_FPTR16 = 5 , // relocation for function pointer (16 bits)
65
+ RELOC_KIND_FPTR12 = 6 , // relocation for function pointer (12 bits)
66
+ };
65
67
66
68
/* find the backend name for a symbol */
67
69
const char * BackendNameForSymbol (Symbol * sym );
You can’t perform that action at this time.
0 commit comments