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

Make GCC work #1

Closed
Thalhammer opened this issue Oct 31, 2018 · 2 comments
Closed

Make GCC work #1

Thalhammer opened this issue Oct 31, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Thalhammer
Copy link
Owner

For some reason I don't know yet, the builds produced by GCC do not work.
They compile fine and a quick inspection of the generated file shows no obvious problems and yet when one tries to use it the module gets bricked and a hard reset is required (which makes trial and error debugging quite a challenge).
However, the problem is definitely not with objcopy since when used with the elf generated using armcc it generates exactly the same result as fromelf (md5sum match).
So there must be something wrong with the generated code.
Can't validate linking since the object files generated by armcc don't work with normal ld.

@Thalhammer Thalhammer added the bug Something isn't working label Oct 31, 2018
@Thalhammer Thalhammer self-assigned this Oct 31, 2018
@Thalhammer
Copy link
Owner Author

The module no more crashes, but uart only sends garbage for some reason. The same code compiled using armcc works fine. However I can't see any obvious differences in the generated asm.

@Thalhammer
Copy link
Owner Author

Figured it out 😄
It does not like -mabi=apcs-gnu, leaving it out it seems to work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant