[libc] Add implementations of pthread_equal and pthread_self.Reviewed By: michaelrj, lntueDifferential Revision: https://reviews.llvm.org/D129729
[libc] Linux threads - Setup TLS area of a new thread and cleanup at exit.Reviewed By: lntueDifferential Revision: https://reviews.llvm.org/D129543
[libc] Add TLS image initialization to aarch64 startup code.The TLS loader test has been enabled for aarch64.Handling of PT_TLS' filesz and memsz for x86_64 has also been fixed.Reviewed By: jeff
[libc] Add TLS image initialization to aarch64 startup code.The TLS loader test has been enabled for aarch64.Handling of PT_TLS' filesz and memsz for x86_64 has also been fixed.Reviewed By: jeffbaileyDifferential Revision: https://reviews.llvm.org/D128032
show more ...
[libc][Obvious] Remove an unnecessary dep and use inline_memcpy.An unnecessary dep of the getenv function is removed. From the x86_64loader, a call to __llvm_libc::memcpy is replaced with call to
[libc][Obvious] Remove an unnecessary dep and use inline_memcpy.An unnecessary dep of the getenv function is removed. From the x86_64loader, a call to __llvm_libc::memcpy is replaced with call to__llvm_libc::inline_memcpy.
[libc] Align the stack pointer in the start function.The loader TLS test for x86_64, which now passes, has been enabled.A future change should enable the test for aarch64 as well.Reviewed By: je
[libc] Align the stack pointer in the start function.The loader TLS test for x86_64, which now passes, has been enabled.A future change should enable the test for aarch64 as well.Reviewed By: jeffbaileyDifferential Revision: https://reviews.llvm.org/D121091
[libc] Fix alignment logic in TLS image size calculation.
[lib][Obvious] Fix style in a few include directives.
Introduce getenv to LLVM libcAdd support for getenv as defined by the Open Group's "System Interface & Header" in https://pubs.opengroup.org/onlinepubs/7908799/xsh/getenv.htmlgetenv requires a s
Introduce getenv to LLVM libcAdd support for getenv as defined by the Open Group's "System Interface & Header" in https://pubs.opengroup.org/onlinepubs/7908799/xsh/getenv.htmlgetenv requires a standard way of accessing the environment,so a pointer to the environment is added to the startup in crt1.Consquently, this function is not usable on top of other libcs.Added starts_with method to StringView. getenv function uses it.Co-authored-by: Jeff Bailey <[email protected]>Reviewed By: sivachandra, rtennetiDifferential Revision: https://reviews.llvm.org/D119403
[libc][NFC] Move sys/mman entrypoints to the default build configs.Specifically, mmap and munmap have been moved to the default build listof entrypoints. To support this, certain deps and includes
[libc][NFC] Move sys/mman entrypoints to the default build configs.Specifically, mmap and munmap have been moved to the default build listof entrypoints. To support this, certain deps and includes have beenadjusted. The use of errno in some cases has been updated.
[libc] Move the x86_64 syscall functions to OSUtil.Reviewed By: michaelrj, lntueDifferential Revision: https://reviews.llvm.org/D116177
[libc] Setup TLS in x86_64 loader.The new code added is still very x86_64 specific. AArch64 support willbe added very soon and refactoring of the loader code will be done aspart of the patches ad
[libc] Setup TLS in x86_64 loader.The new code added is still very x86_64 specific. AArch64 support willbe added very soon and refactoring of the loader code will be done aspart of the patches adding it.Reviewed By: asteinhauserDifferential Revision: https://reviews.llvm.org/D82700
[libc] Add fully-qualified target names.Only targets setup by the special LLVM libc rules now have fullyqualified names. The naming style is similar to fully qualified names inPython.Reviewers:
[libc] Add fully-qualified target names.Only targets setup by the special LLVM libc rules now have fullyqualified names. The naming style is similar to fully qualified names inPython.Reviewers: abrachet, PaulkaToast, phosekDifferential Revision: https://reviews.llvm.org/D77340
[libc][NFC] Make all top of file comments consistent.Summary:Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.And did the same
[libc][NFC] Make all top of file comments consistent.Summary:Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.And did the same for all source files top of file comments.Reviewers: sivachandra, abrachetReviewed By: sivachandra, abrachetSubscribers: MaskRay, tschuett, libc-commitsTags: #libc-projectDifferential Revision: https://reviews.llvm.org/D77533
[libc] Add a simple x86_64 linux loader.This adds a very simple loader. This will be extended to a full loaderin future patches. A utility rule to add unittests has been added toserve us while we
[libc] Add a simple x86_64 linux loader.This adds a very simple loader. This will be extended to a full loaderin future patches. A utility rule to add unittests has been added toserve us while we are building out the full loader.Reviewers: abrachet, phosekDifferential Revision: https://reviews.llvm.org/D76412