Grammar for ELF file?

0 votes
asked Oct 5, 2016 by zet2002 (120 points)
There was a post a long time ago about a Grammar file for ELF, but the link is no longer valid.  Can anybody help?

2 Answers

0 votes
answered Oct 7, 2016 by harrymallen (140 points)

ELF files are Executable Linkable Format which consists of a symbol look-ups and relocatable table, that is, it can be loaded at any memory address by the kernel and automatically, all symbols used, are adjusted to the offset from that memory address where it was loaded into. Usually ELF files have a number of sections, such as 'data', 'text', 'bss', to name but a few...it is within those sections where the run-time can calculate where to adjust the symbol's memory references dynamically at run-time. Click here for getting more reference.

0 votes
answered Oct 9, 2016 by andreas (1,720 points)

Here's what exists so far: https://www.synalysis.net/Grammars/elf32.grammar

Of course any extension is appreciated and I'll publish a more complete grammar on the web site.

...