Skip to content

Commit 867f9e7

Browse files
committed
linker: remove useless comments.
The API level in the code is more meaningful to more people anyway. Change-Id: Ifc6a45fc16039881aa7863fbff09b5902e139d54
1 parent 130085d commit 867f9e7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

linker/linker_phdr.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ bool ElfReader::VerifyElfHeader() {
298298
}
299299

300300
if (header_.e_shentsize != sizeof(ElfW(Shdr))) {
301-
// Fail if app is targeting Android O or above
302301
if (get_application_target_sdk_version() >= 26) {
303302
DL_ERR_AND_LOG("\"%s\" has unsupported e_shentsize: 0x%x (expected 0x%zx)",
304303
name_.c_str(), header_.e_shentsize, sizeof(ElfW(Shdr)));
@@ -312,12 +311,10 @@ bool ElfReader::VerifyElfHeader() {
312311
}
313312

314313
if (header_.e_shstrndx == 0) {
315-
// Fail if app is targeting Android O or above
316314
if (get_application_target_sdk_version() >= 26) {
317315
DL_ERR_AND_LOG("\"%s\" has invalid e_shstrndx", name_.c_str());
318316
return false;
319317
}
320-
321318
DL_WARN_documented_change(26,
322319
"invalid-elf-header_section-headers-enforced-for-api-level-26",
323320
"\"%s\" has invalid e_shstrndx", name_.c_str());

0 commit comments

Comments
 (0)