Commit 425fe33
authored
[lldb] Fix unaligned writes in ObjectFileELF (llvm#165759)
The code to apply relocations was sometimes creating unaligned
destination pointers. Instead of giving them an explicit type (i.e.
`uint64_t *`) and forcing the compiler to generate unaligned stores,
mark the pointer as `void *`. The compiler will figure out the correct
series of store instructions.1 parent 84a9ed2 commit 425fe33
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2735 | 2735 | | |
2736 | 2736 | | |
2737 | 2737 | | |
2738 | | - | |
2739 | | - | |
2740 | | - | |
| 2738 | + | |
| 2739 | + | |
2741 | 2740 | | |
2742 | 2741 | | |
2743 | 2742 | | |
| |||
2762 | 2761 | | |
2763 | 2762 | | |
2764 | 2763 | | |
2765 | | - | |
2766 | | - | |
2767 | | - | |
| 2764 | + | |
| 2765 | + | |
2768 | 2766 | | |
2769 | 2767 | | |
2770 | 2768 | | |
| |||
0 commit comments