Page MenuHomeFreeBSD

readelf(1): Decode values when DT_FLAGS/DT_FLAGS_1
AcceptedPublic

Authored by borako.ozarslan_gmail.com on Tue, Jan 8, 6:26 PM.

Details

Reviewers
emaste
Summary

Decode d_val when the tag is DT_FLAGS or DT_FLAGS_1 based on the information at:

https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-42444.html

PR: 232983
Submitted by: Bora Ozarslan borako.ozarslan@gmail.com

Test Plan

Compile a trivial program using the command cc -Wl,-z,now main.c and use readelf -d a.out on it.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

emaste added inline comments.Tue, Jan 8, 7:53 PM
contrib/elftoolchain/readelf/readelf.c
299–300

should be in alpha order - i.e., before dump_dyn_val

emaste added inline comments.Tue, Jan 8, 7:55 PM
contrib/elftoolchain/readelf/readelf.c
2986

Why print "Flags:" for flags_1 and no prefix for flags above?

borako.ozarslan_gmail.com added inline comments.
contrib/elftoolchain/readelf/readelf.c
2986

That's the behavior in GNU readelf as seen in the bug report

borako.ozarslan_gmail.com marked an inline comment as done.
borako.ozarslan_gmail.com marked an inline comment as done.
emaste accepted this revision.Wed, Jan 9, 4:55 PM
This revision is now accepted and ready to land.Wed, Jan 9, 4:55 PM