Patch Set 6:

I worked around that error with the hack below.

Yes, this is a current limitation of LTO right now. Because the object files are all lumped together into a single unit, all information about where the symbols came from is lost, so EXCLUDE_FILE is unable of excluding the AGESA objects from the illegal_globals check. Tracing where a symbol came from has been implemented in LLVM [0], but I'm not sure if it's on the roadmap for GCC. For now it's probably best to disable LTO when compiling AGESA.


View Change

To view, visit change 38989. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I48c31ea8b1b57276125cffdac44c7c16642547ac
Gerrit-Change-Number: 38989
Gerrit-PatchSet: 6
Gerrit-Owner: Jacob Garber <>
Gerrit-Reviewer: Jacob Garber <>
Gerrit-Reviewer: Julius Werner <>
Gerrit-Reviewer: Martin Roth <>
Gerrit-Reviewer: Michał Żygowski <>
Gerrit-Reviewer: Patrick Georgi <>
Gerrit-Reviewer: Paul Menzel <>
Gerrit-Reviewer: Philipp Hug <>
Gerrit-Reviewer: build bot (Jenkins) <>
Gerrit-Reviewer: ron minnich <>
Gerrit-CC: HAOUAS Elyes <>
Gerrit-Comment-Date: Sun, 26 Apr 2020 19:20:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment