[libc] Add a simple x86_64 linux loader.
authorSiva Chandra Reddy <sivachandra@google.com>
Wed, 18 Mar 2020 19:46:33 +0000 (12:46 -0700)
committerSiva Chandra Reddy <sivachandra@google.com>
Wed, 25 Mar 2020 17:12:35 +0000 (10:12 -0700)
commitf6ccb4fef24948003f1327c0e31a93ae4754c5d6
tree1fd3eb0de8aa5179810ffe646112ee81de682603
parentbb4da94e5b5f64ea68197de9be44c7c5a4c91ce7
[libc] Add a simple x86_64 linux loader.

This adds a very simple loader. This will be extended to a full loader
in future patches. A utility rule to add unittests has been added to
serve us while we are building out the full loader.

Reviewers: abrachet, phosek

Differential Revision: https://reviews.llvm.org/D76412
libc/CMakeLists.txt
libc/loader/CMakeLists.txt [new file with mode: 0644]
libc/loader/linux/CMakeLists.txt [new file with mode: 0644]
libc/loader/linux/x86_64/CMakeLists.txt [new file with mode: 0644]
libc/loader/linux/x86_64/start.cpp [new file with mode: 0644]
libc/test/CMakeLists.txt
libc/test/loader/CMakeLists.txt [new file with mode: 0644]
libc/test/loader/linux/CMakeLists.txt [new file with mode: 0644]
libc/test/loader/linux/args_test.cpp [new file with mode: 0644]
libc/test/loader/linux/main_without_args.cpp [new file with mode: 0644]
libc/test/loader/linux/main_without_envp.cpp [new file with mode: 0644]