mirror of
https://github.com/rui314/mold.git
synced 2024-12-27 10:23:41 +03:00
temporary
This commit is contained in:
parent
b11fbdd15b
commit
0fc966da02
20
main.cc
20
main.cc
@ -675,18 +675,18 @@ static u64 set_osec_offsets(ArrayRef<OutputChunk *> output_chunks) {
|
||||
|
||||
static void fix_synthetic_symbols(ArrayRef<OutputChunk *> output_chunks) {
|
||||
auto start = [&](OutputChunk *chunk, Symbol *sym) {
|
||||
if (sym) {
|
||||
sym->shndx = chunk->shndx;
|
||||
sym->value = chunk->shdr.sh_addr;
|
||||
}
|
||||
};
|
||||
if (sym) {
|
||||
sym->shndx = chunk->shndx;
|
||||
sym->value = chunk->shdr.sh_addr;
|
||||
}
|
||||
};
|
||||
|
||||
auto stop = [&](OutputChunk *chunk, Symbol *sym) {
|
||||
if (sym) {
|
||||
sym->shndx = chunk->shndx;
|
||||
sym->value = chunk->shdr.sh_addr + chunk->shdr.sh_size;
|
||||
}
|
||||
};
|
||||
if (sym) {
|
||||
sym->shndx = chunk->shndx;
|
||||
sym->value = chunk->shdr.sh_addr + chunk->shdr.sh_size;
|
||||
}
|
||||
};
|
||||
|
||||
// __bss_start
|
||||
for (OutputChunk *chunk : output_chunks) {
|
||||
|
Loading…
Reference in New Issue
Block a user