Commit f0ebd3b
committed
obtain verdefnum from verdef section header
Similarly to #611 Rust's ELF raw-dylibs do not contain the information
about verdef count.
This goes against LSB, but all the other linkers can handle it,
presumably by using `st_info` of`.gnu.version_d` section.
I'm not sure if this is the right thing to do, maybe `sh_info` should be
used just a fallback when `.dynamic` doesn't have `DT_VERDEFNUM` tag?
On current main `tests/ui/linkage-attr/raw-dylib/elf/glibc-x86_64.rs`
fails with:
```
wild: error: Failed to load symbols from `/tmp/rustcnCgdWG/raw-dylibs/lib105m6f543m4qw1t7khnttg751.so`
Caused by:
Invalid version index 1
```1 parent c9a95f0 commit f0ebd3b
2 files changed
Lines changed: 6 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
67 | | - | |
| 65 | + | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | | - | |
89 | 87 | | |
90 | 88 | | |
91 | | - | |
| 89 | + | |
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
| |||
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 104 | + | |
109 | 105 | | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
113 | 109 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 110 | | |
123 | 111 | | |
124 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5282 | 5282 | | |
5283 | 5283 | | |
5284 | 5284 | | |
5285 | | - | |
5286 | | - | |
| 5285 | + | |
5287 | 5286 | | |
| 5287 | + | |
5288 | 5288 | | |
5289 | 5289 | | |
5290 | 5290 | | |
| |||
0 commit comments