3 ms·
the author wanted it to be position-independent (PIC), so it works no matter what address the .text segment is loaded to and run. This example uses a fixed sym
by fargle 3y ago
the author wanted it to be position-independent (PIC), so it works no matter what address the .text segment is loaded to and run.
This example uses a fixed symbolic reference ("string:") and is the normal way to do it. The trick is to it in a PC relative way.