Use tried_to_load_header
This commit is contained in:
parent
8edb419342
commit
68c9d33e94
@ -131,6 +131,10 @@ namespace detail {
|
|||||||
Result<const elf::header_info&, internal_error> r = header.unwrap();
|
Result<const elf::header_info&, internal_error> r = header.unwrap();
|
||||||
return std::ref(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) {
|
if(is_64) {
|
||||||
return get_header_info_impl<64>();
|
return get_header_info_impl<64>();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user