1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 18:40:59 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-17 00:08:53 +09:00
parent 6608bf3d5e
commit 46872f5f2d

View File

@ -171,8 +171,8 @@ void HashSection::copy_to(u8 *buf) {
u8 *base = buf + shdr.sh_offset;
memset(base, 0, shdr.sh_size);
u32 *hdr = (u32 *)base;
int num_slots = out::dynsym->symbols.size() + 1;
u32 *hdr = (u32 *)base;
u32 *buckets = (u32 *)(base + 8);
u32 *chains = buckets + num_slots;