1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-27 10:23:41 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-11 10:45:52 +09:00
parent b11fbdd15b
commit 0fc966da02

20
main.cc
View File

@ -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) {