Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why is the symbol table displayed by elfdump a bit different from my symbol table?

bit different symbol Table
0
Posted

Why is the symbol table displayed by elfdump a bit different from my symbol table?

0

First, the length of the symbol table of the object file might be different from that of your symbol table. This is because the output interface adds extra symbols which are the names of the sections after the two-pass assembly. Second, the sequence number of each symbol in the symbol table of the object file might be different from that in your symbol table. This is because the output interface will sort the symbols and assign new sequence numbers to them after the two-pass assembly. The same is applied to the section indices, — the output interface will sort the sections and assign new section indices to them after the two-pass assembly.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123