Page MenuHomeFreeBSD

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

Authored by emaste on Feb 14 2024, 2:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 10:07 AM
Unknown Object (File)
Tue, Oct 22, 9:06 PM
Unknown Object (File)
Tue, Oct 22, 9:06 PM
Unknown Object (File)
Tue, Oct 22, 9:05 PM
Unknown Object (File)
Tue, Oct 22, 8:58 PM
Unknown Object (File)
Oct 4 2024, 2:02 AM
Unknown Object (File)
Oct 3 2024, 12:16 PM
Unknown Object (File)
Oct 1 2024, 9:53 AM
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.

Diff Detail

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