Page MenuHomeFreeBSD

ctfmerge: demote "No ctf sections found" to a warning
ClosedPublic

Authored by emaste on Feb 14 2024, 3:06 PM.
Tags
None
Referenced Files
F132356601: D43878.diff
Thu, Oct 16, 4:57 AM
Unknown Object (File)
Tue, Oct 7, 12:22 AM
Unknown Object (File)
Sun, Sep 28, 3:21 AM
Unknown Object (File)
Aug 13 2025, 4:41 AM
Unknown Object (File)
Aug 9 2025, 6:10 AM
Unknown Object (File)
Jul 10 2025, 9:54 PM
Unknown Object (File)
Jul 7 2025, 11:56 AM
Unknown Object (File)
Jul 5 2025, 7:17 PM
Subscribers

Details

Summary

If there are no CTF sections then ctfmerge just has nothing to do; it
should not be an error.

Note that ctfmerge as an option to require CTF:

-t      Make sure that all object files have a CTF section.

This option explicitly exited without error if none of the object files
have CTF sections, with the comment:

If we're verifying that C files have CTF, it's safe to
assume that in this case, we're building only from assembly
inputs.

(Creating new review as f48cd806e04a7d6f459cfd93dba283465d40e190 was accidentally committed with a reference to D43877)

Diff Detail

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