Lines Matching refs:section_

333   section_ptrs.push_back(&dynsym_builder_.section_);  in Write()
338 section_ptrs.push_back(&dynsym_builder_.strtab_.section_); in Write()
343 section_ptrs.push_back(&hash_builder_.section_); in Write()
348 section_ptrs.push_back(&rodata_builder_.section_); in Write()
353 section_ptrs.push_back(&text_builder_.section_); in Write()
358 section_ptrs.push_back(&dynamic_builder_.section_); in Write()
364 section_ptrs.push_back(&symtab_builder_.section_); in Write()
369 section_ptrs.push_back(&symtab_builder_.strtab_.section_); in Write()
376 section_ptrs.push_back(&it->section_); in Write()
382 section_ptrs.push_back(&shstrtab_builder_.section_); in Write()
407 dynsym_builder_.section_.sh_offset = RoundUp(base_offset, dynsym_builder_.section_.sh_addralign); in Write()
408 dynsym_builder_.section_.sh_addr = dynsym_builder_.section_.sh_offset; in Write()
409 dynsym_builder_.section_.sh_size = dynsym_builder_.GetSize() * sizeof(Elf32_Sym); in Write()
410 dynsym_builder_.section_.sh_link = dynsym_builder_.GetLink(); in Write()
413 dynsym_builder_.strtab_.section_.sh_offset = NextOffset(dynsym_builder_.strtab_.section_, in Write()
414 dynsym_builder_.section_); in Write()
415 dynsym_builder_.strtab_.section_.sh_addr = dynsym_builder_.strtab_.section_.sh_offset; in Write()
416 dynsym_builder_.strtab_.section_.sh_size = dynstr.size(); in Write()
417 dynsym_builder_.strtab_.section_.sh_link = dynsym_builder_.strtab_.GetLink(); in Write()
420 hash_builder_.section_.sh_offset = NextOffset(hash_builder_.section_, in Write()
421 dynsym_builder_.strtab_.section_); in Write()
422 hash_builder_.section_.sh_addr = hash_builder_.section_.sh_offset; in Write()
423 hash_builder_.section_.sh_size = hash.size() * sizeof(Elf32_Word); in Write()
424 hash_builder_.section_.sh_link = hash_builder_.GetLink(); in Write()
427 rodata_builder_.section_.sh_offset = NextOffset(rodata_builder_.section_, in Write()
428 hash_builder_.section_); in Write()
429 rodata_builder_.section_.sh_addr = rodata_builder_.section_.sh_offset; in Write()
430 rodata_builder_.section_.sh_size = rodata_builder_.size_; in Write()
431 rodata_builder_.section_.sh_link = rodata_builder_.GetLink(); in Write()
434 text_builder_.section_.sh_offset = NextOffset(text_builder_.section_, rodata_builder_.section_); in Write()
435 text_builder_.section_.sh_addr = text_builder_.section_.sh_offset; in Write()
436 text_builder_.section_.sh_size = text_builder_.size_; in Write()
437 text_builder_.section_.sh_link = text_builder_.GetLink(); in Write()
438 CHECK_ALIGNED(rodata_builder_.section_.sh_offset + rodata_builder_.section_.sh_size, kPageSize); in Write()
441 dynamic_builder_.section_.sh_offset = NextOffset(dynamic_builder_.section_, in Write()
442 text_builder_.section_); in Write()
443 dynamic_builder_.section_.sh_addr = dynamic_builder_.section_.sh_offset; in Write()
444 dynamic_builder_.section_.sh_size = dynamic_builder_.GetSize() * sizeof(Elf32_Dyn); in Write()
445 dynamic_builder_.section_.sh_link = dynamic_builder_.GetLink(); in Write()
447 Elf32_Shdr prev = dynamic_builder_.section_; in Write()
450 symtab_builder_.section_.sh_offset = NextOffset(symtab_builder_.section_, in Write()
451 dynamic_builder_.section_); in Write()
452 symtab_builder_.section_.sh_addr = 0; in Write()
454 symtab_builder_.section_.sh_size = symtab_builder_.GetSize() * sizeof(Elf32_Sym); in Write()
455 symtab_builder_.section_.sh_link = symtab_builder_.GetLink(); in Write()
458 symtab_builder_.strtab_.section_.sh_offset = NextOffset(symtab_builder_.strtab_.section_, in Write()
459 symtab_builder_.section_); in Write()
460 symtab_builder_.strtab_.section_.sh_addr = 0; in Write()
461 symtab_builder_.strtab_.section_.sh_size = strtab.size(); in Write()
462 symtab_builder_.strtab_.section_.sh_link = symtab_builder_.strtab_.GetLink(); in Write()
464 prev = symtab_builder_.strtab_.section_; in Write()
467 LOG(INFO) << "dynsym off=" << dynsym_builder_.section_.sh_offset in Write()
468 << " dynsym size=" << dynsym_builder_.section_.sh_size; in Write()
469 LOG(INFO) << "dynstr off=" << dynsym_builder_.strtab_.section_.sh_offset in Write()
470 << " dynstr size=" << dynsym_builder_.strtab_.section_.sh_size; in Write()
471 LOG(INFO) << "hash off=" << hash_builder_.section_.sh_offset in Write()
472 << " hash size=" << hash_builder_.section_.sh_size; in Write()
473 LOG(INFO) << "rodata off=" << rodata_builder_.section_.sh_offset in Write()
474 << " rodata size=" << rodata_builder_.section_.sh_size; in Write()
475 LOG(INFO) << "text off=" << text_builder_.section_.sh_offset in Write()
476 << " text size=" << text_builder_.section_.sh_size; in Write()
477 LOG(INFO) << "dynamic off=" << dynamic_builder_.section_.sh_offset in Write()
478 << " dynamic size=" << dynamic_builder_.section_.sh_size; in Write()
480 LOG(INFO) << "symtab off=" << symtab_builder_.section_.sh_offset in Write()
481 << " symtab size=" << symtab_builder_.section_.sh_size; in Write()
482 LOG(INFO) << "strtab off=" << symtab_builder_.strtab_.section_.sh_offset in Write()
483 << " strtab size=" << symtab_builder_.strtab_.section_.sh_size; in Write()
489 it->section_.sh_offset = NextOffset(it->section_, prev); in Write()
490 it->section_.sh_addr = 0; in Write()
491 it->section_.sh_size = it->GetBuffer()->size(); in Write()
492 it->section_.sh_link = it->GetLink(); in Write()
496 prev = it->section_; in Write()
498 LOG(INFO) << it->name_ << " off=" << it->section_.sh_offset in Write()
499 << " " << it->name_ << " size=" << it->section_.sh_size; in Write()
503 shstrtab_builder_.section_.sh_offset = NextOffset(shstrtab_builder_.section_, prev); in Write()
504 shstrtab_builder_.section_.sh_addr = 0; in Write()
505 shstrtab_builder_.section_.sh_size = shstrtab.size(); in Write()
506 shstrtab_builder_.section_.sh_link = shstrtab_builder_.GetLink(); in Write()
508 LOG(INFO) << "shstrtab off=" << shstrtab_builder_.section_.sh_offset in Write()
509 << " shstrtab size=" << shstrtab_builder_.section_.sh_size; in Write()
514 shstrtab_builder_.section_.sh_offset + shstrtab_builder_.section_.sh_size, in Write()
519 CHECK_EQ(dynsym.size() * sizeof(Elf32_Sym), dynsym_builder_.section_.sh_size); in Write()
523 CHECK_EQ(symtab.size() * sizeof(Elf32_Sym), symtab_builder_.section_.sh_size); in Write()
531 CHECK_EQ(dynamic.size() * sizeof(Elf32_Dyn), dynamic_builder_.section_.sh_size); in Write()
535 Elf32_Word load_r_size = rodata_builder_.section_.sh_offset + rodata_builder_.section_.sh_size; in Write()
538 program_headers[PH_LOAD_R__].p_align = rodata_builder_.section_.sh_addralign; in Write()
540 Elf32_Word load_rx_size = text_builder_.section_.sh_size; in Write()
541 program_headers[PH_LOAD_R_X].p_offset = text_builder_.section_.sh_offset; in Write()
542 program_headers[PH_LOAD_R_X].p_vaddr = text_builder_.section_.sh_offset; in Write()
543 program_headers[PH_LOAD_R_X].p_paddr = text_builder_.section_.sh_offset; in Write()
546 program_headers[PH_LOAD_R_X].p_align = text_builder_.section_.sh_addralign; in Write()
548 program_headers[PH_LOAD_RW_].p_offset = dynamic_builder_.section_.sh_offset; in Write()
549 program_headers[PH_LOAD_RW_].p_vaddr = dynamic_builder_.section_.sh_offset; in Write()
550 program_headers[PH_LOAD_RW_].p_paddr = dynamic_builder_.section_.sh_offset; in Write()
551 program_headers[PH_LOAD_RW_].p_filesz = dynamic_builder_.section_.sh_size; in Write()
552 program_headers[PH_LOAD_RW_].p_memsz = dynamic_builder_.section_.sh_size; in Write()
553 program_headers[PH_LOAD_RW_].p_align = dynamic_builder_.section_.sh_addralign; in Write()
555 program_headers[PH_DYNAMIC].p_offset = dynamic_builder_.section_.sh_offset; in Write()
556 program_headers[PH_DYNAMIC].p_vaddr = dynamic_builder_.section_.sh_offset; in Write()
557 program_headers[PH_DYNAMIC].p_paddr = dynamic_builder_.section_.sh_offset; in Write()
558 program_headers[PH_DYNAMIC].p_filesz = dynamic_builder_.section_.sh_size; in Write()
559 program_headers[PH_DYNAMIC].p_memsz = dynamic_builder_.section_.sh_size; in Write()
560 program_headers[PH_DYNAMIC].p_align = dynamic_builder_.section_.sh_addralign; in Write()
573 pieces.push_back(new ElfFileMemoryPiece(".dynamic", dynamic_builder_.section_.sh_offset, in Write()
574 dynamic.data(), dynamic_builder_.section_.sh_size)); in Write()
575 pieces.push_back(new ElfFileMemoryPiece(".dynsym", dynsym_builder_.section_.sh_offset, in Write()
577 pieces.push_back(new ElfFileMemoryPiece(".dynstr", dynsym_builder_.strtab_.section_.sh_offset, in Write()
579 pieces.push_back(new ElfFileMemoryPiece(".hash", hash_builder_.section_.sh_offset, in Write()
581 pieces.push_back(new ElfFileRodataPiece(rodata_builder_.section_.sh_offset, oat_writer_)); in Write()
582 pieces.push_back(new ElfFileOatTextPiece(text_builder_.section_.sh_offset, oat_writer_)); in Write()
584 pieces.push_back(new ElfFileMemoryPiece(".symtab", symtab_builder_.section_.sh_offset, in Write()
586 pieces.push_back(new ElfFileMemoryPiece(".strtab", symtab_builder_.strtab_.section_.sh_offset, in Write()
589 pieces.push_back(new ElfFileMemoryPiece(".shstrtab", shstrtab_builder_.section_.sh_offset, in Write()
601 pieces.push_back(new ElfFileMemoryPiece(it->name_, it->section_.sh_offset, in Write()
651 if (it->section_) { in GetDynamics()
654 {it->tag_, {it->off_ + it->section_->section_.sh_addr}}); in GetDynamics()
677 sym.st_value = it->addr_ + it->section_->section_.sh_offset; in GenerateSymtab()
683 sym.st_shndx = it->section_->section_index_; in GenerateSymtab()
699 strtab_.section_.sh_size = tab.size(); in GenerateStrtab()
705 builder->section_.sh_name = strtab->size(); in AssignSectionStr()
710 << "to shstrtab at offset " << builder->section_.sh_name; in AssignSectionStr()