-
Notifications
You must be signed in to change notification settings - Fork 85
Conversation
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. |
I'll see if I can create a reproducer for #189 and test this out later today. |
The change looks good to me but I'm really curious why this is necessary. Maybe some crappy/picky linkers in play? |
I saw this technique in the template linker scripts you get from microchip (atmel). You can see an example here: https://github.com/digitalbitbox/mcu/blob/master/bootloader.ld I'm not using any strange linker, it is GCC 8. |
This fixed my issue. I don't understand it either, but it works 👍 |
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. |
bors r+ |
Build succeeded |
Hey, I had the same issue as in #189. Don't ask me why this works I looked at other linker scripts.
Fixes #189