3 ms·
> I would expect that the symbol names would need to be passed to the command that produced the object file from the binary file: It's the other way around. Th
by CraneWorm 6y ago
> I would expect that the symbol names would need to be passed to the command that produced the object file from the binary file:
It's the other way around. The command produces these symbols basing on the file name:
$ readelf --symbols myself.o
Symbol table '.symtab' contains 5 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 SECTION LOCAL DEFAULT 1
2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 1 _binary_quine_c_start
3: 0000000000000113 0 NOTYPE GLOBAL DEFAULT ABS _binary_quine_c_size
4: 0000000000000113 0 NOTYPE GLOBAL DEFAULT 1 _binary_quine_c_end