Commit bf697b0
committed
hwasan: Fix relocation errors by adjusting
We don't want to apply `PointerTagShift` to the alias address of `NewGV`
that replaces the `GV` we are instrumenting, because that makes the
address huge and results in relocation errors such as:
hwaddress.7rcbfp3g-cgu.0:(.text.main+0x7c): \
relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.data.rel.ro..L.hwasan'
unless optimizations happens get rid of the faulty calculation.NewGV alias address calculation1 parent e1ae126 commit bf697b0
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
| 1766 | + | |
1769 | 1767 | | |
1770 | 1768 | | |
1771 | 1769 | | |
| |||
0 commit comments