亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mkirimg

?? 根據添加了fs2410平臺的arch目錄
??
字號:
#!/usr/bin/perl##    Copyright (c) 1998-1999 TiVo, Inc.#      Original ELF parsing code.##    Copyright (c) 1999 Grant Erickson <grant@lcse.umn.edu>#      Original code from 'mkevimg'.##    Module name: mkirimg##    Description:#      Reads an ELF file and assigns global variables 'imageSect_start',#      'imageSect_size', 'initrdSect_start', and 'initrdSect_size' from#      the "image" and "initrd" section header information. It then#      rewrites the input ELF file with assigned globals to an output#      file.##      An input file, "irSectStart.txt" has the memory address of#      'irSectStart'. The irSectStart memory address is used to find#      the global variables in the ".data" section of the ELF file.#      The 'irSectStart' and the above global variables are defined#      in "irSect.c".##use File::Basename;use Getopt::Std;## usage()## Description:#   This routine prints out the proper command line usage for this program## Input(s):#   status - Flag determining what usage information will be printed and what#            the exit status of the program will be after the information is#            printed.## Output(s):#   N/A## Returns:#   This subroutine does not return.#sub usage {  my($status);  $status = $_[0];  printf("Usage: %s [-hvV] <ELF input file> <Evaluation board output file> <irSectStart.txt file>\n",	 $program);  if ($status != 0) {    printf("Try `%s -h' for more information.\n", $program);  }  if ($status != 1) {    print("  -h             Print out this message and exit.\n");    print("  -v             Verbose. Print out lots of ELF information.\n");    print("  -V             Print out version information and exit.\n");  }  exit($status);}## version()## Description:#   This routine prints out program version information## Input(s):#   N/A## Output(s):#   N/A## Returns:#   This subroutine does not return.#sub version {  print("mkirimg Version 1.1.0\n");  print("Copyright (c) 1998-1999 TiVo, Inc.\n");  print("Copyright (c) 1999 Grant Erickson <grant\@lcse.umn.edu>\n");  exit (0);}## file_check()## Description:#   This routine checks an input file to ensure that it exists, is a#   regular file, and is readable.## Input(s):#   file - Input file to be checked.## Output(s):#   N/A## Returns:#   0 if the file exists, is a regular file, and is readable, otherwise -1.#sub file_check {  my($file);  $file = $_[0];  if (!(-e $file)) {     printf("The file \"%s\" does not exist.\n", $file);     return (-1);  } elsif (!(-f $file)) {     printf("The file \"%s\" is not a regular file.\n", $file);     return (-1);  } elsif (!(-r $file)) {     printf("The file \"%s\" is not readable.\n", $file);     return (-1);  }  return (0);}## decode_options()## Description:#   This routine steps through the command-line arguments, parsing out#   recognzied options.## Input(s):#   N/A## Output(s):#   N/A## Returns:#   N/A#sub decode_options {  if (!getopts("hvV")) {      usage(1);  }  if ($opt_h) {      usage(0);  }  if ($opt_V) {      version();      exit (0);  }  if ($opt_v) {      $verbose = 1;  }  if (!($ElfFile = shift(@ARGV))) {      usage(1);  }  if (!($OutputFile = shift(@ARGV))) {      usage (1);  }  if (!($IrFile = shift(@ARGV))) {      usage (1);  }  if (file_check($ElfFile)) {      exit(1);  }  if (file_check($IrFile)) {      exit(1);  }}## ELF file and section header field numbers#require '../utils/elf.pl';## Main program body#{  $program = basename($0);  decode_options();  open(ELF, "<$ElfFile") || die "Cannot open input file";  open(OUTPUT, ">$OutputFile") || die "Cannot open output file";  open(IR, "$IrFile") || die "Cannot open input file";  $ElfFilesize = (-s $ElfFile);  if (read(ELF, $ibuf, $ElfFilesize) != $ElfFilesize) {    print("Failed to read ELF input file!\n");    exit(1);  }  if (read(IR, $irbuf, 8) != 8) {      print("Failed to read Ir input file!\n");      exit(1);  }  #  # Parse ELF header  #  @eh = unpack("a16n2N5n6", $ibuf);  #  # Make sure this is actually a PowerPC ELF file.  #  if (substr($eh[$e_ident], 0, 4) ne "\177ELF") {      printf("The file \"%s\" is not an ELF file.\n", $ElfFile);      exit (1);  } elsif ($eh[$e_machine] != 20) {      printf("The file \"%s\" is not a PowerPC ELF file.\n", $ElfFile);      exit (1);  }  #  # Find the section header for the string table.  #  $strtable_section_offset =  $eh[$e_shoff] +  $eh[$e_shstrndx] * $eh[$e_shentsize];  if ($verbose) {     printf("String table section header offset: 0x%x\n",     $strtable_section_offset);  }  #  # Find the start of the string table.  #  @strh = unpack("N10", substr($ibuf, $strtable_section_offset,			       $eh[$e_shentsize]));  if ($verbose) {     printf("Section name strings start at: 0x%x, %d bytes.\n",     $strh[$sh_offset], $strh[$sh_size]);  }  $names = substr($ibuf, $strh[$sh_offset], $strh[$sh_size]);  # Grab each section header and find '.data', 'image', and   # 'initrd' sections in particular.  $off = $eh[$e_shoff];  $imageFound = 0;  $initrdFound = 0;    for($i = 0; $i < $eh[$e_shnum]; $i++, $off += $eh[$e_shentsize]) {    @sh = unpack("N10", substr($ibuf, $off, $eh[$e_shentsize]));    # Take the first section name from the array returned by split.    ($name) = split(/\000/, substr($names, $sh[$sh_name]));    # Attempt to find the .data, image, and initrd sections    if ($name =~ /^\image$/) {      ($image_addr, $image_offset, $image_size) =	($sh[$sh_addr], $sh[$sh_offset], $sh[$sh_size]);      $imageFound = 1;    } elsif ($name =~ /^\initrd$/) {      ($initrd_addr, $initrd_offset, $initrd_size) =	($sh[$sh_addr], $sh[$sh_offset], $sh[$sh_size]);      $initrdFound = 1;    } elsif ($name =~ /^\.data$/) {      ($data_addr, $data_offset, $data_size) =	($sh[$sh_addr], $sh[$sh_offset], $sh[$sh_size]);    } elsif ($name =~ /^\.bss$/) {      ($bss_addr, $bss_offset, $bss_size) =	($sh[$sh_addr], $sh[$sh_offset], $sh[$sh_size]);    }   }  if ($verbose) {    printf("Data section   - Address: 0x%08x, Size: 0x%08x, File Offset 0x%08x\n",	   $data_addr, $data_size, $data_offset);    printf("Bss  section   - Address: 0x%08x, Size: 0x%08x, File Offset 0x%08x\n",	 $bss_addr, $bss_size, $bss_offset);   }  if ($verbose) {    if ($imageFound) {      printf("Image section  - Address: 0x%08x, Size: 0x%08x\n",	     $image_addr, $image_size);    } else {      printf("Image section not found in file: $ElfFile\n");    }    if ($initrdFound) {      printf("Initrd section - Address: 0x%08x, Size: 0x%08x\n",	     $initrd_addr, $initrd_size);    } else {      printf("Initrd section not found in file: $ElfFile\n");    }  }  # get file offset of irSectStart  $irSectStartoffset = hex ($irbuf);  if ($verbose) {    printf("irSectStartOffset Address: 0x%08x\n", $irSectStartoffset);  }  # get the offset of global variables   $initialOffset = ($irSectStartoffset - $data_addr) + $data_offset + 4;  # write modified values to OUTPUT file  syswrite(OUTPUT, $ibuf, $initialOffset);  if ($imageFound) {    $testN = pack ("N2", $bss_addr + $bss_size, $image_size);    syswrite(OUTPUT, $testN, length($testN));    printf("Updated symbol \"imageSect_start\" to 0x%08x\n",	   $bss_addr + $bss_size);    printf("Updated symbol \"imageSect_size\" to 0x%08x\n", $image_size);  } else {    syswrite(OUTPUT, $ibuf, 8, $initialOffset);  }  if ($initrdFound) {    $testN = pack ("N2", $bss_addr + $bss_size + $image_size, $initrd_size);    syswrite(OUTPUT, $testN, length($testN));    printf("Updated symbol \"initrdSect_start\" to 0x%08x\n",	   $bss_addr + $bss_size + $image_size);    printf("Updated symbol \"initrdSect_size\" to 0x%08x\n", $initrd_size);  } else {    syswrite(OUTPUT, $ibuf,8, $initialOffset + 8);  }  syswrite(OUTPUT, $ibuf, $ElfFilesize - ($initialOffset + 16),	   $initialOffset + 16);  #  # Clean-up and leave  #  close (ELF);  close (OUTPUT);  close (IR);  exit (0);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产欧美在线| 91首页免费视频| 男男视频亚洲欧美| 老司机免费视频一区二区| 麻豆国产欧美日韩综合精品二区| 国产美女娇喘av呻吟久久| 成人av小说网| 欧美日韩成人激情| 久久久精品人体av艺术| 一区二区在线观看av| 久草这里只有精品视频| 99精品视频在线免费观看| 欧美一区二区观看视频| 国产精品亲子乱子伦xxxx裸| 国产精品女同互慰在线看| 国产jizzjizz一区二区| 日韩你懂的在线观看| 亚洲老妇xxxxxx| 欧美影视一区在线| 国产精品久久久一本精品 | 色狠狠色狠狠综合| 国产片一区二区| 麻豆91精品91久久久的内涵| 久久婷婷久久一区二区三区| 麻豆一区二区三| 国产精品精品国产色婷婷| 欧美日韩中文另类| 亚洲综合成人在线| 在线免费一区三区| 亚洲美女视频一区| www.色精品| 国产日韩精品视频一区| 欧美自拍偷拍午夜视频| 麻豆精品新av中文字幕| 亚洲日本在线视频观看| 国内偷窥港台综合视频在线播放| 制服丝袜成人动漫| 蜜桃久久久久久久| 亚洲男人的天堂在线aⅴ视频| 69久久夜色精品国产69蝌蚪网| 国产激情91久久精品导航| 国产亚洲一区二区三区四区| 国产精品18久久久久久久久 | 国产精品一卡二卡| 亚洲妇女屁股眼交7| 中文字幕国产一区| 国产精品综合av一区二区国产馆| 亚洲人成网站影音先锋播放| 精品理论电影在线观看| 日日嗨av一区二区三区四区| 91小视频在线| 国模无码大尺度一区二区三区| 亚洲高清视频在线| 18成人在线观看| 成人免费视频caoporn| 精品国产123| 国产成a人亚洲精| 六月婷婷色综合| 亚洲va欧美va天堂v国产综合| 欧美高清精品3d| 国产一区二区不卡在线 | 成人免费一区二区三区在线观看| 精品欧美一区二区久久| 欧美日高清视频| 在线精品视频一区二区三四| www..com久久爱| 国v精品久久久网| 精品在线观看免费| 久久精品国产精品亚洲红杏| 首页欧美精品中文字幕| 亚洲成av人片观看| 亚洲已满18点击进入久久| 亚洲欧美日韩久久| 亚洲欧美中日韩| 中文字幕亚洲在| 中文字幕一区在线观看视频| 一区在线观看免费| 亚洲天堂精品视频| 亚洲日本成人在线观看| 亚洲尤物视频在线| 偷窥少妇高潮呻吟av久久免费| 欧美一二三区在线| 95精品视频在线| 99re热视频精品| 色视频欧美一区二区三区| 免费成人小视频| 激情综合色综合久久| 韩日欧美一区二区三区| 国产乱码字幕精品高清av | 亚洲三级在线免费观看| 亚洲免费av在线| 亚洲午夜影视影院在线观看| 天堂久久一区二区三区| 美美哒免费高清在线观看视频一区二区 | 亚洲最大成人网4388xx| 精品精品国产高清一毛片一天堂| 日韩亚洲欧美在线| 久久嫩草精品久久久久| 国产午夜亚洲精品午夜鲁丝片| 国产欧美视频一区二区| 一区二区三区四区蜜桃| 午夜久久久久久久久久一区二区| 日韩1区2区日韩1区2区| 一区二区欧美精品| 日韩不卡一二三区| 国产福利视频一区二区三区| 91麻豆精品视频| 欧美精品在线一区二区| 国产午夜一区二区三区| 洋洋av久久久久久久一区| 美女视频网站黄色亚洲| 成人高清免费在线播放| 欧美亚州韩日在线看免费版国语版| 日韩一级视频免费观看在线| 日本一区二区不卡视频| 五月开心婷婷久久| 国产成a人亚洲精| 欧美日韩1234| 国产精品伦理一区二区| 青草av.久久免费一区| caoporn国产精品| 日韩一区二区在线看| **欧美大码日韩| 麻豆国产91在线播放| 色婷婷一区二区三区四区| 精品国产髙清在线看国产毛片| 亚洲免费观看高清完整| 国产在线视频一区二区| 欧美三级电影网站| 国产精品日韩精品欧美在线| 男女性色大片免费观看一区二区| 99re在线视频这里只有精品| 精品国产污污免费网站入口| 一区二区三区在线免费播放| 国产激情91久久精品导航| 91精品国产91热久久久做人人| 亚洲欧美日韩久久| 成人午夜免费视频| 精品久久99ma| 天天综合色天天| 91国产免费观看| 国产精品久久综合| 国产乱人伦偷精品视频不卡 | 美女视频黄 久久| 国产老肥熟一区二区三区| 色中色一区二区| 国产欧美精品在线观看| 青娱乐精品视频| 欧美日本一区二区三区四区| 中文字幕一区二区在线观看| 国产综合色在线视频区| 欧美一区二区三区影视| 日韩在线一区二区| 色婷婷国产精品| 亚洲欧美偷拍另类a∨色屁股| 国产精品911| 精品国产123| 狠狠狠色丁香婷婷综合激情| 91麻豆精品国产91久久久更新时间| 亚洲精品第1页| 日本韩国一区二区三区视频| 亚洲图片激情小说| 9色porny自拍视频一区二区| 欧美激情综合在线| 国产精品一线二线三线精华| 久久久国际精品| 国产寡妇亲子伦一区二区| 久久亚区不卡日本| 国内精品久久久久影院色| 久久只精品国产| 国产电影精品久久禁18| 国产亚洲精品bt天堂精选| 国产成人免费高清| 国产精品白丝在线| 91蝌蚪porny| 亚洲自拍偷拍av| 欧美福利电影网| 美女免费视频一区二区| 欧美一区二区精品久久911| 日本v片在线高清不卡在线观看| 91精品国产综合久久福利| 肉丝袜脚交视频一区二区| 日韩欧美国产精品一区| 国产美女视频一区| 国产精品二区一区二区aⅴ污介绍| 成人涩涩免费视频| 亚洲美女屁股眼交3| 欧美日韩一级二级| 精品无人区卡一卡二卡三乱码免费卡| 欧美成人三级在线| 福利一区福利二区| 亚洲精品视频一区二区| 欧美理论片在线| 九色综合狠狠综合久久| 欧美国产视频在线| 欧美日韩国产在线观看| 极品少妇一区二区| 中文字幕一区二区不卡| 欧美日韩成人一区| 丰满少妇在线播放bd日韩电影|