jvoisin
|
ed70a48c5a
|
Fix compilation on Ubuntu
Without explicitly specifying `-pthread`, the compilation fails on Ubuntu:
```
cc -std=c11 -O2 -flto -fPIC -fvisibility=hidden -fno-plt -pipe -Wall -Wextra -Wmissing-prototypes -Wl,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text -shared chacha.o malloc.o memory.o pages.o random.o util.o new.o -lstdc++ -o hardened_malloc.so
/tmp/ccNSnzLn.ltrans0.ltrans.o: In function `init_slow_path':
<artificial>:(.text.unlikely+0x3f1): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
Makefile:16: recipe for target 'hardened_malloc.so' failed
make: *** [hardened_malloc.so] Error 1
zsh: exit 2 make
```
|
2018-10-12 07:13:13 +00:00 |
|
Daniel Micay
|
fa2796a941
|
Makefile: add missing dependencies
|
2018-10-07 11:31:07 -04:00 |
|
Daniel Micay
|
3a936295f8
|
Makefile: split out shared compiler flags
|
2018-10-05 02:45:40 -04:00 |
|
Daniel Micay
|
e6e9ac1fc9
|
support replacing C++ new/delete implementation
This adds support for sanity checks based on sized deallocation and will
reduce the overhead of calls through the C++ allocator.
|
2018-10-05 02:11:29 -04:00 |
|
Daniel Micay
|
ef32a4b7ea
|
add -pipe to CFLAGS
|
2018-10-04 04:03:48 -04:00 |
|
Daniel Micay
|
49af83a817
|
wrap mutex type to enable future optimization
|
2018-09-07 01:13:08 -04:00 |
|
Daniel Micay
|
d398384b90
|
add header for configuration
|
2018-09-07 00:17:31 -04:00 |
|
Daniel Micay
|
7e088dc870
|
add stubs for Android extensions
|
2018-09-02 05:08:45 -04:00 |
|
Daniel Micay
|
2dd2471b4a
|
enable more linker sanity checks
|
2018-09-02 02:30:24 -04:00 |
|
Daniel Micay
|
39e81bd486
|
using -lpthread for linking isn't necessary
|
2018-09-02 02:13:23 -04:00 |
|
Daniel Micay
|
e4648192c0
|
split out code for managing page spans
|
2018-09-02 02:03:39 -04:00 |
|
Daniel Micay
|
99fcddc223
|
use much faster get_random_{type}_uniform approach
|
2018-08-30 02:08:05 -04:00 |
|
Daniel Micay
|
1c181557c7
|
add -fno-plt as an optimization
|
2018-08-29 15:20:56 -04:00 |
|
Daniel Micay
|
58d929c0f0
|
split out low-level memory mapping wrappers
|
2018-08-29 00:53:38 -04:00 |
|
Daniel Micay
|
0e2bc8a1cf
|
make sure RELRO is enabled on every toolchain
|
2018-08-28 11:44:23 -04:00 |
|
Daniel Micay
|
e72674e358
|
detect missing symbols when linking
|
2018-08-28 11:13:17 -04:00 |
|
Daniel Micay
|
c41e659383
|
use ChaCha8-based CSPRNG
|
2018-08-25 23:24:00 -04:00 |
|
Daniel Micay
|
70d61b6662
|
initial commit
|
2018-08-23 15:42:41 -04:00 |
|