Page MenuHomeFreeBSD

csu: define STRIP_FBSDID
ClosedPublic

Authored by emaste on Dec 20 2021, 9:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 8 2024, 7:32 AM
Unknown Object (File)
Mar 8 2024, 7:32 AM
Unknown Object (File)
Mar 8 2024, 7:32 AM
Unknown Object (File)
Mar 8 2024, 7:20 AM
Unknown Object (File)
Jan 13 2024, 5:53 PM
Unknown Object (File)
Dec 20 2023, 4:56 AM
Unknown Object (File)
Dec 15 2023, 2:39 PM
Unknown Object (File)
Dec 15 2023, 9:22 AM

Details

Summary

__FBSDID() places the provided string in the output object's .comment section. However, with the transition to Git $FreeBSD$ is no longer expanded and so we emitted a literal $FreeBSD$.

$FreeBSD$ will be addressed in a holistic manner in the future, but for now define STRIP_FBSDID to at least avoid having it embedded into everything linked on FreeBSD (via csu).

Diff Detail

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

Event Timeline

emaste created this revision.

Why not define STRIP_FBSDID globally, reusing the same argument?

This revision was not accepted when it landed; it landed in state Needs Review.Dec 21 2021, 6:35 PM
This revision was automatically updated to reflect the committed changes.

Why not define STRIP_FBSDID globally, reusing the same argument?

Yes, although perhaps change the sense and make it EMBED_FBSDID instead?

Oops, I did not intend to push this to main yet. I will open another review for an alternate approach.