mirror of
https://github.com/siemens-mobile-hacks/vlink.git
synced 2026-11-25 18:37:14 +00:00
31 lines
846 B
C
31 lines
846 B
C
/* $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
|