]> git.ipfire.org Git - thirdparty/systemd.git/commit
macro: add macro for llvm no_sanitize_address attribute
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Dec 2018 16:30:43 +0000 (17:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 Dec 2018 16:35:50 +0000 (17:35 +0100)
commit026c2677fc9ad6baf32dadc640c58a11dfc09bf1
tree3fe36be09416bff91f5c328bc39cd110e85a9135
parentbe5f77b26e22a806179c7b03e03d424682ed325c
macro: add macro for llvm no_sanitize_address attribute

We want it for global variables, which LLVM supports and GCC currently
does not (GCC does support it for functions, but we care about global
variables here).

Why is this relevant? When asan is used global variables are padded with
hotzones before and after. But we can't have that for the registration
variables we place in special ELF sections: we want them tightly packed
so that we can iterate through them.

Note that for gcc this isn't an issue, as it will pack stuff in
non-standard sections anyway, even if asan is used.
src/basic/macro.h