objdump.h - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
objdump.h (894B)
---
1 typedef struct flags Flags;
2
3 enum file_flags {
4 HAS_RELOC,
5 EXEC_P,
6 HAS_LINENO,
7 HAS_DEBUG,
8 HAS_SYMS,
9 HAS_LOCALS,
10 DYNAMIC,
11 NR_FILE_FLAGS,
12 };
13
14 enum sec_flags {
15 SEC_HAS_CONTENTS,
16 SEC_ALLOC,
17 SEC_LOAD,
18 SEC_RELOC,
19 SEC_READONLY,
20 SEC_CODE,
21 SEC_DATA,
22 SEC_DEBUGGING,
23 NR_SEC_FLAGS,
24 };
25
26 struct flags {
27 int nr;
28 unsigned long flags;
29 char *text[];
30 };
31
32 /* coff32.c */
33 extern void coff32syms(Obj *);
34 extern void coff32scns(Obj *);
35 extern void coff32fhdr(Obj *, unsigned long long *, Flags *);
36 extern int coff32hasrelloc(Obj *, Section *);
37
38 /* elf64.c */
39 extern void elfsyms(Obj *);
40 extern void elfscns(Obj *);
41 extern void elffhdr(Obj *, unsigned long long *, Flags *);
42 extern int elfhasrelloc(Obj *, Section *);
43
44 /* main.c */
45 extern void error(char *, ...);
46 extern void setflag(Flags *, int, int);
47 extern void printflags(Flags *);
48 extern int selected(char *);
49
50 /* globals */
51 extern int pflag;