This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readelf/obj] - Index phdrs and relocations from 0 when reporting warnings.
ClosedPublic

Authored by grimar on Dec 24 2020, 5:54 AM.

Details

Summary

As was mentioned in comments here:
https://reviews.llvm.org/D92636#inline-864967

we are not consistent and sometimes index things from 0, but sometimes
from 1 in warnings.

This patch fixes 2 places: messages reported for
program headers and messages reported for relocations.

Diff Detail

Event Timeline

grimar created this revision.Dec 24 2020, 5:54 AM
grimar requested review of this revision.Dec 24 2020, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 24 2020, 5:54 AM
This revision is now accepted and ready to land.Jan 5 2021, 1:29 AM
MaskRay accepted this revision.Jan 5 2021, 10:07 AM

Looks great!