This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Print "Unknown" when a program header is unknown.
ClosedPublic

Authored by grimar on Aug 19 2020, 6:40 AM.

Details

Summary

Currently, when a program header type is unknown, we dont print anything:

ProgramHeader {
  Type:  (0x60000000)

With this patch the output will be:

ProgramHeader {
  Type: Unknown (0x60000000)

It was discussed in D85526 and consistent what we print for
'--sections' already, e.g.:

Section {
  Name: .sec
  Type: Unknown (0x7FFFFFFF)
}

Diff Detail

Event Timeline

grimar created this revision.Aug 19 2020, 6:40 AM
Herald added a project: Restricted Project. · View Herald Transcript
grimar requested review of this revision.Aug 19 2020, 6:40 AM
jhenderson accepted this revision.Aug 25 2020, 2:35 AM

No idea how this slipped through my review net, sorry! LGTM.

This revision is now accepted and ready to land.Aug 25 2020, 2:35 AM

No idea how this slipped through my review net, sorry! LGTM.

No worries, thanks for review!