mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Do some basic build tuning
This commit is contained in:
parent
57cc257f58
commit
8303e23b3a
9 changed files with 62 additions and 18 deletions
0
libc/empty.s
Normal file
0
libc/empty.s
Normal file
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#ifdef __x86_64__
|
||||
#include "libc/calls/state.internal.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/intrin/asan.internal.h"
|
||||
|
@ -1497,3 +1498,5 @@ __attribute__((__constructor__)) void __asan_init(int argc, char **argv,
|
|||
STRACE("/_/ \\_\\____/_/ \\_\\_| \\_|");
|
||||
STRACE("cosmopolitan memory safety module initialized");
|
||||
}
|
||||
|
||||
#endif /* __x86_64__ */
|
||||
|
|
|
@ -4,7 +4,11 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
#ifndef __STRICT_ANSI__
|
||||
|
||||
#define _weaken(symbol) ((const typeof(&(symbol)))_weakaddr(#symbol))
|
||||
#define _weaken(symbol) \
|
||||
({ \
|
||||
asm(".weak\t" #symbol); \
|
||||
&symbol; \
|
||||
})
|
||||
|
||||
#define _strongaddr(symbolstr) \
|
||||
({ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue