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

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

?? out.c

?? ELFkickers是一組elf工具
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* out.c: Output functions for each type of piece. * * Copyright (C) 1999-2001 by Brian Raiter, under the GNU General * Public License. No warranty. See COPYING for details. */#include	<stdio.h>#include	<string.h>#include	"gen.h"#include	"elf.h"#include	"elftoc.h"#include	"addr.h"#include	"pieces.h"#include	"shdrtab.h"#include	"dynamic.h"#include	"outbasic.h"#include	"outtools.h"#include	"out.h"/* The beginning of every successful output. */static char const *cprolog =	"#include <stddef.h>\n"	"#include \"elf.h\"\n"	"\n";/* All the macro definitions available for use in the output. */#include	"names.h"/* The output functions that go with each piece type. */static int (*outfunctions[P_COUNT])(pieceinfo const*, void const*);/* Outputs a section header index. */static void outshdrname(int shndx){    char const *str;    if ((str = getshdrname(shndx)))	out(str);    else	out(getname(shndx, section));}/* The output function for pieces of type P_UNCLAIMED, P_BYTES, or * P_SECTION. The contents are output either as a literal string, an * array of character values, or an array of hexadecimal byte values. * The last will be used if the contents contain an excess of * non-graphic, non-ASCII characters. Otherwise, one of the first two * representations will be selected based on whether or not the * contents appear to be null-terminated. */static int bytesout(pieceinfo const *piece, void const *ptr){    char const *str = ptr;    char const *s;    int		i, n, fullsize, size;    fullsize = piece->size;    if (!fullsize)	return TRUE;    for (size = fullsize ; size > 0 && !str[size - 1] ; --size) ;    if (!size) {	out("{ 0 }");	return TRUE;    }    if (fullsize - size < 16)	size = fullsize;    n = stringsize(str, size);    if (n * 2 > size * 3) {	beginblock(TRUE);	for (i = 0, s = str ; i < size ; ++i, ++s)	    outf("0x%02X", (unsigned char)*s);	if (size < fullsize)	    outf("/* 0x00 x %d */", fullsize - size);	endblock();    } else if (size < fullsize || str[size - 1]) {	beginblock(TRUE);	for (i = 0, s = str ; i < size ; ++i, ++s)	    out(cqchar(*s));	if (size < fullsize)	    outf("/* 0x00 x %d */", fullsize - size);	endblock();    } else	outstring(str, size - 1);    return TRUE;}/* The output functions for pieces of type P_HALVES. The contents will * be output as an array of hexadecimal or integer values, depending * on the range and average of the values. */static int halvesout(pieceinfo const *piece, void const *ptr){    Elf32_Half const   *half;    char const	       *fmt = NULL;    unsigned int	sum;    int			i, fullsize, size;    fullsize = piece->size / sizeof *half;    half = ptr;    for (size = fullsize ; size > 0 && !half[size - 1] ; --size) ;    if (!size) {	out("{ 0 }");	return TRUE;    }    if (fullsize - size < 8)	size = fullsize;    sum = 0;    for (i = 0, half = ptr ; i < size ; ++i, ++half) {	if (*half > 0xFF) {	    fmt = "0x%04X";	    break;	}	sum += *half;    }    if (!fmt)	fmt = sum / size < 16 ? "%u" : "0x%02X";    beginblock(TRUE);    for (i = 0, half = ptr ; i < size ; ++i, ++half)	outf(fmt, (unsigned int)*half);    if (size < fullsize) {	char buf[32];	sprintf(buf, "/* %s x %%d */", fmt);	outf(buf, 0, fullsize - size);    }    endblock();    return TRUE;}/* The output functions for pieces of type P_WORDS. The contents will * be output as an array of hexadecimal or integer values, depending * on the range and average of the values. */static int wordsout(pieceinfo const *piece, void const *ptr){    Elf32_Word const   *word;    char const	       *fmt = NULL;    unsigned int	sum;    int			i, fullsize, size;    fullsize = piece->size / sizeof *word;    word = ptr;    for (size = fullsize ; size > 0 && !word[size - 1] ; --size) ;    if (!size) {	out("{ 0 }");	return TRUE;    }    if (fullsize - size < 8)	size = fullsize;    sum = 0;    for (i = 0, word = ptr ; i < size ; ++i, ++word) {	if (*word > 0xFFFF) {	    fmt = "0x%08lX";	    break;	}	sum += *word;    }    if (!fmt)	fmt = sum / size < 256 ? "%lu" : "0x%04lX";    beginblock(TRUE);    for (i = 0, word = ptr ; i < size ; ++i, ++word)	outf(fmt, (unsigned long)*word);    if (size < fullsize) {	char buf[32];	sprintf(buf, "/* %s x %%d */", fmt);	outf(buf, 0, fullsize - size);    }    endblock();    return TRUE;}/* The output function for pieces of type P_NOTE. Most of the note * section is mainly free-form in nature, the only constraint being * alignment. It is displayed as an array of values, with line breaks * to indicate the beginning of a note header. */static int noteout(pieceinfo const *piece, void const *ptr){    Elf32_Word const   *word = ptr;    int			i, n;    beginblock(TRUE);    i = 0;    while (i < piece->size / 4) {	n = (word[i] + word[i + 1] + 3) / 4;	linebreak();	outint(word[i++]);	outint(word[i++]);	outword(word[i++]);	while (n-- && i < piece->size / 4)	    outf("0x%08lX", (unsigned long)word[i++]);    }    endblock();    return TRUE;}/* The output function for pieces of type P_HASH. The hash section is * simply displayed as an array of integers, with line breaks * indicating the starts of the bucket and chain arrays. */static int hashout(pieceinfo const *piece, void const *ptr){    Elf32_Word const   *word = ptr;    Elf32_Shdr const   *shdr;    int			i, n;    beginblock(TRUE);    n = piece->size / sizeof *word;    if (n < 2 || (int)(word[0] + word[1] + 2) != n) {	for (i = 0 ; i < n ; ++i, ++word)	    outint(*word);    } else {	outint(word[0]);	i = piecenum;	if (word[1] && piece->shndx && (shdr = getshdr(piece->shndx))				    && shdr->sh_link) {	    for (i = 0 ; i < piecenum ; ++i)		if (pieces[i].shndx == (int)(shdr->sh_link))		    break;	}	if (i < piecenum		&& word[1] * sizeof(Elf32_Sym) == (size_t)pieces[i].size)	    outf("sizeof %s.%s / sizeof(Elf32_Sym)", varname, pieces[i].name);	else	    outint(word[1]);	linebreak();	for (i = 0 ; i < (int)word[0] ; ++i)	    outint(word[i + 2]);	linebreak();	for (i = 0 ; i < (int)word[1] ; ++i)	    outint(word[i + word[0] + 2]);    }    endblock();    return TRUE;}/* The output functions for pieces of type P_SYMTAB. The contents are * interpreted as an array of Elf32_Sym structures. */static int symsout(pieceinfo const *piece, void const *ptr){    Elf32_Sym const    *sym;    unsigned int	i;    beginblock(TRUE);    for (i = 0, sym = ptr ; i < piece->size / sizeof *sym ; ++i, ++sym) {	beginblock(FALSE);	outint(sym->st_name);	out(getaddrstr(sym->st_value, NULL));	outint(sym->st_size);	outf("ELF32_ST_INFO(%s, %s)",		getname(ELF32_ST_BIND(sym->st_info), symbind),		getname(ELF32_ST_TYPE(sym->st_info), symtype));	outint(sym->st_other);	outshdrname(sym->st_shndx);	endblock();    }    endblock();    return TRUE;}/* The output function for pieces of type P_DYNAMIC. The contents are * displayed as an array of Elf32_Dyn structures. A first pass is used * to make connections between entries that have related information. */static int dynout(pieceinfo const *piece, void const *ptr){    char		addrs[N_DT_COUNT][128];    int			shndx[N_DT_COUNT];    Elf32_Dyn const    *dyn;    unsigned int	i;    int			n, done;    memset(addrs, 0, sizeof addrs);    memset(shndx, 0, sizeof shndx);    for (i = 0, dyn = ptr ; i < piece->size / sizeof *dyn ; ++i, ++dyn) {	switch (dyn->d_tag) {	  case DT_STRTAB:	    strcpy(addrs[N_DT_STRTAB],		   getaddrstr(dyn->d_un.d_ptr, &shndx[N_DT_STRSZ]));	    break;	  case DT_REL:	    strcpy(addrs[N_DT_REL],		   getaddrstr(dyn->d_un.d_ptr, &shndx[N_DT_RELSZ]));	    break;	  case DT_RELA:	    strcpy(addrs[N_DT_RELA],		   getaddrstr(dyn->d_un.d_ptr, &shndx[N_DT_RELASZ]));	    break;	  case DT_JMPREL:	    strcpy(addrs[N_DT_JMPREL],		   getaddrstr(dyn->d_un.d_ptr, &shndx[N_DT_PLTRELSZ]));	    break;	  case DT_SYMINFO:	    strcpy(addrs[N_DT_SYMINFO],		   getaddrstr(dyn->d_un.d_ptr, &shndx[N_DT_SYMINSZ]));	    break;	  case DT_INIT_ARRAY:	    strcpy(addrs[N_DT_INIT_ARRAY],		   getaddrstr(dyn->d_un.d_ptr, &shndx[N_DT_INIT_ARRAYSZ]));	    break;	  case DT_FINI_ARRAY:	    strcpy(addrs[N_DT_FINI_ARRAY],		   getaddrstr(dyn->d_un.d_ptr, &shndx[N_DT_FINI_ARRAYSZ]));	    break;	  case DT_PREINIT_ARRAY:	    strcpy(addrs[N_DT_PREINIT_ARRAY],		   getaddrstr(dyn->d_un.d_ptr, &shndx[N_DT_PREINIT_ARRAYSZ]));	    break;	}    }    beginblock(TRUE);    for (i = 0, dyn = ptr ; i < piece->size / sizeof *dyn ; ++i, ++dyn) {	done = FALSE;	beginblock(FALSE);	out(getname(dyn->d_tag, dyntag));	n = getdyntagid(dyn->d_tag);	if (n <= 0) {	    outf("{ %ld }", dyn->d_un.d_val);	    done = TRUE;	} else if (*addrs[n]) {	    outf("{ %s }", addrs[n]);	    done = TRUE;	} else if (shndx[n]) {	    outf("{ %s }", getsizestr(dyn->d_un.d_val, shndx[n]));	    done = TRUE;	} else {	    switch (n) {	      case N_DT_FLAGS:		outf("{ %s }", getflags(dyn->d_un.d_val, dynflag));		done = TRUE;		break;	      case N_DT_FLAGS_1:		outf("{ %s }", getflags(dyn->d_un.d_val, dynflag1));		done = TRUE;		break;	      case N_DT_FEATURE_1:		outf("{ %s }", getflags(dyn->d_un.d_val, dynftrf1));		done = TRUE;		break;	      case N_DT_POSFLAG_1:		outf("{ %s }", getflags(dyn->d_un.d_val, dynposf1));		done = TRUE;		break;	      case N_DT_RELAENT:		if (dyn->d_un.d_val == sizeof(Elf32_Rela)) {		    out("{ sizeof(Elf32_Rela) }");		    done = TRUE;		}		break;	      case N_DT_RELENT:		if (dyn->d_un.d_val == sizeof(Elf32_Rel)) {		    out("{ sizeof(Elf32_Rel) }");		    done = TRUE;		}		break;	      case N_DT_SYMENT:		if (dyn->d_un.d_val == sizeof(Elf32_Sym)) {		    out("{ sizeof(Elf32_Sym) }");		    done = TRUE;		}		break;	      case N_DT_SYMINENT:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久热成人在线视频| 色综合天天综合色综合av| 国产成人精品免费网站| 色老综合老女人久久久| 久久久久久久久久久久久久久99| 亚洲 欧美综合在线网络| av电影一区二区| 日韩限制级电影在线观看| 亚洲一区二区三区中文字幕 | 国产精品一区二区三区网站| 欧美色爱综合网| 亚洲精品视频自拍| 成人美女在线观看| 日本一区二区视频在线观看| 久久成人久久爱| 欧美一级精品在线| 视频在线观看一区二区三区| 欧美中文字幕一区| 亚洲品质自拍视频网站| 99re热这里只有精品免费视频| 精品国产免费一区二区三区四区| 男人操女人的视频在线观看欧美| 91国内精品野花午夜精品| 亚洲欧洲另类国产综合| 丁香婷婷综合激情五月色| 欧美激情综合五月色丁香| 国产一区二区三区| 久久精品人人做人人综合| 国产麻豆精品theporn| 精品久久久久99| 国产精品 日产精品 欧美精品| 欧美精品一区二区三区蜜臀| 国内成+人亚洲+欧美+综合在线| 欧美精品一区二区高清在线观看| 老司机精品视频线观看86| 日韩欧美一区二区不卡| 麻豆精品在线播放| 国产无一区二区| 成人精品亚洲人成在线| 国产精品久久三| 91啪在线观看| 亚洲专区一二三| 欧美一区二区日韩| 极品销魂美女一区二区三区| 国产无一区二区| 99国内精品久久| 亚洲最大成人网4388xx| 欧美精品日韩一区| 久久精品国产亚洲高清剧情介绍| 精品国产亚洲在线| www.成人在线| 午夜伦欧美伦电影理论片| 日韩欧美一二三四区| 国产伦精品一区二区三区免费| 久久精品视频免费| 在线精品视频一区二区| 蜜臀久久久久久久| 中文幕一区二区三区久久蜜桃| 97精品久久久午夜一区二区三区| 亚洲成人动漫精品| 久久久久久久精| 色老汉一区二区三区| 久久99国产精品免费| 亚洲精品日韩专区silk| 91精品国产综合久久国产大片| 国产成人久久精品77777最新版本| 一区二区三区丝袜| 日韩一级免费一区| 色综合中文综合网| 一区二区成人在线| 日韩色在线观看| aaa国产一区| 久久99精品久久久久久| 亚洲特级片在线| 精品国产乱码久久久久久图片| 色偷偷久久人人79超碰人人澡| 久久99久久99精品免视看婷婷 | 色吊一区二区三区| 久久99精品国产麻豆不卡| 一区二区三区蜜桃| 中文幕一区二区三区久久蜜桃| 日韩欧美资源站| 欧美视频一区二区三区四区 | 国产一区二区0| 亚洲成人福利片| 亚洲欧美在线视频| 久久久久久免费毛片精品| 欧美日韩高清在线播放| 一本一道波多野结衣一区二区| 国产成人在线影院| 精品一区二区三区影院在线午夜| 亚洲精品中文字幕乱码三区| 国产清纯白嫩初高生在线观看91 | 欧美一激情一区二区三区| 91麻豆高清视频| 国产a久久麻豆| 老司机精品视频在线| 日韩高清在线一区| 亚洲国产成人av好男人在线观看| 亚洲视频你懂的| 国产精品妹子av| 国产精品久久看| 国产清纯在线一区二区www| 精品久久99ma| 精品日韩欧美在线| 精品欧美乱码久久久久久| 日韩欧美亚洲一区二区| 欧美一区二区免费视频| 日韩一区二区不卡| 日韩欧美综合一区| 精品国产一区二区三区久久久蜜月| 69成人精品免费视频| 91麻豆精品国产91久久久| 91精品国产高清一区二区三区| 欧美日韩国产精选| 777久久久精品| 91麻豆精品国产91久久久久久久久 | 欧美一区二区三区喷汁尤物| 欧美精品久久一区| 日韩欧美中文字幕制服| 精品sm捆绑视频| 国产午夜亚洲精品理论片色戒 | 日韩精品欧美精品| 久久精品国产免费| 久久99热国产| 国产成人av资源| 成人性视频免费网站| 91视视频在线观看入口直接观看www| av一二三不卡影片| 欧美视频一区在线观看| 欧美一级国产精品| 欧美激情一区二区三区全黄| 国产精品国产a级| 亚洲观看高清完整版在线观看| 美洲天堂一区二卡三卡四卡视频| 国产一区福利在线| 91色视频在线| 日韩欧美国产系列| 中文字幕精品在线不卡| 一区二区日韩av| 久久成人免费网| 91视频免费播放| 日韩三级电影网址| 成人免费视频在线观看| 日韩精品视频网站| 大白屁股一区二区视频| 精品视频在线看| 久久婷婷色综合| 亚洲国产精品视频| 国产成人av网站| 欧美精品丝袜中出| 国产欧美中文在线| 午夜精品久久久久久| www.色精品| 欧美精品一区二区三区蜜桃| 亚洲人成精品久久久久| 狠狠色伊人亚洲综合成人| 在线视频你懂得一区二区三区| 久久免费电影网| 性感美女极品91精品| 国产成人免费视频网站| 7777精品久久久大香线蕉| 国产精品国产馆在线真实露脸| 日本不卡中文字幕| 94-欧美-setu| 久久久精品tv| 麻豆一区二区三| 欧美群妇大交群的观看方式| 一色桃子久久精品亚洲| 国产精品综合视频| 538在线一区二区精品国产| 亚洲欧美另类久久久精品| 国产精品一区二区果冻传媒| 3atv一区二区三区| 亚洲欧美激情小说另类| 国产成人在线视频网站| 日韩天堂在线观看| 天天综合网天天综合色| 日本道色综合久久| 国产精品精品国产色婷婷| 国产xxx精品视频大全| 久久人人97超碰com| 美女国产一区二区| 91精品国产高清一区二区三区蜜臀 | 韩国女主播一区二区三区| 6080日韩午夜伦伦午夜伦| 亚洲精品久久7777| 一本色道亚洲精品aⅴ| 国产精品麻豆欧美日韩ww| 国产乱码精品1区2区3区| 日韩精品一区二| 精品在线观看视频| 精品国产污网站| 国产一区二区在线观看视频| 日韩一区二区三区三四区视频在线观看| 亚洲国产精品视频| 91精品国产综合久久精品麻豆 | 高清视频一区二区| 国产女同互慰高潮91漫画| 高清不卡在线观看av|