-
Notifications
You must be signed in to change notification settings - Fork 160
[REBASE & FF] BaseTools: Update tools_def for AARCH64 #1313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REBASE & FF] BaseTools: Update tools_def for AARCH64 #1313
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good to get in basecore once you have decided this is the set of changes needed for booting with this toolchain, but then we should upstream to edk2.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev/202502 #1313 +/- ##
=============================================
Coverage ? 1.59%
=============================================
Files ? 1408
Lines ? 364700
Branches ? 4570
=============================================
Hits ? 5799
Misses ? 358828
Partials ? 73
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
094c0ad
to
bcb6bd9
Compare
/WX was added as a build flag and now aarch64 builds fail because of an undocumented linker warning: 4226 Alignment specified exceeds target machine page size. This linker warning has always occured and can be ignored. Signed-off-by: Vivian Nowka-Keane <vnowkakeane@linux.microsoft.com>
Alignment needed to be updated to 64 because of a linker warning when building with MSVC. /ALIGN:64 is the minimum alignment for MSVC ARM64, which differs from MSVC x64. This was missed when checking into edk2 because CI isn't run for MSVC ARM64. Signed-off-by: Vivian Nowka-Keane <vnowkakeane@linux.microsoft.com>
bcb6bd9
to
1b4a75e
Compare
Description
Update tools def for aarch64 for new 202502 build tools changes.
/WX was added in 202502 as a build flag and now Aarch64 builds
fail. The first failure is because of an undocumented linker warning: 4226 Alignment specified exceeds target machine page size. The second is because the minimum alignment for MSVC ARM64 is 64.
Changes made:
#1164 from BaseLib.lib(CpuBreakpoint.obj) : fatal section 0x1 alignment (64) greater than /ALIGN value
. 64 is the minimum alignment for MSVC ARM64, which differs from MSVC x64 and was missed when checking into edk2 because ARM64 MSVC CI isn't ran.How This Was Tested
CI and platform build with aarch64
Integration Instructions
N/A
To be upstreamed to edk2