Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Dec 16, 2024
1 parent ee8e50a commit 3cb5514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output-chunks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ void DynsymSection<E>::copy_buf(Context<E> &ctx) {
ElfSym<E> *buf = (ElfSym<E> *)(ctx.buf + this->shdr.sh_offset);
i64 name_offset = ctx.dynstr->dynsym_offset;

buf[0] = {};
memset(buf, 0, sizeof(ElfSym<E>));

for (i64 i = 1; i < symbols.size(); i++) {
Symbol<E> &sym = *symbols[i];
Expand Down

0 comments on commit 3cb5514

Please sign in to comment.