News for hackers. Stuff that matters.
Re:i386 Assembly Language trick for storing data in .text by fargle on Thursday November 09, 2023 @11:50AM (#38207423)
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.

There are no comments on this comment yet.