Page MenuHomeFreeBSD

elftcl: add -i flag to ignore unknown flags
ClosedPublic

Authored by emaste on Jan 13 2021, 3:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 22, 6:24 AM
Unknown Object (File)
Sat, Dec 21, 4:15 PM
Unknown Object (File)
Nov 27 2024, 3:16 PM
Unknown Object (File)
Nov 12 2024, 8:09 PM
Unknown Object (File)
Nov 7 2024, 6:42 PM
Unknown Object (File)
Nov 7 2024, 5:41 PM
Unknown Object (File)
Oct 22 2024, 4:11 PM
Unknown Object (File)
Oct 3 2024, 10:55 PM
Subscribers
None

Details

Summary

This may allow an identical elfctl invocation to be used on multiple FreeBSD versions, with features not implemented on older releases being silently ignored.

PR: 252629 (related)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.
emaste added a reviewer: markj.
usr.bin/elfctl/elfctl.c
206

Add -i flag there ?

235

I suggest to print something anyway, so e.g. typos are still being caught. May be add quit mode where nothing is printed at all but I am not sure it is needed.

leave warning in place with -i, per kib

This revision is now accepted and ready to land.Jan 13 2021, 5:03 AM
This revision was automatically updated to reflect the committed changes.