Page MenuHomeFreeBSD

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

Authored by borako.ozarslan_gmail.com on Jan 8 2019, 6:26 PM.
Tags
None
Referenced Files
F107141795: D18784.id52673.diff
Fri, Jan 10, 6:36 PM
F107141792: D18784.id52676.diff
Fri, Jan 10, 6:36 PM
F107141788: D18784.id52696.diff
Fri, Jan 10, 6:36 PM
F107141786: D18784.id53444.diff
Fri, Jan 10, 6:36 PM
F107141784: D18784.id.diff
Fri, Jan 10, 6:36 PM
Unknown Object (File)
Fri, Jan 10, 4:05 PM
Unknown Object (File)
Fri, Jan 3, 10:35 PM
Unknown Object (File)
Thu, Jan 2, 3:24 AM

Details

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

contrib/elftoolchain/readelf/readelf.c
297–298 ↗(On Diff #52673)

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

contrib/elftoolchain/readelf/readelf.c
2852 ↗(On Diff #52673)

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

borako.ozarslan_gmail.com added inline comments.
contrib/elftoolchain/readelf/readelf.c
2852 ↗(On Diff #52673)

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.
This revision is now accepted and ready to land.Jan 9 2019, 4:55 PM
This revision was automatically updated to reflect the committed changes.
contrib/elftoolchain/readelf/readelf.c
2852 ↗(On Diff #52696)

FreeBSD style(9) has a space between if and (. Will update prior to commit.