Changeset 117 for trunk/IPs/systemC/Environment/Data/src
- Timestamp:
- May 16, 2009, 4:42:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Data/src/loadexec.c
r81 r117 33 33 #include <string.h> 34 34 #include <bfd.h> 35 #include "../../Common/include/Debug.h" 35 36 36 37 #ifndef TRUE … … 110 111 111 112 if (!exec) { 112 fprintf(stderr,"Cannot open File '%s'\n", file);113 cerr("Cannot open File '%s'\n", file); 113 114 exit(1); 114 115 } 115 116 116 117 if (bfd_check_format(exec, bfd_object) != TRUE && !(exec->flags & EXEC_P)) { 117 fprintf(stderr,"File %s is not an executable file\n",118 118 cerr("File %s is not an executable file\n", 119 file); //bfd_get_filename(exec)); 119 120 exit(1); 120 121 } 121 122 122 #if 1123 printf("Loading sections ");123 #if 0 124 cout("Loading sections "); 124 125 for (i = 0; sections[i]; i++) 125 printf("%s%s", sections[i], sections[i+1] ? ", " : " ");126 printf("from \"%s\"\n",bfd_get_filename(exec));127 // printf("of executable '%s' for '%s' architecture in format '%s'\n",126 __cout("%s%s", sections[i], ((sections[i+1]!=NULL)?", ":" ")); 127 __cout("from \"%s\"\n",bfd_get_filename(exec)); 128 //cout("of executable '%s' for '%s' architecture in format '%s'\n", 128 129 // bfd_get_filename(exec), bfd_printable_name(exec), exec->xvec->name); 129 130 #endif
Note: See TracChangeset
for help on using the changeset viewer.