Page MenuHomeFreeBSD

elfctl: allow features to be specified by value
ClosedPublic

Authored by emaste on Jan 22 2021, 5:25 PM.
Tags
None
Referenced Files
F163260276: D28284.id.diff
Tue, Jul 21, 12:56 PM
Unknown Object (File)
Sun, Jul 12, 2:11 AM
Unknown Object (File)
Sun, Jul 5, 1:52 PM
Unknown Object (File)
Thu, Jun 25, 1:40 AM
Unknown Object (File)
Jun 19 2026, 12:12 AM
Unknown Object (File)
Jun 18 2026, 1:10 PM
Unknown Object (File)
Jun 12 2026, 8:11 PM
Unknown Object (File)
Jun 8 2026, 11:06 PM
Subscribers

Details

Summary

This will allow elfctl on older releases to set bits that are not yet known there, so that the binary will have the correct settings applied if run on a later FreeBSD version.

Suggested by: kib
Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.
usr.bin/elfctl/elfctl.c
264

Do you want to check that only single bit is set in the val?

usr.bin/elfctl/elfctl.c
264

I didn't do that semi-intentionally, so that you could use e.g. elfctl -e =0x81.

Add example of combining numerical values to man page

This revision is now accepted and ready to land.Jan 22 2021, 7:25 PM