From: Mark Wooding Date: Fri, 28 Apr 2023 12:59:28 +0000 (+0100) Subject: base/asm-common.h: Add a macro for setting the types of data symbols. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/6ae7b8549252175fdf8749aed634bd48d3232532 base/asm-common.h: Add a macro for setting the types of data symbols. --- diff --git a/base/asm-common.h b/base/asm-common.h index 3f907b75..83aac636 100644 --- a/base/asm-common.h +++ b/base/asm-common.h @@ -113,6 +113,7 @@ name: // Additional symbol metadata. #define TYPE_FUNC(name) .type name, STT_FUNC +#define TYPE_OBJ(name) .type name, STT_OBJECT #define SIZE_OBJ(name) .size name, . - name #endif @@ -1196,6 +1197,9 @@ name: #ifndef TYPE_FUNC # define TYPE_FUNC(name) #endif +#ifndef TYPE_OBJ +# define TYPE_OBJ(name) +#endif #ifndef SIZE_OBJ # define SIZE_OBJ(name) #endif