R_PPC_REL24 relocation question for understanding
Offen
question
- Vorherrschende Sprache
- Python
- Sterne
- 485
- Forks
- 135
- Ø Merge
- 2 T. 2 Std.
- Gemergte PRs (30 T.)
- 15
Beschreibung
### Question
cle/backends/elf/relocation/ppc.py
Lines 212-213: Not questioning your code, just trying to understand how these relocations work.
I know the PPC ELF spec says the formula for this reloc type is (S + A - P) >> 2. So how do you know/why do you need to left shift it by 2 on the next line? It seems like undoing what was just done
Similar question applies to ppc64.py in class R_PPC64_REL24.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.