diff --git a/src/util/build_id.c b/src/util/build_id.c index e56eecd4d6b610684b075ae5cc77dd5e54b5646e..511ed676d8ae4dd629a3ba652bdbbe98cb09830a 100644 --- a/src/util/build_id.c +++ b/src/util/build_id.c @@ -92,12 +92,6 @@ build_id_find_nhdr_callback(struct dl_phdr_info *info, size_t size, void *data_) ALIGN_POT(note->nhdr.n_namesz, 4) + ALIGN_POT(note->nhdr.n_descsz, 4); - // 05 00 00 00 04 00 00 00 4f 48 4f 53 00 01 00 00 00 00 00 00 - if ((note->nhdr.n_type == 0x534f484f) && (len > 20)) { - // .note.ohos.ident is not a valid PT_NOTE section, use offset in section header later - offset = 20; - } - note = (struct build_id_note *)((char *)note + offset); len -= offset; }