Use tried_to_load_header

This commit is contained in:
Jeremy Rifkin 2025-01-26 23:22:03 -06:00
parent 8edb419342
commit 68c9d33e94
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -131,6 +131,10 @@ namespace detail {
Result<const elf::header_info&, internal_error> r = header.unwrap();
return std::ref(header.unwrap());
}
if(tried_to_load_header) {
return internal_error("previous header load failed " + object_path);
}
tried_to_load_header = true;
if(is_64) {
return get_header_info_impl<64>();
} else {