Fill in more of the ELF reading stuff, and add a test.