Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Feb 24, 2022
1 parent 9f34830 commit ac3ae60
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions elf/input-sections.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,10 @@ void InputSection<E>::write_to(Context<E> &ctx, u8 *buf) {
// Copy data
if constexpr (E::e_machine == EM_RISCV) {
copy_contents_riscv(ctx, buf);
} else if (is_compressed()) {
uncompress(ctx, buf);
} else {
if (is_compressed())
uncompress(ctx, buf);
else
memcpy(buf, contents.data(), contents.size());
memcpy(buf, contents.data(), contents.size());
}

// Apply relocations
Expand Down

0 comments on commit ac3ae60

Please sign in to comment.