-
Notifications
You must be signed in to change notification settings - Fork 13.7k
raw-dylib-elf: set correct DT_VERDEFNUM
#145820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
rustbot has assigned @jdonszelmann. Use |
Some changes occurred in compiler/rustc_codegen_ssa |
I'm sorry but I'm not sure I can judge this, gonna ask someone else. Maybe Bjorn? r? @bjorn3 |
Makes sense. Thanks! @bors r+ rollup |
if !vers.is_empty() { | ||
stub.reserve_gnu_versym(); | ||
stub.reserve_gnu_verdef(1 + vers.len(), 1 + vers.len()); | ||
stub.reserve_gnu_verdef(verdef_count, verdef_count); | ||
} | ||
stub.reserve_dynamic(2); // DT_SONAME, DT_NULL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be updated to account for the DT_VERDEFNUM entry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, good catch!
I think readelf
would have caught this issue when manually inspecting the results, but it requires program headers to be present (without them, it just prints There is no dynamic section in this file.
).
Unfortunately, objdump
is too resilient to errors to catch that.
@bors r- |
5ddb747
to
f6e62e4
Compare
Previously it indicated a single version, regardless of their count. Observed in: davidlattimore/wild#1041
f6e62e4
to
b1be775
Compare
Sorry for the pushes in the rapid succession. I was too hastily with a fix. I have to admit, syncing both places is a bit annoying, but I don't know if creating a wrapper over |
@bors r+ |
raw-dylib-elf: set correct `DT_VERDEFNUM` Previously it indicated a single version, regardless of their count. Observed in: davidlattimore/wild#1041
Rollup of 6 pull requests Successful merges: - #135761 (Dial down detail of B-tree description) - #144373 (remove deprecated Error::description in impls) - #145620 (Account for impossible bounds making seemingly unsatisfyable dyn-to-dyn casts) - #145783 (add span to struct pattern rest (..)) - #145817 (cg_llvm: Replace the `llvm::Bool` typedef with a proper newtype) - #145820 (raw-dylib-elf: set correct `DT_VERDEFNUM`) r? `@ghost` `@rustbot` modify labels: rollup
raw-dylib-elf: set correct `DT_VERDEFNUM` Previously it indicated a single version, regardless of their count. Observed in: davidlattimore/wild#1041
Previously it indicated a single version, regardless of their count.
Observed in: davidlattimore/wild#1041