-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,416 changed files
with
306,595 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
include ../mak/defs.mak | ||
|
||
DIRS += dlmalloc | ||
DIRS += musl | ||
DIRS += libcxxrt | ||
DIRS += libunwind | ||
DIRS += llvmcxx | ||
DIRS += mergecxx | ||
DIRS += openssl | ||
|
||
define NL | ||
|
||
|
||
endef | ||
|
||
build: | ||
$(foreach i, $(DIRS), $(MAKE) -C $(i) $(NL) ) | ||
|
||
clean: | ||
$(foreach i, $(DIRS), $(MAKE) -C $(i) clean $(NL) ) | ||
|
||
distclean: | ||
$(foreach i, $(DIRS), $(MAKE) -C $(i) distclean $(NL) ) | ||
|
||
depend: | ||
$(foreach i, $(DIRS), $(MAKE) -C $(i) depend $(NL) ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
This directory contains third-party software used by OpenEnclave. This | ||
includes: | ||
|
||
dlmalloc (downloaded on the fly): | ||
ftp://gee.cs.oswego.edu/pub/misc/malloc.h | ||
ftp://gee.cs.oswego.edu/pub/misc/malloc.c | ||
|
||
MUSL (downloaded on the fly): | ||
http://www.musl-libc.org/releases/musl-1.1.10.tar.gz | ||
|
||
openssl (downloaded on the fly): | ||
https://www.openssl.org/source/openssl-1.0.21.tar.gz | ||
|
||
libcxxrt (downloaded on the fly): | ||
https://github.com/pathscale/libcxxrt | ||
|
||
LLVM STL (resides in source tree): | ||
https://github.com/dutor/stl/tree/master/llvm/include | ||
(see http://libcxx.llvm.org) | ||
|
||
libunwind (resides in source tree): | ||
https://github.com/pathscale/libunwind | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
build: malloc.h malloc.c | ||
|
||
malloc.h: | ||
wget ftp://gee.cs.oswego.edu/pub/misc/malloc.h | ||
|
||
malloc.c: | ||
wget ftp://gee.cs.oswego.edu/pub/misc/malloc.c | ||
|
||
clean: | ||
|
||
distclean: | ||
rm -f malloc.h malloc.c | ||
|
||
depeend: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
include ../../mak/defs.mak | ||
|
||
TARGET = $(LIBDIR)/tmp/libcxxrt.a | ||
|
||
all: libcxxrt configure | ||
$(MAKE) -C libcxxrt | ||
cp ./libcxxrt/lib/libcxxrt.a $(TARGET) | ||
|
||
delete: | ||
ar -d $(TARGET) guard.cc.o | ||
ar -d $(TARGET) exception.cc.o | ||
ar -d $(TARGET) dynamic_cast.cc.o | ||
ar -d $(TARGET) stdexcept.cc.o | ||
ar -d $(TARGET) typeinfo.cc.o | ||
ar -d $(TARGET) memory.cc.o | ||
ar -d $(TARGET) auxhelper.cc.o | ||
ar -d $(TARGET) libelftc_dem_gnu3.c.o | ||
|
||
OPTS = --enable-cxx-exceptions --enable-msabi-support | ||
|
||
CFLAGS=-include $(TOP)/3rdparty/libcxxrt/stubs.h -fPIC | ||
|
||
CXXFLAGS=$(CFLAGS) | ||
|
||
configure: | ||
( cd libcxxrt; cmake CMakeLists.txt -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" -DCMAKE_C_FLAGS="$(CFLAGS)" ) | ||
|
||
clean: | ||
@ $(MAKE) -s clean-silent | ||
|
||
clean-silent: | ||
-@ rm -f $(TARGET) | ||
-@ $(MAKE) -C libcxxrt clean 2> /dev/null | ||
|
||
libcxxrt: | ||
git clone https://github.com/pathscale/libcxxrt | ||
|
||
distclean: | ||
rm -rf libcxxrt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef __OE_LIBCXXRT_STUBS_H | ||
#define __OE_LIBCXXRT_STUBS_H | ||
|
||
#define pthread_mutex_lock pthread_mutex_lock_u | ||
|
||
#define pthread_mutex_unlock pthread_mutex_unlock_u | ||
|
||
#define pthread_cond_wait pthread_cond_wait_u | ||
|
||
#define pthread_cond_signal pthread_cond_signal_u | ||
|
||
#define dladdr __libcxxrt_dladdr | ||
|
||
#define printf printf_u | ||
|
||
#define fprintf fprintf_u | ||
|
||
#define sched_yield __libcxxrt_sched_yield | ||
|
||
#endif /* __OE_LIBCXXRT_STUBS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
include ../../mak/defs.mak | ||
|
||
TARGET=$(LIBDIR)/tmp/libunwind.a | ||
|
||
all: .configure | ||
$(MAKE) -C libunwind/src | ||
cp ./libunwind/src/.libs/libunwind.a $(TARGET) | ||
|
||
|
||
OPTS += --enable-shared=no | ||
OPTS += --disable-block-signals | ||
OPTS += --enable-debug=no | ||
OPTS += --enable-debug-frame==no | ||
OPTS += --enable-cxx-exceptions | ||
|
||
CFLAGS += -DUNW_LOCAL_ONLY | ||
CFLAGS += -DWSIZE=8 | ||
CFLAGS += -fno-builtin | ||
CFLAGS += -fPIC | ||
CFLAGS += -DOPEN_ENCLAVE | ||
CFLAGS += -include $(TOP)/3rdparty/libunwind/stubs.h | ||
|
||
#CFLAGS += -std=c99 | ||
|
||
configure: | ||
( cd libunwind; ./autogen.sh ) | ||
( cd libunwind; ./configure $(OPTS) CFLAGS="$(CFLAGS)" ) | ||
touch .configure | ||
|
||
.configure: | ||
$(MAKE) configure | ||
|
||
clean: | ||
@ $(MAKE) -s clean-silent | ||
|
||
clean-silent: | ||
-@ $(MAKE) -C libunwind clean 2> /dev/null > /dev/null | ||
|
||
clone: | ||
git clone https://github.com/pathscale/libunwind | ||
|
||
distclean: clean | ||
@ $(MAKE) -s distclean-silent | ||
rm -f libunwind/autom4te.cache/output.0 | ||
rm -f libunwind/autom4te.cache/output.1 | ||
rm -f .configure | ||
|
||
distclean-silent: | ||
-@ ( cd libunwind; $(MAKE) distclean ) 2> /dev/null > /dev/null | ||
|
||
diff: | ||
( cd libunwind; git diff > ../libunwind.diff ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
*.la | ||
*.a | ||
*.o | ||
*.lo | ||
*~ | ||
|
||
.libs/ | ||
.deps/ | ||
|
||
.dirstamp | ||
Makefile | ||
Makefile.in | ||
|
||
INSTALL | ||
aclocal.m4 | ||
autom4te.cache/ | ||
config.log | ||
config.status | ||
config/ | ||
configure | ||
libtool | ||
|
||
doc/common.tex | ||
|
||
src/[GL]cursor_i.h | ||
src/mk_[GL]cursor_i.s | ||
|
||
include/config.h | ||
include/config.h.in | ||
include/libunwind-common.h | ||
include/stamp-h1 | ||
|
||
tests/[GL]test-bt | ||
tests/[GL]test-concurrent | ||
tests/[GL]test-dyn1 | ||
tests/[GL]test-exc | ||
tests/[GL]test-init | ||
tests/[GL]test-resume-sig | ||
tests/[GL]test-resume-sig-rt | ||
tests/[GL]perf-simple | ||
tests/Ltest-nomalloc | ||
tests/Ltest-nocalloc | ||
tests/Lperf-simple | ||
tests/check-namespace.sh | ||
tests/crasher | ||
tests/forker | ||
tests/mapper | ||
tests/rs-race | ||
tests/test-async-sig | ||
tests/test-coredump-unwind | ||
tests/test-flush-cache | ||
tests/test-init-remote | ||
tests/test-mem | ||
tests/test-ptrace | ||
tests/test-setjmp | ||
tests/test-strerror | ||
tests/test-proc-info | ||
tests/test-ptrace-misc | ||
tests/test-varargs | ||
tests/test-static-link | ||
tests/[GL]test-trace | ||
tests/[GL]perf-trace | ||
tests/Ltest-cxx-exceptions | ||
tests/[GL]ia64-test-nat | ||
tests/[GL]ia64-test-rbs | ||
tests/[GL]ia64-test-readonly | ||
tests/[GL]ia64-test-stack | ||
tests/ia64-test-dyn1 | ||
tests/ia64-test-sig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
David Mosberger <dmosberger@gmail.org> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2002 Hewlett-Packard Co. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
*********************************************************** | ||
|
||
Discontinued. See git log instead at | ||
|
||
http://www.kernel.org/git/gitweb.cgi?p=libs/libunwind/libunwind.git;a=log | ||
|
||
*********************************************************** | ||
|
||
2002-11-08 David Mosberger-Tang <David.Mosberger@acm.org> | ||
|
||
* src/ia64/unwind_i.h (ia64_getfp): Change from macro to inline | ||
function. Check "loc" argument for being NULL before dereferencing it. | ||
(ia64_putfp): Ditto. | ||
(ia64_get): Ditto. | ||
(ia64_put): Ditto. | ||
|
||
2002-01-18 David Mosberger-Tang <David.Mosberger@acm.org> | ||
|
||
* src/ia64/parser.c (__ia64_unw_create_state_record): Set | ||
IA64_FLAG_HAS_HANDLER if the unwind info descriptors indicate that | ||
there a handler. | ||
|
||
* src/ia64/regs.c (__ia64_access_reg): Return zero for UNW_REG_HANDLER | ||
in frames that don't have a personality routine. | ||
|
||
* src/ia64/unwind_i.h (IA64_FLAG_HAS_HANDLER): New flag. | ||
|
||
* src/ia64/regs.c (__ia64_access_reg): When reading UNW_REG_HANDLER, | ||
account for the fact that the personality address is gp-relative. | ||
|
||
* src/ia64/parser.c (__ia64_unw_create_state_record): Fix | ||
initialization of segbase and len. | ||
|
||
2002-01-17 David Mosberger-Tang <David.Mosberger@acm.org> | ||
|
||
* include/unwind-ia64.h: Include via "unwind.h" to ensure | ||
the file is picked up from same directory. | ||
|
||
2002-01-16 David Mosberger-Tang <David.Mosberger@acm.org> | ||
|
||
* include/unwind.h: Define UNW_ESTOPUNWIND. This error code may | ||
be returned by acquire_unwind_info() to force termination of | ||
unwinding. An application may want to do this when encountering a | ||
call frame for dynamically generated code, for example. | ||
|
||
* unwind.h: Pass opaque argument pointer to acquire_unwind_info() | ||
and release_unwind_info() like we do for access_mem() etc. | ||
|
||
2002-01-14 David Mosberger-Tang <David.Mosberger@acm.org> | ||
|
||
* Version 0.0 released. | ||
|
||
2002-01-11 David Mosberger-Tang <David.Mosberger@acm.org> | ||
|
||
* ChangeLog created. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.