Pointed out by Eric Decker <cire831@gmail.com>.
The old implementation only worked on little-endian machines, and relied on a particular struct layout.
The binfile extraction and programming code is now aware of section names when dealing with ELF32 files. The names are displayed when programming, and chunks in different sections aren't combined, even if they're contiguous.