Searched hist:"8 d527cd6cc479ecb815addb644e130a9f5e27228" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/include/ |
| H A D | keep.h | 8d527cd6cc479ecb815addb644e130a9f5e27228 Thu Nov 22 21:22:33 UTC 2018 Jens Wiklander <jens.wiklander@linaro.org> core: keep.h: avoid duplicate symbols
Prior to this patch if the KEEP_*() macros are used with two static variables with the same name but in different source files it will result in a duplicated global symbol. This happens because the internal trickery uses global variables based on the static symbol it's supposed to keep. With this patch the global variables uses the file unique define __FILE_ID__ to avoid the conflict.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|