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
F86573615: D24322.id70298.diff
Sat, Jun 22, 10:30 AM
Unknown Object (File)
Wed, Jun 19, 8:39 PM
Unknown Object (File)
Sat, Jun 15, 2:50 AM
Unknown Object (File)
Sat, Jun 1, 9:14 PM
Unknown Object (File)
Sat, Jun 1, 12:40 PM
Unknown Object (File)
May 18 2024, 12:18 AM
Unknown Object (File)
May 10 2024, 11:44 PM
Unknown Object (File)
Apr 18 2024, 11:01 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.