Improve failure message: tell the values we don't like.

PiperOrigin-RevId: 474043469
Change-Id: I9ea33a8bf026263c9e10d2a183014a5ee8df1306
pull/1277/head
Abseil Team 2 years ago committed by Copybara-Service
parent bf9c19e545
commit 2d80dec405
  1. 5
      absl/debugging/symbolize_elf.inc

@ -1343,8 +1343,9 @@ static bool MaybeInitializeObjFile(ObjFile *obj) {
if (num_executable_load_segments < obj->phdr.size()) {
memcpy(&obj->phdr[num_executable_load_segments++], &phdr, sizeof(phdr));
} else {
ABSL_RAW_LOG(WARNING, "%s: too many executable LOAD segments",
obj->filename);
ABSL_RAW_LOG(
WARNING, "%s: too many executable LOAD segments: %zu >= %zu",
obj->filename, num_executable_load_segments, obj->phdr.size());
break;
}
}

Loading…
Cancel
Save