We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8e50a commit 3cb5514Copy full SHA for 3cb5514
1 file changed
src/output-chunks.cc
@@ -1898,7 +1898,7 @@ void DynsymSection<E>::copy_buf(Context<E> &ctx) {
1898
ElfSym<E> *buf = (ElfSym<E> *)(ctx.buf + this->shdr.sh_offset);
1899
i64 name_offset = ctx.dynstr->dynsym_offset;
1900
1901
- buf[0] = {};
+ memset(buf, 0, sizeof(ElfSym<E>));
1902
1903
for (i64 i = 1; i < symbols.size(); i++) {
1904
Symbol<E> &sym = *symbols[i];
0 commit comments