Page MenuHomeFreeBSD

readelf: decode FreeBSD note types
ClosedPublic

Authored by emaste on Feb 1 2019, 3:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 2:28 PM
Unknown Object (File)
Sun, Apr 7, 5:32 AM
Unknown Object (File)
Sat, Apr 6, 2:09 AM
Unknown Object (File)
Sat, Apr 6, 2:08 AM
Unknown Object (File)
Feb 28 2024, 3:27 PM
Unknown Object (File)
Feb 17 2024, 4:02 PM
Unknown Object (File)
Feb 2 2024, 1:52 PM
Unknown Object (File)
Jan 30 2024, 9:21 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

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

LGTM

contrib/elftoolchain/readelf/readelf.c
3494

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

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

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.