mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 09:48:29 +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
|
@ -155,6 +155,19 @@ struct History history;
|
|||
struct Value stack[128];
|
||||
int sp, comment, line, column, interactive;
|
||||
|
||||
uint32_t gray(uint32_t x) {
|
||||
return x ^ (x >> 1);
|
||||
}
|
||||
|
||||
uint32_t ungray(uint32_t x) {
|
||||
x ^= x >> 16;
|
||||
x ^= x >> 8;
|
||||
x ^= x >> 4;
|
||||
x ^= x >> 2;
|
||||
x ^= x >> 1;
|
||||
return x;
|
||||
}
|
||||
|
||||
INT Popcnt(INT x) {
|
||||
uint128_t word = x;
|
||||
return popcnt(word >> 64) + popcnt(word);
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
"gottpoff"
|
||||
"function"
|
||||
"object"
|
||||
"notype"
|
||||
"got"
|
||||
"size"
|
||||
"gotoff"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue