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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to