This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: A question about setting location counter to a new value in output section
Hi, Alan
> Symbol values in an ELF executable or shared object are virtual
> addresses, not section offsets.
I finally understand what you said. nm command gives me the virtual
address not the relative offset from the start of custom_section. The
documentation is correct. The output of nm is also correct. My
understanding is wrong. Many thanks for your help!
Regards,
Hao Lee