Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Align sections #190

Merged
merged 1 commit into from
Jun 8, 2019
Merged

Align sections #190

merged 1 commit into from
Jun 8, 2019

Conversation

NickeZ
Copy link
Contributor

@NickeZ NickeZ commented May 31, 2019

Hey, I had the same issue as in #189. Don't ask me why this works I looked at other linker scripts.

Fixes #189

@NickeZ NickeZ requested a review from a team as a code owner May 31, 2019 21:57
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @korken89 (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@thejpster
Copy link
Contributor

I'll see if I can create a reproducer for #189 and test this out later today.

@therealprof
Copy link
Contributor

The change looks good to me but I'm really curious why this is necessary. Maybe some crappy/picky linkers in play?

@NickeZ
Copy link
Contributor Author

NickeZ commented Jun 1, 2019

@lthiery
Copy link

lthiery commented Jun 4, 2019

This fixed my issue. I don't understand it either, but it works 👍

@korken89
Copy link
Contributor

korken89 commented Jun 8, 2019

I had a look at the ChibiOS linker implementation, which also does this trick. It seems as the first align should be enough, but multiple sources double do it. I was also not able to reproduce though.
Feels like some linker trickery, but adding this should not alter the original intention so I will accept this.

@korken89
Copy link
Contributor

korken89 commented Jun 8, 2019

bors r+

bors bot added a commit that referenced this pull request Jun 8, 2019
190: Align sections r=korken89 a=NickeZ

Hey, I had the same issue as in #189. Don't ask me why this works I looked at other linker scripts.

Fixes #189

Co-authored-by: Niklas Claesson <nicke.claesson@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jun 8, 2019

Build succeeded

@bors bors bot merged commit a7b7193 into rust-embedded:master Jun 8, 2019
japaric added a commit that referenced this pull request Jul 11, 2019
prepare a new patch release that includes PRs #190 and #192
@japaric japaric mentioned this pull request Jul 11, 2019
bors bot added a commit that referenced this pull request Jul 11, 2019
194: v0.6.9 r=adamgreig a=japaric

prepare a new patch release that includes PRs #190 and #192

Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.bss is not 4-byte aligned
6 participants