-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix libfdt linking when compiled using -fstack-protector #2595
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.
Changes look good, I only have a comment around isolating x86_64 from this change.
[package] | ||
name = "libfdt-bindings" | ||
version = "0.1.0" | ||
authors = ["Amazon Firecracker team <[email protected]>"] | ||
edition = "2018" | ||
build = "build.rs" |
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.
I'd prefer we only build this under aarch64
. Either with an arch gate at the crate level (the crate wouldn't even exist on other archs), or with a code-level gate (crate exists but is empty).
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.
I couldn't find a way to add an arch gate at the crate level, but there are code-level gates. Also I added a gate for the dependencies.
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.
💯
Signed-off-by: Serban Iorga <[email protected]>
Signed-off-by: Serban Iorga <[email protected]>
Signed-off-by: Serban Iorga <[email protected]>
Signed-off-by: Serban Iorga <[email protected]>
Reason for This PR
fix libfdt linking when compiled using
-fstack-protector
Description of Changes
As part of #2579 we pushed a commit that involved compiling libfdt using
-fno-stack-protector
in order to workaround rust-lang/rust#79791 .This is a cleaner fix that enables us to compile firecracker using rust toolchain 1.52.1 even when libfdt is compiled using
-fstack-protector
rust-vmm
.License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.
PR Checklist
[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]
git commit -s
).unsafe
code is properly documented.firecracker/swagger.yaml
.CHANGELOG.md
.