You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is useful to pass -Wl,-e_<entry> to the linker, even for shared libraries, it doesn't seem like #[start] can change cdylib entry address, if this is intended, is there anyway to change entry address for cdylib?
The text was updated successfully, but these errors were encountered:
#[start] only affects which function will be called by the auto generated main function for executables. Using it to pass -Wl,-e_<entry> is wrong as that skips the initialization code of libc. You can pass -Clink-arg=-Wl,-e_<entry> to rustc when compiling if you want to pass this to the linker.
It is useful to pass
-Wl,-e_<entry>
to the linker, even for shared libraries, it doesn't seem like#[start]
can changecdylib
entry address, if this is intended, is there anyway to change entry address forcdylib
?The text was updated successfully, but these errors were encountered: