[PATCH] D80805: [KernelAddressSanitizer] Make globals constructors compatible with kernel
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 13:32:39 PDT 2020
nickdesaulniers added inline comments.
================
Comment at: clang/test/CodeGen/asan-globals.cpp:14
int blacklisted_global;
+int __attribute__((section(".foo.bar"))) sectioned_global;
----------------
/Users/thakis/src/llvm-project/clang/test/CodeGen/asan-globals.cpp:14:28: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma
int __attribute__((section(".foo.bar"))) sectioned_global;
^
http://45.33.8.238/mac/14998/step_7.txt
Using an explicit Linux target triple would avoid this.
See also attribute-section-data-common.c for the OSX portable example.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80805/new/
https://reviews.llvm.org/D80805
More information about the llvm-commits
mailing list