• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/x86/boot/compressed/

Lines Matching defs:sec

288 		struct section *sec = &secs[i];
292 sec->shdr.sh_name = elf32_to_cpu(shdr.sh_name);
293 sec->shdr.sh_type = elf32_to_cpu(shdr.sh_type);
294 sec->shdr.sh_flags = elf32_to_cpu(shdr.sh_flags);
295 sec->shdr.sh_addr = elf32_to_cpu(shdr.sh_addr);
296 sec->shdr.sh_offset = elf32_to_cpu(shdr.sh_offset);
297 sec->shdr.sh_size = elf32_to_cpu(shdr.sh_size);
298 sec->shdr.sh_link = elf32_to_cpu(shdr.sh_link);
299 sec->shdr.sh_info = elf32_to_cpu(shdr.sh_info);
300 sec->shdr.sh_addralign = elf32_to_cpu(shdr.sh_addralign);
301 sec->shdr.sh_entsize = elf32_to_cpu(shdr.sh_entsize);
302 if (sec->shdr.sh_link < ehdr.e_shnum)
303 sec->link = &secs[sec->shdr.sh_link];
312 struct section *sec = &secs[i];
313 if (sec->shdr.sh_type != SHT_STRTAB) {
316 sec->strtab = malloc(sec->shdr.sh_size);
317 if (!sec->strtab) {
319 sec->shdr.sh_size);
321 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) {
323 sec->shdr.sh_offset, strerror(errno));
325 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp)
326 != sec->shdr.sh_size) {
337 struct section *sec = &secs[i];
338 if (sec->shdr.sh_type != SHT_SYMTAB) {
341 sec->symtab = malloc(sec->shdr.sh_size);
342 if (!sec->symtab) {
344 sec->shdr.sh_size);
346 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) {
348 sec->shdr.sh_offset, strerror(errno));
350 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp)
351 != sec->shdr.sh_size) {
355 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) {
356 Elf32_Sym *sym = &sec->symtab[j];
370 struct section *sec = &secs[i];
371 if (sec->shdr.sh_type != SHT_REL) {
374 sec->reltab = malloc(sec->shdr.sh_size);
375 if (!sec->reltab) {
377 sec->shdr.sh_size);
379 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) {
381 sec->shdr.sh_offset, strerror(errno));
383 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp)
384 != sec->shdr.sh_size) {
388 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Rel); j++) {
389 Elf32_Rel *rel = &sec->reltab[j];
403 struct section *sec = &secs[i];
408 if (sec->shdr.sh_type != SHT_SYMTAB) {
411 sh_symtab = sec->symtab;
412 sym_strtab = sec->link->strtab;
413 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) {
416 sym = &sec->symtab[j];
437 struct section *sec = &secs[i];
442 if (sec->shdr.sh_type != SHT_REL) {
445 sec_symtab = sec->link;
446 sec_applies = &secs[sec->shdr.sh_info];
452 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Rel); j++) {
456 rel = &sec->reltab[j];
509 struct section *sec = &secs[i];
511 if (sec->shdr.sh_type != SHT_REL) {
514 sec_symtab = sec->link;
515 sec_applies = &secs[sec->shdr.sh_info];
521 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Rel); j++) {
525 rel = &sec->reltab[j];