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

View File

@ -343,14 +343,10 @@ 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;
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) {
u64 fileoff = 0;