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
F142002838: D28130.id82186.diff
Wed, Jan 14, 6:34 PM
Unknown Object (File)
Thu, Dec 18, 4:02 AM
Unknown Object (File)
Dec 16 2025, 5:13 AM
Unknown Object (File)
Dec 12 2025, 10:17 PM
Unknown Object (File)
Dec 11 2025, 4:18 PM
Unknown Object (File)
Dec 11 2025, 10:12 AM
Unknown Object (File)
Nov 17 2025, 10:00 PM
Unknown Object (File)
Nov 10 2025, 8:35 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
207

Add -i flag there ?

236

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.