[libc-commits] [PATCH] D117138: [libc] move strdup out of requiring SCUDO

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jan 12 11:59:36 PST 2022


michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue, abrachet.
Herald added subscribers: libc-commits, ecnelises, tschuett, cryptoad.
Herald added a project: libc-project.
michaelrj requested review of this revision.

strdup needs either scudo enabled or fullbuild disabled, this properly
adds the second condition


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117138

Files:
  libc/config/linux/x86_64/entrypoints.txt


Index: libc/config/linux/x86_64/entrypoints.txt
===================================================================
--- libc/config/linux/x86_64/entrypoints.txt
+++ libc/config/linux/x86_64/entrypoints.txt
@@ -241,7 +241,11 @@
     libc.src.stdlib.calloc
     libc.src.stdlib.realloc
     libc.src.stdlib.free
+  )
+endif()
 
+if(LLVM_LIBC_INCLUDE_SCUDO OR NOT LLVM_LIBC_FULL_BUILD)
+  list(APPEND TARGET_LIBC_ENTRYPOINTS
     # string.h entrypoints that depend on malloc
     libc.src.string.strdup
     libc.src.string.strndup


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117138.399411.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220112/4d29b05c/attachment.bin>


More information about the libc-commits mailing list