Fix handling of strtab in a code path in the elf code

This commit is contained in:
Jeremy Rifkin 2025-02-13 23:47:16 -06:00
parent 457bc4b8a1
commit 8f2193f35a
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -161,7 +161,7 @@ namespace detail {
std::vector<symbol_entry> res;
for(const auto& entry : info.entries) {
res.push_back({
strtab.unwrap().data() + entry.st_name,
strtab.has_value() ? strtab.unwrap().data() + entry.st_name : "<strtab error>",
entry.st_shndx,
entry.st_value,
entry.st_size