forked from Leffmann/vlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ldscript.h
31 lines (25 loc) · 846 Bytes
/
ldscript.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* $VER: vlink ldscript.h V0.13 (02.11.10)
*
* This file is part of vlink, a portable linker for multiple
* object formats.
* Copyright (c) 1997-2010 Frank Wille
*/
struct ScriptFunc {
char *name;
int (*funcptr)(struct GlobalVars *,lword,lword *);
/* returns 0 when result is relocatable and NOT absolute */
};
struct ScriptCmd {
char *name;
uint32_t flags;
void (*cmdptr)(struct GlobalVars *);
};
#define SCMDF_SECDEF 1 /* valid in section definitions only */
#define SCMDF_GLOBAL 2 /* valid everywhere */
#define SCMDF_PAREN 0x2000 /* has arguments in parentheses */
#define SCMDF_SEMIC 0x4000 /* followed by a semicolon (PROVIDE) */
#define SCMDF_IGNORE 0x8000 /* parser flag: ignore when not allowed */
#ifndef LDSCRIPT_C
extern struct ScriptFunc ldFunctions[];
extern struct ScriptCmd ldCommands[];
#endif