mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 06:50:21 +00:00
8ffee678c6
It is fairly straightforward to correctly resolve an R_ARM_REL32 relocation as described in in the "Relocation types" section of ARM ELF Specification (https://developer.arm.com/documentation/espc0003/1-0/?lang=en). The documentation provides the following formula: ``` S - P + A ``` where `S` is the value of the symbol (symAddr), `P` is the address of the place being relocated (relAddr), and `A` is the addend (value extracted from the storage unit being relocated, in this case). I encountered the R_ARM_REL32 relocation type as part of my work for building apps written in Swift for the Flipper Zero. I have manually tested that this relocation works correctly by building and running multiple apps that depend on this relocation. Co-authored-by: あく <alleteam@gmail.com> |
||
---|---|---|
.. | ||
api_hashtable | ||
elf | ||
plugins | ||
application_assets.c | ||
application_assets.h | ||
application_manifest.c | ||
application_manifest.h | ||
flipper_application.c | ||
flipper_application.h | ||
SConscript |