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
Unknown Object (File)
Sun, Oct 27, 10:38 AM
Unknown Object (File)
Sun, Oct 27, 7:26 AM
Unknown Object (File)
Thu, Oct 24, 7:56 AM
Unknown Object (File)
Thu, Oct 24, 7:52 AM
Unknown Object (File)
Fri, Oct 18, 9:02 PM
Unknown Object (File)
Oct 1 2024, 7:31 PM
Unknown Object (File)
Sep 30 2024, 5:44 PM
Unknown Object (File)
Sep 26 2024, 5:22 AM
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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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