summaryrefslogtreecommitdiff
path: root/src/drivers/ao_fat.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-23 02:10:38 -0700
committerKeith Packard <keithp@keithp.com>2013-03-31 12:42:37 -0700
commitdb01557ce493c435db177fda78653697ba2afa51 (patch)
tree8015caaa9b16140317f390a2b4b2aeb2c76db6e8 /src/drivers/ao_fat.c
parent144b44e13ce3361ff59cbb555e84d542455a4e17 (diff)
ao-tools/ao-stmload: Be smarter about ELF parsing. Retry open on failure.
Figuring out what goes where is tricky; turns out we want to pull all of the sections that map inside any program area that is supposed to be loaded from the file. So, we walk the program headers, then walk all of the section headers looking for those that suck data from the same portion of the file. Compute where in ROM each relevant section goes and build a full ROM image in memory using that. This patch also adds code to close and re-open the device if the first open failed to do what we want. Much nicer to have the computer figure out when the open succeeded rather than having people re-run the app. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_fat.c')
0 files changed, 0 insertions, 0 deletions