Commit ccb3592f51c9333b9332c59102c11eae61c973c0
authorMichel Pollet <buserror@gmail.com>
Mon, 12 Aug 2013 10:31:57 +0000 (11:31 +0100)
committerMichel Pollet <buserror@gmail.com>
Thu, 5 Sep 2013 12:58:31 +0000 (13:58 +0100)
tree5642fbd74091aa6002a9fb955d49a440d0958bc4
parenteec21b2ab8534bca63146a72ba5223defc4a1d17
Message:
elf: Redone the symbol loader

Old symbol loader had been geared for the 'trace' functionality, and was
partitularly bad since it didnt know the size of the code it was
loading.

New version loads a (sorted) array of symbols, and let the firmware
loader code deal with the old 'codeline' array. The new loaded symbol
table can be used separately (board code can look into it).

Also changed the avr_symbol_t to inline the symbol name, instead of
using a separate pointer.

Signed-off-by: Michel Pollet <buserror@gmail.com>
3 files changed:
simavr/sim/sim_avr.h
simavr/sim/sim_elf.c
simavr/sim/sim_elf.h