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

Setup for cross-platform development and support #4

Merged
merged 5 commits into from
Mar 5, 2017

Conversation

robert-w-gries
Copy link
Owner

  • Use clang's integrated assembler for easier cross-platform compilation of assembly
  • Trim Makefile flags
  • Fix linker issue where _umod and _udiv could not be found
    • Solution: use compiler_builtins crate
  • Fix linker issue: undefined reference to rust_begin_unwind

* Import compiler builtin crate to fix issue with _umod and _udiv
* Trim unnecessary Makefile variables and flags
* Keep the BLOCK and ALIGN commands in linker.ld for now
* Fix linking error `undefiend reference to rust_begin_unwind`
  * `panic_fmt` was mangled through optimization
  * `panic_fmt` becomes `rust_begin_unwind`
  * Solution: add `#[no_mangle]` before `panic_fmt`
  * [Rust Issue](rust-lang/rust#38281)
@robert-w-gries robert-w-gries merged commit 5b50fae into master Mar 5, 2017
@robert-w-gries robert-w-gries deleted the feature/target-cc branch March 5, 2017 17:56
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.

1 participant