unleashed-firmware/lib/flipper_application
Samar Sunkaria 8ffee678c6
Add support for R_ARM_REL32 relocations. (#3631)
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>
2024-05-13 16:21:28 +01:00
..
api_hashtable Api Symbols: replace asserts with checks (#3507) 2024-03-19 23:43:52 +09:00
elf Add support for R_ARM_REL32 relocations. (#3631) 2024-05-13 16:21:28 +01:00
plugins Api Symbols: replace asserts with checks (#3507) 2024-03-19 23:43:52 +09:00
application_assets.c Storage: force mount (#3033) 2023-09-04 14:10:07 +09:00
application_assets.h Embed assets in elf file (#2466) 2023-03-10 01:01:53 +10:00
application_manifest.c Api Symbols: replace asserts with checks (#3507) 2024-03-19 23:43:52 +09:00
application_manifest.h Various Fixes and Improvements (#3059) 2023-09-11 16:23:00 +10:00
flipper_application.c Api Symbols: replace asserts with checks (#3507) 2024-03-19 23:43:52 +09:00
flipper_application.h fbt: doxygen target (#3510) 2024-03-21 01:32:53 +09:00
SConscript [FL-3097] fbt, faploader: minimal app module implementation (#2420) 2023-03-14 23:29:28 +09:00