4 ms·
What are line numbers in context of a binary?
by hwj 8y ago
What are line numbers in context of a binary?
- twtw 8y agoAddresses.
- archgoon 8y agoFile offsets; not addresses :) I assume the tool isn't reading ELF format files and working out the memory address.
- Twisol 8y agoRight, I was being a bit loose there. I meant something like how `xxd` displays the number of bytes up to the current output row. Just something to give context of where you are in the file. 00006980: 0000 0000 0000 0000 0000 0000 0000 0000
- msravi 8y agoYou can quickly find position of byte number X using: line number = floor(X/(bytes/line)) + 1 column offset = X % (bytes/line) + 1 Or it could just print byte numbers instead of line numbers.