[fpc-devel] MacOS/dwarf: Was there any change to how/when relocation info is included.
lazarus at mfriebe.de
Thu Mar 24 01:57:01 CET 2022
It appears with 3.2.2 the address of a global var in dwarf already
contains the relocation.
Since fpdebug, does not retrieve any relocation info from lldb, it does
not adjust any addresses.
But with 3.3.1 it seems different.
The test app has 2 global vars.
They can be inspected if compiled with 3.2.2.
But compile with 3.3.1 and fpdebug send the following to lldb:
memory read --force --size 1 --format x --count 4 1008
memory read --force --size 1 --format x --count 4 1012
Looks like the offset within the exe, without relocation.
Was there an intentional change to introduce this?
More information about the fpc-devel