diff options
author | Jan Janssen <medhefgo@web.de> | 2021-12-22 01:33:10 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-22 12:14:08 +0900 |
commit | a3aff1c47f61da74671fcbf9bb39fc51a461e79e (patch) | |
tree | a5e8a3e2631be9d07d6c591d68a7a4ed361028c9 /src/fundamental | |
parent | 8470a16d6f95312019f2f48de3c4e2b58910eae3 (diff) | |
download | systemd-a3aff1c47f61da74671fcbf9bb39fc51a461e79e.tar.gz |
test,static-destruct: Use retain attribute to prevent linker garbage collection
Fixes: #21847
Diffstat (limited to 'src/fundamental')
-rw-r--r-- | src/fundamental/macro-fundamental.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fundamental/macro-fundamental.h b/src/fundamental/macro-fundamental.h index 1f640b3ae3..f87839d47b 100644 --- a/src/fundamental/macro-fundamental.h +++ b/src/fundamental/macro-fundamental.h @@ -13,6 +13,7 @@ #define _pure_ __attribute__((__pure__)) #define _section_(x) __attribute__((__section__(x))) #define _packed_ __attribute__((__packed__)) +#define _retain_ __attribute__((__retain__)) #define _used_ __attribute__((__used__)) #define _unused_ __attribute__((__unused__)) #define _cleanup_(x) __attribute__((__cleanup__(x))) |