Why is the symbol table displayed by elfdump a bit different from my symbol table?
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.