Description
Description
NativeAOT produces static library that makes ld crash.
Reproduction Steps
This is rather complicated, it would mean checking out the branch here: xamarin/xamarin-macios#18489, and building the monotouch-test test for NativeAOT locally. If needed, I can help with that, but hopefully I can give enough info to avoid having to do this.
Repro for the ld crash with the binaries already built from NativeAOT: https://www.dropbox.com/scl/fi/ptop654nghf40cwmd8t0r/repro.zip?dl=0&rlkey=1mub7w2c94dfayvrkfvc51vn6
Just execute ./test.sh to reproduce.
The zip file also contains a binlog and the rsp file for ILC.
Crash report for ld: https://gist.github.com/rolfbjarne/acd543f3386341192258ca96aa368541
Expected behavior
No crash.
Actual behavior
Segmentation fault: 11 ld ...
Regression?
Yes.
This started happening in this maestro bump: xamarin/xamarin-macios#18489
Which has this range for dotnet/runtime: 76da696...3195fbb
Known Workarounds
Don't pass -dead_strip to the native linker.
Configuration
No response
Other information
No response
Metadata
Assignees
Labels
Type
Projects
Status
No status