diff --git a/linker/linker.cpp b/linker/linker.cpp index c46c1e251..6dfa768cc 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -1877,7 +1877,7 @@ bool soinfo::PrelinkImage() { break; case DT_SYMENT: if (d->d_un.d_val != sizeof(ElfW(Sym))) { - DL_ERR("invalid DT_SYMENT: %d", d->d_un.d_val); + DL_ERR("invalid DT_SYMENT: %zd", static_cast(d->d_un.d_val)); return false; } break; @@ -1932,7 +1932,7 @@ bool soinfo::PrelinkImage() { break; case DT_RELAENT: if (d->d_un.d_val != sizeof(ElfW(Rela))) { - DL_ERR("invalid DT_RELAENT: %d", d->d_un.d_val); + DL_ERR("invalid DT_RELAENT: %zd", static_cast(d->d_un.d_val)); return false; } break; @@ -1954,7 +1954,7 @@ bool soinfo::PrelinkImage() { break; case DT_RELENT: if (d->d_un.d_val != sizeof(ElfW(Rel))) { - DL_ERR("invalid DT_RELENT: %d", d->d_un.d_val); + DL_ERR("invalid DT_RELENT: %zd", static_cast(d->d_un.d_val)); return false; } break;