mirror of
https://github.com/rui314/mold.git
synced 2024-11-11 16:58:12 +03:00
temporary
This commit is contained in:
parent
3a004907d4
commit
4aa2aacc25
5
main.cc
5
main.cc
@ -486,14 +486,16 @@ static void fill_symbol_versions() {
|
||||
// Fill .gnu.versoin_r.
|
||||
u8 *buf = (u8 *)&out::verneed->contents[0];
|
||||
u16 version = 1;
|
||||
ELF64LE::Verneed *verneed = nullptr;
|
||||
|
||||
auto start = [&](Symbol *sym) {
|
||||
out::verneed->shdr.sh_info += 1;
|
||||
SharedFile *file = (SharedFile *)sym->file;
|
||||
|
||||
auto *verneed = (ELF64LE::Verneed *)buf;
|
||||
verneed = (ELF64LE::Verneed *)buf;
|
||||
buf += sizeof(*verneed);
|
||||
verneed->vn_version = 1;
|
||||
verneed->vn_cnt = 1;
|
||||
verneed->vn_file = file->soname_dynstr_idx;
|
||||
verneed->vn_aux = sizeof(ELF64LE::Verneed);
|
||||
|
||||
@ -507,6 +509,7 @@ static void fill_symbol_versions() {
|
||||
};
|
||||
|
||||
auto add = [&](Symbol *sym) {
|
||||
verneed->vn_cnt += 1;
|
||||
auto *prev = (ELF64LE::Vernaux *)(buf - sizeof(ELF64LE::Vernaux));
|
||||
prev->vna_next = sizeof(ELF64LE::Vernaux);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user