2 // C++ Interface: load_bfd
7 // Author: Michal Sojka <sojkam1@fel.cvut.cz>, (C) 2005
9 // Copyright: See COPYING file that comes with this distribution
14 * load section callback function
15 * -- called in loop for each section with LOAD flag, found in bfd file
16 * @param lma load addres
17 * @param size section length
18 * @pram data data block to load
19 * @return 0 if load was successful, non-0 to terminate caller loop
21 typedef int (*load_section)(bfd_vma lma, bfd_size_type size, void *data);
24 int load_bfd(char *fname, char *target, load_section loader_cb,
25 bfd_vma *start_address, int verbose);