Skip to content
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

Ensure reproducible builds regardless of build path #229

Conversation

vagrantc
Copy link
Contributor

Upstream commit 12753d2 introduced
uses of FILE which may result in the build path getting embedded
into the resulting binary.

The -ffile-prefix-map argument is available in gcc 8 and clang 10, which can be used to strip out the absolute part of the path from the artifacts the compiler produces.

https://reproducible-builds.org/docs/build-path/

Signed-off-by: Vagrant Cascadian vagrant@reproducible-builds.org

build path.

Upstream commit 12753d2 introduced
uses of __FILE__ which may result in the build path getting embedded
into the resulting binary.

https://reproducible-builds.org/docs/build-path/

Signed-off-by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Copy link
Collaborator

@alistair23 alistair23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me!

OpenSBI prefers patches be submitted to the mailing list for approval though, you can find more details about this here: https://github.com/riscv-software-src/opensbi/blob/master/docs/contributing.md

@avpatel
Copy link
Collaborator

avpatel commented Dec 2, 2021

This has been taken care by new sbi_panic() and SBI_ASSERT() support in sbi_console.h

@avpatel avpatel closed this Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants