Fix some more build issues (#43)

We're now scrubbing environment variables in compile.com since gnu make
was not behaving as expected. It also appears there was a regression in
recent revisions that caused ASAN to be turned off for most binaries in
dbg mode, which has now been fixed. Cosmopolitan is fully ASAN hardened
down to the lowest level libraries and it doesn't need any interceptors
This commit is contained in:
Justine Tunney 2021-02-20 12:39:39 -08:00
parent 3e1fd1d962
commit e85aeda4ba
8 changed files with 132 additions and 91 deletions

View file

@ -39,8 +39,8 @@ wontreturn void exit(int exitcode) {
if (weaken(__cxa_finalize)) {
weaken(__cxa_finalize)(NULL);
}
for (p = *weaken(__fini_array_end); p-- > *weaken(__fini_array_start);) {
((void (*)(void))p)();
for (p = *weaken(__fini_array_end); p > *weaken(__fini_array_start);) {
((void (*)(void))(*--p))();
}
_Exit(exitcode);
}