Lines Matching refs:info

52 apply_action(section_info_table *info, char *cur_file, Cmd_Info *cmd_info)
58 (void) gelf_getshdr(info->scn, &shdr);
63 if (GET_ACTION(info->flags) == ACT_DELETE)
65 dozap(info);
66 SET_ACTION(info->flags, ACT_ZAP);
67 SET_MODIFIED(info->flags);
70 if (GET_ACTION(info->flags) == ACT_DELETE)
77 doprint(cur_file, info);
84 if (GET_ACTION(info->flags) == ACT_DELETE)
86 if (GET_LOC(info->flags) == IN) {
92 if (CHK_OPT(info, I_AM_STRIP)) {
94 UNSET_CANDIDATE(info->flags);
96 char *name = info->name;
106 } else if (info->rel_loc == IN) {
112 if (CHK_OPT(info, I_AM_STRIP)) {
114 UNSET_CANDIDATE(info->flags);
120 info->rel_name);
123 } else if (GET_LOC(info->flags) == PRIOR) {
129 info->secno = (GElf_Word)NULLED;
132 info->secno = (GElf_Word)DELETED;
135 SET_ACTION(info->flags, ACT_DELETE);
136 SET_MODIFIED(info->flags);
144 } else if (GET_LOC(info->flags) == IN) {
150 doappend(Action[act_index].a_string, info);
152 info->secno = info->osecno;
153 SET_ACTION(info->flags, ACT_APPEND);
154 SET_MODIFIED(info->flags);
155 if (GET_LOC(info->flags) == PRIOR)
156 info->secno = (GElf_Word)EXPANDED;
163 if (GET_ACTION(info->flags) == ACT_DELETE)
170 } else if (GET_LOC(info->flags) == IN) {
177 docompress(info);
179 SET_ACTION(info->flags, ACT_COMPRESS);
180 SET_MODIFIED(info->flags);
181 if (GET_LOC(info->flags) == PRIOR)
182 info->secno = (GElf_Word)SHRUNK;
193 dozap(section_info_table *info)
197 info->mdata = data = malloc(sizeof (Elf_Data));
202 *data = *info->data;
214 doprint(char *cur_file, section_info_table *info)
220 if (GET_MODIFIED(info->flags) == 0)
221 data = info->data;
223 data = info->mdata;
252 doappend(char *a_string, section_info_table *info)
263 * The caller expects this routine to replace a NULL info->mdata
276 if (info->mdata == 0) {
281 info->mdata = data = calloc(1, sizeof (Elf_Data));
286 *data = *info->data;
292 if ((GET_ACTION(info->flags) == ACT_DELETE) ||
330 data = info->mdata;
331 if ((GET_ACTION(info->flags) == ACT_DELETE) ||
378 docompress(section_info_table *info)
384 if (info->mdata == 0) {
390 info->mdata = data = calloc(1, sizeof (Elf_Data));
395 *data = *info->data;
400 size = info->mdata->d_size;
401 buf = (char *)info->mdata->d_buf;
403 info->mdata->d_buf = buf;
404 info->mdata->d_size = size;