HNHacker News
TopNewBestAskShowJobs

kdunwoody

1 karma · joined April 26, 2017

submissionscomments
kdunwoody··on Elf Hello World
Definitely not. In rough order of importance:

1. Space for NULL should be big enough for at least a medium-sized structure, otherwise (*NULL)->field = blah will overwrite your code. 2. Because of (1), Linux (for example) doesn't even allow processes to map the first page or so of memory. 3. On many platforms the PC needs to be aligned to a word boundary.