mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-29 22:10:27 +00:00
Create ELF aliases for identical symbols
This change greatly reduces the number of modules that need to be compiled. The only issue right now is that sometimes when viewing symbol table entries, the aliased symbol is chosen.
This commit is contained in:
parent
e1b83399bd
commit
b8a6a989c0
191 changed files with 414 additions and 2190 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "libc/intrin/aarch64/asmdefs.internal.h"
|
||||
|
||||
#define __strchr_aarch64 strchr
|
||||
#define __index_aarch64 index
|
||||
|
||||
.ident "\n\n\
|
||||
Optimized Routines (MIT License)\n\
|
||||
|
@ -77,6 +78,7 @@ Copyright 2022 ARM Limited\n"
|
|||
|
||||
/* Locals and temporaries. */
|
||||
|
||||
ENTRY_ALIAS (__strchr_aarch64, __index_aarch64)
|
||||
ENTRY (__strchr_aarch64)
|
||||
PTR_ARG (0)
|
||||
/* Magic constant 0xc0300c03 to allow us to identify which lane
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "libc/intrin/aarch64/asmdefs.internal.h"
|
||||
|
||||
#define __strrchr_aarch64 strrchr
|
||||
#define __rindex_aarch64 rindex
|
||||
|
||||
.ident "\n\n\
|
||||
Optimized Routines (MIT License)\n\
|
||||
|
@ -81,6 +82,7 @@ Copyright 2022 ARM Limited\n"
|
|||
in the original string a count_trailing_zeros() operation will
|
||||
identify exactly which byte is causing the termination, and why. */
|
||||
|
||||
ENTRY_ALIAS (__strrchr_aarch64, __rindex_aarch64)
|
||||
ENTRY (__strrchr_aarch64)
|
||||
PTR_ARG (0)
|
||||
/* Magic constant 0x40100401 to allow us to identify which lane
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue