[libc-commits] [PATCH] D71094: [libc] Add implementation of errno and define the other macros of errno.h.

Fangrui Song via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Dec 6 15:48:36 PST 2019


MaskRay added inline comments.


================
Comment at: libc/src/errno/llvmlibc_errno.h:18
+
+int *__errno_location();
+
----------------
Mark locally defined libc symbols hidden `__attribute__((visibility("hidden")))` in internal headers. When the library is built with -fPIC (for shared objects), the codegen will not create unnecessary PLT or GOT relocations.

See musl/src/include/errno.h for an example.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71094/new/

https://reviews.llvm.org/D71094





More information about the libc-commits mailing list