From 95b9a477b6743004e0e9bf728b25bf63d2908777 Mon Sep 17 00:00:00 2001 From: Manuel Simoni Date: Sat, 27 Feb 2010 17:37:59 +0100 Subject: weak function symbols --- tcc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 0170f11..21cce75 100644 --- a/tcc.h +++ b/tcc.h @@ -272,7 +272,8 @@ typedef struct AttributeDef { func_import : 1, func_args : 5, mode : 4, - fill : 12; + weak : 1, + fill : 11; struct Section *section; } AttributeDef; @@ -283,6 +284,7 @@ typedef struct AttributeDef { #define FUNC_ARGS(r) (((AttributeDef*)&(r))->func_args) #define FUNC_ALIGN(r) (((AttributeDef*)&(r))->aligned) #define FUNC_PACKED(r) (((AttributeDef*)&(r))->packed) +#define FUNC_WEAK(r) (((AttributeDef*)&(r))->weak) #define ATTR_MODE(r) (((AttributeDef*)&(r))->mode) #define INT_ATTR(ad) (*(int*)(ad)) -- cgit v1.3.1