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)
Sat, May 4, 1:08 PM
Unknown Object (File)
Fri, May 3, 3:19 AM
Unknown Object (File)
Thu, May 2, 11:45 AM
Unknown Object (File)
Wed, Apr 24, 1:30 PM
Unknown Object (File)
Mar 22 2024, 3:04 PM
Unknown Object (File)
Mar 2 2024, 8:10 AM
Unknown Object (File)
Jan 17 2024, 2:51 PM
Unknown Object (File)
Dec 20 2023, 7:25 AM
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

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

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.