Page MenuHomeFreeBSD

readelf: decode FreeBSD note types
ClosedPublic

Authored by emaste on Feb 1 2019, 3:11 PM.
Tags
None
Referenced Files
F83146844: D19054.diff
Mon, May 6, 11:19 PM
Unknown Object (File)
Fri, May 3, 10:29 PM
Unknown Object (File)
Tue, Apr 30, 5:34 AM
Unknown Object (File)
Tue, Apr 30, 5:34 AM
Unknown Object (File)
Tue, Apr 30, 5:34 AM
Unknown Object (File)
Tue, Apr 30, 5:00 AM
Unknown Object (File)
Tue, Apr 30, 5:00 AM
Unknown Object (File)
Mon, Apr 29, 10:00 PM
Subscribers

Details

Summary

Sample output:

% usr.bin/readelf/obj/readelf -n a.out.modified

Notes at offset 0x00000288 with length 0x00000048:
  Owner         Data size       Description
  FreeBSD       0x00000004      NT_FREEBSD_ABI_TAG
   ABI tag: 1300005
  FreeBSD       0x00000004      NT_FREEBSD_FEATURE_CTL
   Features: ASLR_DISABLE
  FreeBSD       0x00000004      NT_FREEBSD_NOINIT_TAG
   description data: 00 00 00 00

Diff Detail

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

Event Timeline

LGTM

contrib/elftoolchain/readelf/readelf.c
3494 ↗(On Diff #53510)

Is it local style to declare this sort of thing nearby? style(9) would be it above all the functions.

This revision is now accepted and ready to land.Feb 1 2019, 6:15 PM
contrib/elftoolchain/readelf/readelf.c
3494 ↗(On Diff #53510)

They seem to be distributed in the existing file; probably they should actually be split out into a notes.c file but I would do that upstream to avoid conflicts

This revision now requires review to proceed.Feb 1 2019, 9:57 PM
contrib/elftoolchain/readelf/readelf.c
3504 ↗(On Diff #53526)

May be print something explaining why the note is not decoded.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 1 2019, 10:24 PM
This revision was automatically updated to reflect the committed changes.