commit | 7a337d8b2340f6d8bd1be58a280691cb2a40956a | [log] [tgz] |
---|---|---|
author | Roland McGrath <mcgrathr@google.com> | Wed Nov 11 17:11:12 2020 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Wed Nov 11 17:11:12 2020 +0000 |
tree | bc76ce65ef6f27daa7af9ba20b9c1b8b3ae364d6 | |
parent | 3cd720e5a1d9390100554f50206bff8d2621c87b [diff] |
[kernel][lib/arch] Work around GCC bug in BootCpuidIo::GetLeaf template GCC fails to honor the `section` attribute when in a COMDAT context like a template instantiation. There doesn't seem to be any way to get GCC to emit the right thing. So in the GCC build just skip the preinitialized special section and do on-demand initialization for template instantiations. The explicitly specialization instantiations used from assembly can still use the special section since those variable definitions are outside any COMDAT context. Bug: 27083, 64109 Change-Id: Ie4d4ff29c5c1c8b3a6c7d8115addbac9d677029d Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/449394 Commit-Queue: Joshua Seaton <joshuaseaton@google.com> Reviewed-by: Joshua Seaton <joshuaseaton@google.com> Testability-Review: Roland McGrath <mcgrathr@google.com> Fuchsia-Auto-Submit: Roland McGrath <mcgrathr@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.