finish intellisense support and sync with upstream

This commit is contained in:
Alexander Nicholi 2021-02-03 13:50:08 -05:00
commit ec9bfd8c56
No known key found for this signature in database
GPG key ID: B75B2EB05540F74C
221 changed files with 2360 additions and 1439 deletions

View file

@ -8,6 +8,29 @@
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct ElfWriterSyms {
size_t i, n;
Elf64_Sym *p;
};
enum ElfWriterSymOrder {
kElfWriterSymSection,
kElfWriterSymLocal,
kElfWriterSymGlobal
};
struct ElfWriterSymRef {
int slg;
uint32_t sym;
};
struct ElfWriterRela {
uint64_t offset;
struct ElfWriterSymRef symkey;
uint32_t type;
int64_t addend;
};
struct ElfWriter {
char *path;
char *tmppath;
@ -22,25 +45,10 @@ struct ElfWriter {
size_t i, n;
Elf64_Shdr *p;
} shdrs[1];
struct ElfWriterSyms {
size_t i, n;
Elf64_Sym *p;
} syms[3][1];
struct ElfWriterSyms syms[3][1];
struct {
size_t i, j, n;
struct ElfWriterRela {
uint64_t offset;
struct ElfWriterSymRef {
enum ElfWriterSymOrder {
kElfWriterSymSection,
kElfWriterSymLocal,
kElfWriterSymGlobal
} slg;
uint32_t sym;
} symkey;
uint32_t type;
int64_t addend;
} * p;
struct ElfWriterRela * p;
} relas[1];
struct Interner *strtab;
struct Interner *shstrtab;