I’m trying to test out this answer:
_dl_runtime_resolve — When do the shared objects get loaded in to memory?
But when I try various ways to run essentially the same as gdb "LD_BIND_NOW=y binary",it fails.
How can I run my app with this flag on inside gdb?
Two choices. First:
Or, run
gdb binaryand then inside gdb:The former will affect the gdb binary itself, which may or may not matter. The latter might not actually work 🙂