objdump.h - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
objdump.h (810B)
---
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 void coff32syms(Obj *);
34 void coff32scns(Obj *);
35 void coff32fhdr(Obj *, unsigned long long *, Flags *);
36 int coff32hasrelloc(Obj *, Section *);
37
38 /* elf64.c */
39 void elfsyms(Obj *);
40 void elfscns(Obj *);
41 void elffhdr(Obj *, unsigned long long *, Flags *);
42 int elfhasrelloc(Obj *, Section *);
43
44 /* main.c */
45 void error(char *, ...);
46 void setflag(Flags *, int, int);
47 void printflags(Flags *);
48 int selected(char *);
49
50 /* globals */
51 extern int pflag;