Re: How to lookup the unnamed string constant in the generated object or executable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> I understand what it means. But my question is what raw-data fields in
>> the ELF file is used to figure this out the address is 0xec4 relative
>> to the current instruction? My question is not about how to interpret
>> what `0xec4(%rip)` means.
>
> Nothing is figured out. The linker computes the offset and hard-codes
> it into the instruction. This offset does not change after the linking
> step.

The question is how 0xec4 is computed from the object file.

-- 
Regards,
Peng



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux