Skip to content

Commit

Permalink
Attempt to fix build failure on 32 bit Alpine distros
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Aug 8, 2024
1 parent 1ab637c commit f18d1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elf/input-files.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ std::vector<std::string_view> SharedFile<E>::get_dt_needed(Context<E> &ctx) {
for (ElfPhdr<E> &phdr : this->get_phdrs())
if (phdr.p_type == PT_DYNAMIC)
dynamic = {(Word<E> *)(this->mf->data + phdr.p_offset),
phdr.p_memsz / sizeof(Word<E>)};
(size_t)(phdr.p_memsz / sizeof(Word<E>))};

// Find a string table
char *strtab = nullptr;
Expand Down

0 comments on commit f18d1c1

Please sign in to comment.