mirror of
https://github.com/rui314/mold.git
synced 2024-12-29 11:24:36 +03:00
temporary
This commit is contained in:
parent
5e930b0fb0
commit
0c8dbbda0a
8
main.cc
8
main.cc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user