Closed catap closed 2 years ago
@thepowersgang I not sure about condition. Maybe invert it and keep section attribute only for x86
and x86_64
is better idea.
@thepowersgang just a reminder about this one
@thepowersgang ping here!
I'm not sure hard-disabling the use of section annotations is the correct solution to that linked issue. Wouldn't adding patch for that particular bad annotation be a better solution?
@thepowersgang I haven't found the place in sources which triggers such behaviour. Anyway, section isn't supported at aarch64 => seems logical to not use it.
If that's the case - then include that in the commit and in a source comment
@thepowersgang seems I found much better solution.
I've started to find any proof that aarch64 doesn't support section and haven't found one. In fact I found that it should work.
=> I've started digging as you suggested and found an issue in rust-curl which is used. This issue was fixed in upstream. So, I've backported it to rust-curl which is used for 1.54.0 :)
Thus, you may see that original issue https://github.com/alexcrichton/curl-rust/issues/417 is near the same that I had at the end of https://github.com/thepowersgang/mrustc/issues/277:
= note: ld: reference to symbol (which has not been assigned an address) __ZN4curl4init9INIT_CTOR17h97cc33cf050cb462E in '__ZN4curl4init17ha644d831c2a57f65E' from /Users/cormac/git/tryout/libcurl-monterey/target/debug/deps/libcurl-0f9cbb7dde66dd88.rlib(curl-0f9cbb7dde66dd88.curl.0b6dcf6e-cgu.2.rcgu.o) for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Closes #277