The whole concept of position dependent executables is deprecated. While there are some compatibility affordances for this on Intel, none of these are available on Apple silicon.
Hofi wrote:
Even though man ld
shows it as an available command line switch, its
usage gives a warning … and seems not to be working anymore.
This is related to the transition from ld64
to ld_prime
. See An Apple Library Primer for more on that.
My question for both of you: Why do you need this? What specific higher-level goal are you trying to accomplish?
This matters because, if the goal is some sort of testing or debugging thing, there’s probably some sort of reasonable path forward. However, if you intend to ship a product that relies on running an executable a specific address, I recommend that you rethink your plans.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"