<p>2. At a certain point in my code, I wanted to load a pointer to the .data segment variable &quot;input&quot; into my %r10. The way to do this turned out to be</p><p> lea input(%rip), %r10</p><p>rip is… the instruction pointer?? what the devil is the instruction pointer doing there? `input` is at a fixed location, surely it&#39;s not loading it from an address relative to the fricking instruction pointer.</p>
Reply