mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 18:58:30 +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
3
third_party/make/dir.c
vendored
3
third_party/make/dir.c
vendored
|
@ -17,6 +17,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "libc/calls/struct/dirent.h"
|
||||
#include "libc/x/x.h"
|
||||
#include "third_party/make/dep.h"
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/hash.h"
|
||||
|
@ -584,7 +585,7 @@ void file_impossible(const char *filename) {
|
|||
if (dir->contents == 0)
|
||||
/* The directory could not be stat'd. We allocate a contents
|
||||
structure for it, but leave it out of the contents hash table. */
|
||||
dir->contents = xcalloc(sizeof(struct directory_contents));
|
||||
dir->contents = xcalloc(1, sizeof(struct directory_contents));
|
||||
|
||||
if (dir->contents->dirfiles.ht_vec == 0) {
|
||||
hash_init(&dir->contents->dirfiles, DIRFILE_BUCKETS, dirfile_hash_1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue