Clarify why SGX code specifies linkage/symbol names for certain statics by jethrogb · Pull Request #139795 · rust-lang/rust (original) (raw)
No, I think ARGV_INIT_ARRAY
is different. It's a list of function pointers to be sent the args and env upon initialization, as the comment says, and needs the particular link section to be recognized as such. It looks like it's doing the same thing as linkme by specifying a single element, which the linker coalesces with all others marked the same into one array. So, it's the opposite of what you're doing.
In any case, this comment change looks good.