Lines Matching refs:idx
55 # define xelf_getphdr(elf, idx, name) name = elf32_getphdr (elf) + idx argument
56 # define xelf_getphdr_ptr(elf, idx, name) name = elf32_getphdr (elf) + idx argument
57 # define xelf_update_phdr(elf, idx, phdr) \ argument
58 /* nothing */ ((void) (elf), (void) (idx), (void) (phdr), 1)
68 # define xelf_getsym(data, idx, name) \ argument
69 name = &((Elf32_Sym *) (data)->d_buf)[idx]
70 # define xelf_getsym_ptr(data, idx, name) \ argument
71 name = &((Elf32_Sym *) (data)->d_buf)[idx]
72 # define xelf_getsymshndx(data, ndxdata, idx, name1, name2) \ argument
73 (name1 = &((Elf32_Sym *) ((data)->d_buf))[idx]); \
75 ? ((Elf32_Word *) ((ndxdata)->d_buf))[idx] : 0)
76 # define xelf_update_sym(data, idx, sym) \ argument
77 /* nothing */ ((void) (data), (void) (idx), (void) (sym), 1)
78 # define xelf_update_symshndx(data, ndxdata, idx, name1, name2, datachanged) \ argument
80 ((Elf32_Sym *) ((data)->d_buf))[idx] = *name1; \
82 ((Elf32_Word *) ((ndxdata)->d_buf))[idx] = name2
85 # define xelf_getversym_copy(data, idx, name) \ argument
86 (name = ((Elf32_Versym *) ((data)->d_buf))[idx], &name)
89 # define xelf_getdyn(data, idx, name) \ argument
90 name = &((Elf32_Dyn *) ((data)->d_buf))[idx]
91 # define xelf_getdyn_ptr(data, idx, name) \ argument
92 name = &((Elf32_Dyn *) ((data)->d_buf))[idx]
93 # define xelf_update_dyn(data, idx, name) \ argument
94 /* nothing */ ((void) (data), (void) (idx), (void) (name), 1)
97 # define xelf_getrel(data, idx, name) \ argument
98 name = &((Elf32_Rel *) ((data)->d_buf))[idx]
99 # define xelf_getrel_ptr(data, idx, name) \ argument
100 name = &((Elf32_Rel *) ((data)->d_buf))[idx]
101 # define xelf_update_rel(data, idx, name) \ argument
102 /* nothing */ ((void) (data), (void) (idx), (void) (name), 1)
105 # define xelf_getrela(data, idx, name) \ argument
106 name = &((Elf32_Rela *) ((data)->d_buf))[idx]
107 # define xelf_getrela_ptr(data, idx, name) \ argument
108 name = &((Elf32_Rela *) ((data)->d_buf))[idx]
109 # define xelf_update_rela(data, idx, name) \ argument
110 /* nothing */ ((void) (data), (void) (idx), (void) (name), 1)
187 # define xelf_getphdr(elf, idx, name) name = elf64_getphdr (elf) + idx argument
188 # define xelf_getphdr_ptr(elf, idx, name) name = elf64_getphdr (elf) + idx argument
189 # define xelf_update_phdr(elf, idx, phdr) \ argument
190 /* nothing */ ((void) (elf), (void) (idx), (void) (phdr), 1)
200 # define xelf_getsym(data, idx, name) \ argument
201 name = &((Elf64_Sym *) (data)->d_buf)[idx]
202 # define xelf_getsym_ptr(data, idx, name) \ argument
203 name = &((Elf64_Sym *) (data)->d_buf)[idx]
204 # define xelf_getsymshndx(data, ndxdata, idx, name1, name2) \ argument
205 (name1 = &((Elf64_Sym *) ((data)->d_buf))[idx]); \
207 ? ((Elf32_Word *) ((ndxdata)->d_buf))[idx] : 0)
208 # define xelf_update_sym(data, idx, sym) \ argument
209 /* nothing */ ((void) (data), (void) (idx), (void) (sym), 1)
210 # define xelf_update_symshndx(data, ndxdata, idx, name1, name2, datachanged) \ argument
212 ((Elf64_Sym *) ((data)->d_buf))[idx] = *name1; \
214 (((Elf32_Word *) ((ndxdata)->d_buf))[idx] = name2)
217 # define xelf_getversym_copy(data, idx, name) \ argument
218 (name = ((Elf64_Versym *) ((data)->d_buf))[idx], (&name))
221 # define xelf_getdyn(data, idx, name) \ argument
222 name = &((Elf64_Dyn *) ((data)->d_buf))[idx]
223 # define xelf_getdyn_ptr(data, idx, name) \ argument
224 name = &((Elf64_Dyn *) ((data)->d_buf))[idx]
225 # define xelf_update_dyn(data, idx, name) \ argument
226 /* nothing */ ((void) (data), (void) (idx), (void) (name), 1)
229 # define xelf_getrel(data, idx, name) \ argument
230 name = &((Elf64_Rel *) ((data)->d_buf))[idx]
231 # define xelf_getrel_ptr(data, idx, name) \ argument
232 name = &((Elf64_Rel *) ((data)->d_buf))[idx]
233 # define xelf_update_rel(data, idx, name) \ argument
234 /* nothing */ ((void) (data), (void) (idx), (void) (name), 1)
237 # define xelf_getrela(data, idx, name) \ argument
238 name = &((Elf64_Rela *) ((data)->d_buf))[idx]
239 # define xelf_getrela_ptr(data, idx, name) \ argument
240 name = &((Elf64_Rela *) ((data)->d_buf))[idx]
241 # define xelf_update_rela(data, idx, name) \ argument
242 /* nothing */ ((void) (data), (void) (idx), (void) (name), 1)
320 # define xelf_getphdr(elf, idx, name) \ argument
321 name = gelf_getphdr (elf, idx, &name##_mem)
322 # define xelf_getphdr_ptr(elf, idx, name) \ argument
324 # define xelf_update_phdr(elf, idx, phdr) \ argument
325 gelf_update_phdr (elf, idx, phdr)
334 # define xelf_getsym(data, idx, name) \ argument
335 name = gelf_getsym (data, idx, &name##_mem)
336 # define xelf_getsym_ptr(data, idx, name) \ argument
338 # define xelf_getsymshndx(data, ndxdata, idx, name1, name2) \ argument
339 name1 = gelf_getsymshndx (data, ndxdata, idx, &name1##_mem, &(name2))
340 # define xelf_update_sym(data, idx, sym) gelf_update_sym (data, idx, sym) argument
341 # define xelf_update_symshndx(data, ndxdata, idx, name1, name2, datachanged) \ argument
342 gelf_update_symshndx (data, ndxdata, idx, name1, name2)
345 # define xelf_getversym_copy(data, idx, name) \ argument
346 gelf_getversym (data, idx, &name)
349 # define xelf_getdyn(data, idx, name) \ argument
350 name = gelf_getdyn (data, idx, &name##_mem)
351 # define xelf_getdyn_ptr(data, idx, name) \ argument
353 # define xelf_update_dyn(data, idx, name) \ argument
354 gelf_update_dyn (data, idx, name)
357 # define xelf_getrel(data, idx, name) \ argument
358 name = gelf_getrel (data, idx, &name##_mem)
359 # define xelf_getrel_ptr(data, idx, name) \ argument
361 # define xelf_update_rel(data, idx, name) \ argument
362 gelf_update_rel (data, idx, name)
365 # define xelf_getrela(data, idx, name) \ argument
366 name = gelf_getrela (data, idx, &name##_mem)
367 # define xelf_getrela_ptr(data, idx, name) \ argument
369 # define xelf_update_rela(data, idx, name) \ argument
370 gelf_update_rela (data, idx, name)