Changeset 1864
- Timestamp:
- 05/26/12 06:46:50 (12 months ago)
- Location:
- trunk/tools
- Files:
-
- 8 edited
-
elf2flt/elf-arm.c (modified) (4 diffs)
-
elf2flt/elfflt.c (modified) (1 diff)
-
finsig_dryos.c (modified) (5 diffs, 1 prop)
-
finsig_vxworks.c (modified) (1 diff, 1 prop)
-
gensig_dryos.c (modified) (1 diff, 1 prop)
-
gensig_vxworks.c (modified) (1 diff, 1 prop)
-
makeexport.c (modified) (1 diff)
-
makelang.c (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/elf2flt/elf-arm.c
r1527 r1864 59 59 if ( FLAG_DUMP_RELOC ) 60 60 printf( "R_ARM_ABS32: %p(%s+0x%x=%x): ptr=%x [%s+0x%x+0x%x] sym:%s\n", 61 (char*)base_sect->base_addr+rela->r_offset, base_sect->name, rela->r_offset, locoffset,61 base_sect->base_addr+rela->r_offset, base_sect->name, rela->r_offset, locoffset, 62 62 tgt_sect->base_addr + addend + sym->st_value, 63 63 tgt_sect->name, sym->st_value, addend, symname … … 123 123 if ( FLAG_DUMP_RELOC ) 124 124 printf( "R_ARM_THM_CALL: %p(%s+0x%x=%x): %04x %04x ptr=%x [loc%-d] sym:%s\n", 125 (char*)base_sect->base_addr+rela->r_offset, base_sect->name, rela->r_offset, locoffset,125 base_sect->base_addr+rela->r_offset, base_sect->name, rela->r_offset, locoffset, 126 126 upper, lower, 127 127 tgt_sect->base_addr+rela->r_offset+offset, offset, … … 191 191 if ( FLAG_DUMP_RELOC ) { 192 192 printf( "%s: %p(%s+0x%x=%x): %08x ptr=%x [loc%-d] sym:%s\n", reloc_name, 193 (char*)base_sect->base_addr+rela->r_offset, base_sect->name, rela->r_offset, locoffset,193 base_sect->base_addr+rela->r_offset, base_sect->name, rela->r_offset, locoffset, 194 194 *(uint32_t *)loc, 195 195 base_sect->base_addr+rela->r_offset+offset*4, offset*4, … … 238 238 if ( FLAG_DUMP_RELOC ) 239 239 printf( "R_ARM_ABS32: %p(%s+0x%x=%x): import_value=%d (sym:%s)+0x%x %d\n", 240 (char*)base_sect->base_addr+rela->r_offset, base_sect->name, rela->r_offset, locoffset,240 base_sect->base_addr+rela->r_offset, base_sect->name, rela->r_offset, locoffset, 241 241 importidx, symname, *(uint32_t*)loc, flat_import_count 242 242 ); -
trunk/tools/elf2flt/elfflt.c
r1577 r1864 745 745 746 746 int output_fd = open(fltfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,0777); 747 write(output_fd, flat_buf, flat->import_start);748 write(output_fd, flat_import_buf, flat_import_count*sizeof(import_record_t));747 i = write(output_fd, flat_buf, flat->import_start); 748 i = write(output_fd, flat_import_buf, flat_import_count*sizeof(import_record_t)); 749 749 close(output_fd); 750 750 -
trunk/tools/finsig_dryos.c
- Property svn:eol-style set to native
r1855 r1864 799 799 { 800 800 FILE *f = fopen(filename, "rb"); 801 int k; 801 802 802 803 if (f == NULL) … … 815 816 // Allows sig matching past end of firmware without checking each time in the inner loop 816 817 fw->buf = malloc((fw->size+32)*4); 817 fread(fw->buf, 4, fw->size, f);818 k = fread(fw->buf, 4, fw->size, f); 818 819 fclose(f); 819 820 … … 824 825 // Get DRYOS version 825 826 fw->dryos_ver = 0; 826 intk = find_str(fw, "DRYOS version 2.3, release #");827 k = find_str(fw, "DRYOS version 2.3, release #"); 827 828 if (k == -1) 828 829 { … … 1470 1471 1471 1472 ignore_names = malloc(size+1); 1472 fread(ignore_names, 1, size, f);1473 size = fread(ignore_names, 1, size, f); 1473 1474 ignore_names[size] = 0; 1474 1475 … … 2490 2491 if (opt == 1) return; 2491 2492 char fmt[50] = ""; 2492 sprintf(fmt, "// ERROR: %%s is not found. %%%ds//--- --- ", 34-strlen(curr_name));2493 sprintf(fmt, "// ERROR: %%s is not found. %%%ds//--- --- ", (int)(34-strlen(curr_name))); 2493 2494 sprintf(line+strlen(line), fmt, curr_name, ""); 2494 2495 } -
trunk/tools/finsig_vxworks.c
- Property svn:eol-style set to native
r1660 r1864 138 138 // Allows sig matching past end of firmware without checking each time in the inner loop 139 139 buf=malloc((size+32)*4); 140 fread(buf, 4, size, f);140 i = fread(buf, 4, size, f); 141 141 fclose(f); 142 142 memset(&buf[size],0xff,32*4); -
trunk/tools/gensig_dryos.c
- Property svn:eol-style set to native
r1291 r1864 293 293 294 294 fseek(f, pos, SEEK_SET); 295 fread(buf, 4, size, f);295 i = fread(buf, 4, size, f); 296 296 297 297 for (i=0;i<size;++i){ -
trunk/tools/gensig_vxworks.c
- Property svn:eol-style set to native
r1291 r1864 298 298 299 299 fseek(f, pos, SEEK_SET); 300 fread(buf, 4, size, f);300 i = fread(buf, 4, size, f); 301 301 302 302 printf("static FuncSig func_sig_%s[] = {\n",proc_name); -
trunk/tools/makeexport.c
r1577 r1864 1 1 #include <stdio.h> 2 2 #include <stdlib.h> 3 #include <unistd.h> 3 4 #include <math.h> 4 5 -
trunk/tools/makelang.c
- Property svn:eol-style set to native
r1395 r1864 1 1 #include <stdio.h> 2 2 #include <stdlib.h> 3 #include <unistd.h> 3 4 #include <math.h> 4 5
Note: See TracChangeset
for help on using the changeset viewer.