Support defaults for static EIIs#156583
Conversation
|
r? @mu001999 rustbot has assigned @mu001999. Use Why was this reviewer chosen?The reviewer was selected based on:
|
There was a problem hiding this comment.
LGTM, but I’ll defer to @JonathanBrouwer in case I’ve missed anything.
r? JonathanBrouwer
|
|
|
I'm currently on holidays but would like to take a look, might take me a few days to get around to it |
81c9617 to
d7f16d7
Compare
There was a problem hiding this comment.
@bors r+ rollup
Looks good, thanks!
Wanted to implement this immediately after my PR that implemented static EIIs but forgot :3
|
@bors r=JonathanBrouwer,mu001999 |
…JonathanBrouwer,mu001999 Support defaults for static EIIs Tracking issue: rust-lang#125418 rust-lang#154193 added EII support for statics, but left default implementations for "a followup PR". This PR implements it. Maybe I should remove `no-prefer-dynamic` if rust-lang#156577 is accepted.
…JonathanBrouwer,mu001999 Support defaults for static EIIs Tracking issue: rust-lang#125418 rust-lang#154193 added EII support for statics, but left default implementations for "a followup PR". This PR implements it. Maybe I should remove `no-prefer-dynamic` if rust-lang#156577 is accepted.
|
This pull request was unapproved. This PR was contained in a rollup (#156679), which was unapproved. |
|
After some investigation, I think this is hitting an LLVM issue: llvm/llvm-project#111321 For @_RNvNvCshLcOpHkWMCm_17decl_with_default1__5DECL1 =
constant [8 x i8] c"\05\00\00\00\00\00\00\00", align 8
@_RNvCshLcOpHkWMCm_17decl_with_default5DECL1 =
linkonce alias i64, ptr @_RNvNvCshLcOpHkWMCm_17decl_with_default1__5DECL1The second symbol is the EII foreign item symbol. In the generated Mach-O object it becomes non-external: Then, when the aux crate is built as a dylib, ld64 fails because the linker’s initial-undefines list requires the EII symbol to be externally resolvable: I also checked whether What should I do here?
|
Tracking issue: #125418
#154193 added EII support for statics, but left default implementations for "a followup PR". This PR implements it.
Maybe I should remove
no-prefer-dynamicif #156577 is accepted.