Page MenuHomeFreeBSD

Allow the kernel to build with a compiler that sets -fno-common.
ClosedPublic

Authored by brooks on Apr 6 2020, 10:35 PM.
Tags
None
Referenced Files
F83997046: D24322.diff
Sat, May 18, 12:18 AM
Unknown Object (File)
Fri, May 10, 11:44 PM
Unknown Object (File)
Thu, Apr 18, 11:01 AM
Unknown Object (File)
Apr 17 2024, 5:13 AM
Unknown Object (File)
Dec 31 2023, 2:41 AM
Unknown Object (File)
Dec 20 2023, 6:22 AM
Unknown Object (File)
Dec 12 2023, 5:11 AM
Unknown Object (File)
Sep 6 2023, 4:42 AM
Subscribers
None

Details

Summary

The mechanism that generates assym.inc and offset.inc depends on the
symbols in question being common. For now, simply force the object files
to be created with -fcommon.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30334
Build 28102: arc lint + arc unit

Event Timeline

I took a brief look at rewriting the awk to work with either -fcommon or -fno-common a lttle bit ago, but that's non-trivial as things don't line up as neatly.

This revision is now accepted and ready to land.Apr 6 2020, 10:38 PM

The values are also quite different if you diff the nm output. I think this whole thing will need to be rethought eventually, but removing -fcommon is probably a long ways off.