Page MenuHomeFreeBSD

readelf: decode FreeBSD note types

Authored by emaste on Feb 1 2019, 3:11 PM.



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

rS FreeBSD src repository - subversion
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline


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
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
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.