Skip to content

Add SEV assembly instruction #86

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

Merged
merged 1 commit into from
Apr 12, 2018
Merged

Add SEV assembly instruction #86

merged 1 commit into from
Apr 12, 2018

Conversation

Nemo157
Copy link
Contributor

@Nemo157 Nemo157 commented Apr 12, 2018

No description provided.

@japaric
Copy link
Member

japaric commented Apr 12, 2018

Thanks, @Nemo157!

bors r+

bors bot added a commit that referenced this pull request Apr 12, 2018
86: Add SEV assembly instruction r=japaric a=Nemo157



Co-authored-by: Wim Looman <[email protected]>
@bors
Copy link
Contributor

bors bot commented Apr 12, 2018

Build succeeded

@bors bors bot merged commit 5ec0518 into rust-embedded:master Apr 12, 2018
@Nemo157 Nemo157 deleted the sev branch April 12, 2018 14:32
adamgreig added a commit that referenced this pull request Jan 12, 2022
Previously .data's LMA was specified by a computated address instead of
placing it into FLASH explicitly, which means FLASH overflows caused by
.data would not be detected by the linker.

Fixes #86.
adamgreig added a commit that referenced this pull request Jan 12, 2022
87: Update linker script to put .data into FLASH r=japaric a=adamgreig

This is the updated linker script and test from #86.

Sadly it looks like LLD does not use the `ALIGN(4)` in the `.data` section header to align the LMA (unlike gcc), so we still need the `. = ALIGN(4)` at the end of `.rodata` to ensure LMA alignment.

I've added a failing example which the ci script ensures fails when `.data` causes overflow. It just checks for non-zero return from cargo rather than specifically grepping for the linker error messages about `.data` overflowing; since we only have the one failing example I could remove the loop and just specifically check it and grep for the relevant error from gcc and lld if people think that would be better.

Co-authored-by: Adam Greig <[email protected]>
Co-authored-by: Jorge Aparicio <[email protected]>
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.

2 participants