Page MenuHomeFreeBSD

elfctl: avoid touching file if no change
ClosedPublic

Authored by emaste on May 25 2021, 2:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 9, 6:55 PM
Unknown Object (File)
Thu, Jan 9, 6:32 PM
Unknown Object (File)
Wed, Jan 8, 1:45 PM
Unknown Object (File)
Dec 10 2024, 11:45 PM
Unknown Object (File)
Dec 5 2024, 7:09 AM
Unknown Object (File)
Nov 27 2024, 7:54 AM
Unknown Object (File)
Nov 25 2024, 3:36 AM
Unknown Object (File)
Oct 24 2024, 7:18 PM

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.
markj added inline comments.
usr.bin/elfctl/elfctl.c
307

I am surprised that we do not use libelf to write the update.

This revision is now accepted and ready to land.May 25 2021, 3:11 PM
usr.bin/elfctl/elfctl.c
307

I am surprised that we do not use libelf to write the update.

Yeah, we could; libelf doesn't really provide much in the way of convenience functions for accessing or modifying individual notes, but we could operate on the note section in memory and use libelf to write it back out.

I briefly considered the possibility that there might want to be some sort of force flag, but I don't see a lot of value.

This revision was automatically updated to reflect the committed changes.

I briefly considered the possibility that there might want to be some sort of force flag, but I don't see a lot of value.

Yeah, I gave that some brief thought too, and couldn't see a real use.