flat_buf          467 modules/module_load.c static char* load_module_file(int fd, const char* name, int size, int bss_size, flat_hdr** flat_buf)
flat_buf          469 modules/module_load.c     *flat_buf = (flat_hdr*)malloc(size+bss_size);
flat_buf          470 modules/module_load.c     if (!*flat_buf)
flat_buf          473 modules/module_load.c     module_log_load(name, *flat_buf);
flat_buf          477 modules/module_load.c         if (b_read(fd, (char*)*flat_buf, size) == size)
flat_buf          479 modules/module_load.c             memset((unsigned char*)(*flat_buf)+size, 0, bss_size);
flat_buf          485 modules/module_load.c     free(*flat_buf);
flat_buf          486 modules/module_load.c     *flat_buf = 0;
flat_buf          493 modules/module_load.c static char* link_module(int fd, flat_hdr* flat_buf)
flat_buf          496 modules/module_load.c     int reloc_size = flat_buf->import_start - flat_buf->reloc_start;
flat_buf          497 modules/module_load.c     int import_size = flat_buf->import_size;
flat_buf          505 modules/module_load.c     if (!module_do_action(fd, flat_buf, flat_buf->reloc_start, reloc_size, module_do_relocations))
flat_buf          508 modules/module_load.c     if (!module_do_action(fd, flat_buf, flat_buf->import_start, import_size, module_do_imports))
flat_buf          535 modules/module_load.c     flat_hdr* flat_buf = 0;
flat_buf          541 modules/module_load.c         msg = load_module_file(module_fd, name, flat.reloc_start, flat.bss_size, &flat_buf);
flat_buf          545 modules/module_load.c             ModuleInfo *mod_info = flat_buf->_module_info = (ModuleInfo*)((unsigned int)flat_buf+flat_buf->_module_info_offset);
flat_buf          552 modules/module_load.c                 msg = link_module(module_fd, flat_buf);
flat_buf          565 modules/module_load.c         if (flat_buf)
flat_buf          566 modules/module_load.c             free(flat_buf);
flat_buf          579 modules/module_load.c     return flat_buf;
flat_buf           27 tools/elf2flt/elf-arm.c   char*    loc       = (char*)(flat_buf + locoffset );
flat_buf           64 tools/elf2flt/elf-arm.c                printf("=== flt%p(reloc+%x: %x): [%x]=0x%x\n",flat_reloc_cur, (char*)flat_reloc_cur-(char*)flat_reloc, (char*)flat_reloc_cur-flat_buf, locoffset, *(uint32_t*)loc);
flat_buf          223 tools/elf2flt/elf-arm.c   char*    loc       = (char*)(flat_buf + locoffset );
flat_buf           41 tools/elf2flt/elfflt.c char* flat_buf;         // point to buffer of flat file
flat_buf          294 tools/elf2flt/elfflt.c 	strncpy( buf, flat_buf+offs, sizeof(buf)-1);
flat_buf          355 tools/elf2flt/elfflt.c   memcpy( flat_buf+text.flat_offset+offs_div0_from_arm, div0_arm, sizeof(div0_arm) );
flat_buf          569 tools/elf2flt/elfflt.c   flat_buf=malloc( flatmainsize+flatrelocsize );      
flat_buf          570 tools/elf2flt/elfflt.c   if ( !flat_buf) { PRINTERR(stderr, "fail to malloc flat buf\n"); return ELFFLT_OUTPUT_ERROR;}
flat_buf          571 tools/elf2flt/elfflt.c   memset(flat_buf, 0, flatmainsize+flatrelocsize);
flat_buf          581 tools/elf2flt/elfflt.c   flat = (flat_hdr*) flat_buf;
flat_buf          587 tools/elf2flt/elfflt.c   memcpy( flat_buf+offset, text.address, text.size );
flat_buf          593 tools/elf2flt/elfflt.c   memcpy( flat_buf+offset, rodata.address, rodata.size );
flat_buf          598 tools/elf2flt/elfflt.c   memcpy( flat_buf+offset, data.address, data.size );
flat_buf          618 tools/elf2flt/elfflt.c   flat_reloc = (reloc_record_t*)(flat_buf+flatmainsize);  
flat_buf          655 tools/elf2flt/elfflt.c   ModuleInfo* _module_info = (ModuleInfo*) (flat_buf + flat->_module_info_offset);
flat_buf          734 tools/elf2flt/elfflt.c     dump_section( "FLT_header", (unsigned char*)flat_buf, sizeof(flat_hdr) );
flat_buf          735 tools/elf2flt/elfflt.c     dump_section( "FLT_text", (unsigned char*)flat_buf+flat->entry, flat->data_start-flat->entry );
flat_buf          736 tools/elf2flt/elfflt.c     dump_section( "FLT_data", (unsigned char*)flat_buf+flat->data_start, flat->reloc_start-flat->data_start);
flat_buf          742 tools/elf2flt/elfflt.c         print_offs("Offs: ",*(int*)(flat_buf+flat->reloc_start+i*sizeof(reloc_record_t)), "\n");
flat_buf          755 tools/elf2flt/elfflt.c 		    int addend = *(uint32_t*)(flat_buf+offs);
flat_buf          766 tools/elf2flt/elfflt.c   i = write(output_fd, flat_buf, flat->import_start);
flat_buf           45 tools/elf2flt/elfflt.h extern char* flat_buf;
flat_buf           15 tools/elf2flt/fltdump.c unsigned char* flat_buf;
flat_buf           68 tools/elf2flt/fltdump.c 	strncpy( buf, (char*)flat_buf+offs, sizeof(buf)-1);
flat_buf           96 tools/elf2flt/fltdump.c 	flat_buf = (unsigned char*)b_get_buf();
flat_buf          131 tools/elf2flt/fltdump.c 		ModuleInfo* _module_info = (ModuleInfo*)(flat_buf + flat->_module_info_offset);
flat_buf          167 tools/elf2flt/fltdump.c     dump_section( "FLT_header", flat_buf, sizeof(flat_hdr) );
flat_buf          168 tools/elf2flt/fltdump.c     dump_section( "FLT_text", flat_buf+flat->entry, flat->data_start-flat->entry );
flat_buf          169 tools/elf2flt/fltdump.c     dump_section( "FLT_data", flat_buf+flat->data_start, flat->reloc_start-flat->data_start);
flat_buf          175 tools/elf2flt/fltdump.c         print_offs("Offs: ",*(int*)(flat_buf+flat->reloc_start+i*sizeof(uint32_t)),"\n");
flat_buf          178 tools/elf2flt/fltdump.c     uint32_t *new_import_buf = (uint32_t*)(flat_buf+flat->import_start);
flat_buf          188 tools/elf2flt/fltdump.c 		    int addend = *(uint32_t*)(flat_buf+offs);