1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-29 11:24:36 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-03 19:54:47 +09:00
parent 5e930b0fb0
commit 0c8dbbda0a

10
main.cc
View File

@ -343,13 +343,9 @@ create_shdrs(ArrayRef<OutputChunk *> output_chunks) {
}
static void fill_shdrs(ArrayRef<OutputChunk *> output_chunks) {
int i = 1;
for (OutputChunk *chunk : output_chunks) {
if (chunk->name.empty())
continue;
chunk->shdr.sh_size = chunk->get_size();
}
for (OutputChunk *chunk : output_chunks)
if (!chunk->name.empty())
chunk->shdr.sh_size = chunk->get_size();
}
static u64 set_osec_offsets(ArrayRef<OutputChunk *> output_chunks) {