Lines Matching refs:sec
64 void checkSection( const section* sec,
76 EXPECT_EQ( sec->get_index(), index );
77 EXPECT_EQ( sec->get_name(), name );
78 EXPECT_EQ( sec->get_type(), type );
79 EXPECT_EQ( sec->get_flags(), flags );
80 EXPECT_EQ( sec->get_address(), address );
81 EXPECT_EQ( sec->get_size(), size );
82 EXPECT_EQ( sec->get_link(), link );
83 EXPECT_EQ( sec->get_info(), info );
84 EXPECT_EQ( sec->get_addr_align(), addrAlign );
85 EXPECT_EQ( sec->get_entry_size(), entrySize );
89 void checkSection( const section* sec,
100 checkSection( sec, sec->get_index(), name, type, flags, address, size, link,
213 const section* sec = reader.sections[0];
214 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
216 sec = reader.sections[1];
217 checkSection( sec, 1, ".interp", SHT_PROGBITS, SHF_ALLOC, 0x08048114,
220 sec = reader.sections[9];
221 checkSection( sec, 9, ".rel.plt", SHT_REL, SHF_ALLOC, 0x08048234, 0x18,
224 sec = reader.sections[19];
225 checkSection( sec, 19, ".dynamic", SHT_DYNAMIC, SHF_WRITE | SHF_ALLOC,
228 sec = reader.sections[27];
229 checkSection( sec, 27, ".strtab", SHT_STRTAB, 0, 0x0, 0x259, 0, 0, 1,
233 sec = reader.sections[i];
234 EXPECT_EQ( sec->get_index(), i );
238 EXPECT_EQ( sec->get_index(), sec1->get_index() );
255 sec = reader.sections[".symtab"];
257 const_symbol_section_accessor sr( reader, sec );
276 sec = reader.sections[".rel.dyn"];
278 const_relocation_section_accessor reloc( reader, sec );
284 sec = reader.sections[".rel.plt"];
286 const_relocation_section_accessor reloc1( reader, sec );
298 sec = reader.sections[".note.ABI-tag"];
300 const_note_section_accessor notes( reader, sec );
324 const section* sec = reader.sections[0];
326 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
328 sec = reader.sections[1];
330 checkSection( sec, 1, ".interp", SHT_PROGBITS, SHF_ALLOC,
333 sec = reader.sections[9];
335 checkSection( sec, 9, ".rela.plt", SHT_RELA, SHF_ALLOC,
338 sec = reader.sections[20];
340 checkSection( sec, 20, ".dynamic", SHT_DYNAMIC, SHF_WRITE | SHF_ALLOC,
343 sec = reader.sections[28];
345 checkSection( sec, 28, ".strtab", SHT_STRTAB, 0, 0x0, 0x23f, 0, 0, 1,
349 EXPECT_EQ( sec->get_index(), sec1->get_index() );
367 sec = reader.sections[".symtab"];
369 const_symbol_section_accessor sr( reader, sec );
389 sec = reader.sections[".rela.dyn"];
391 const_relocation_section_accessor reloc( reader, sec );
397 sec = reader.sections[".rela.plt"];
399 const_relocation_section_accessor reloc1( reader, sec );
409 sec = reader.sections[".note.ABI-tag"];
411 const_note_section_accessor notes( reader, sec );
432 const section* sec = reader.sections[0];
434 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
436 sec = reader.sections[1];
438 checkSection( sec, 1, ".text", SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR, 0x0,
442 EXPECT_EQ( sec->get_index(), sec1->get_index() );
444 sec = reader.sections[12];
445 checkSection( sec, 12, ".strtab", SHT_STRTAB, 0, 0x0, 0x13, 0, 0, 1, 0 );
448 EXPECT_EQ( sec->get_index(), sec1->get_index() );
452 sec = reader.sections[".symtab"];
454 const_symbol_section_accessor sr( reader, sec );
462 sec = reader.sections[".rela.text"];
464 const_relocation_section_accessor reloc( reader, sec );
471 sec = reader.sections[".rela.eh_frame"];
473 const_relocation_section_accessor reloc1( reader, sec );
493 const section* sec = reader.sections[0];
495 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
497 sec = reader.sections[1];
499 checkSection( sec, 1, ".text", SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR, 0x0,
503 EXPECT_EQ( sec->get_index(), sec1->get_index() );
505 sec = reader.sections[10];
507 checkSection( sec, 10, ".strtab", SHT_STRTAB, 0, 0x0, 0x13, 0, 0, 1, 0 );
510 EXPECT_EQ( sec->get_index(), sec1->get_index() );
514 sec = reader.sections[".symtab"];
516 const_symbol_section_accessor sr( reader, sec );
524 sec = reader.sections[".rel.text"];
526 const_relocation_section_accessor reloc( reader, sec );
547 const section* sec = reader.sections[0];
549 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
551 sec = reader.sections[1];
553 checkSection( sec, 1, ".text", SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR, 0x0,
557 EXPECT_EQ( sec->get_index(), sec1->get_index() );
559 sec = reader.sections[15];
561 checkSection( sec, 15, ".strtab", SHT_STRTAB, 0, 0x0, 0x14f, 0, 0, 1, 0 );
564 EXPECT_EQ( sec->get_index(), sec1->get_index() );
568 sec = reader.sections[".symtab"];
570 const_symbol_section_accessor sr( reader, sec );
580 sec = reader.sections[".rela.text"];
582 const_relocation_section_accessor reloc( reader, sec );
589 sec = reader.sections[".rela.ctors"];
591 const_relocation_section_accessor reloc1( reader, sec );
596 sec = reader.sections[".rela.eh_frame"];
598 const_relocation_section_accessor reloc2( reader, sec );
618 const section* sec = reader.sections[0];
620 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
622 sec = reader.sections[1];
624 checkSection( sec, 1, ".interp", SHT_PROGBITS, SHF_ALLOC,
627 sec = reader.sections[9];
629 checkSection( sec, 9, ".rela.plt", SHT_RELA, SHF_ALLOC, 0x00000000010000494,
632 sec = reader.sections[20];
634 checkSection( sec, 20, ".dynamic", SHT_DYNAMIC, SHF_WRITE | SHF_ALLOC,
637 sec = reader.sections[28];
639 checkSection( sec, 28, ".shstrtab", SHT_STRTAB, 0, 0x0, 0x101, 0, 0, 1, 0 );
642 EXPECT_EQ( sec->get_index(), sec1->get_index() );
659 sec = reader.sections[".symtab"];
661 const_symbol_section_accessor sr( reader, sec );
682 sec = reader.sections[".rela.dyn"];
684 const_relocation_section_accessor reloc( reader, sec );
689 sec = reader.sections[".rela.plt"];
691 const_relocation_section_accessor reloc1( reader, sec );
700 sec = reader.sections[".note.ABI-tag"];
702 const_note_section_accessor notes( reader, sec );
747 const section* sec = reader.sections[""];
749 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
751 sec = reader.sections[".shstrtab"];
753 checkSection( sec, 1, ".shstrtab", SHT_STRTAB, 0, 0, 17, 0, 0, 1, 0 );
755 sec = reader.sections[".note"];
757 EXPECT_EQ( sec->get_index(), 2 );
758 checkSection( sec, 2, ".note", SHT_NOTE, SHF_ALLOC, 0, 28, 0, 0, 4, 0 );
800 const section* sec = reader.sections[""];
802 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
804 sec = reader.sections[".note"];
806 EXPECT_EQ( sec->get_index(), 2 );
807 checkSection( sec, 2, ".note", SHT_NOTE, SHF_ALLOC, 0, 28, 0, 0, 4, 0 );
809 sec = reader.sections[".shstrtab"];
811 checkSection( sec, 1, ".shstrtab", SHT_STRTAB, 0, 0, 17, 0, 0, 1, 0 );
853 const section* sec = reader.sections[""];
855 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
857 sec = reader.sections[".note"];
859 EXPECT_EQ( sec->get_index(), 2 );
860 checkSection( sec, 2, ".note", SHT_NOTE, SHF_ALLOC, 0, 28, 0, 0, 4, 0 );
862 sec = reader.sections[".shstrtab"];
864 checkSection( sec, 1, ".shstrtab", SHT_STRTAB, 0, 0, 17, 0, 0, 1, 0 );
906 const section* sec = reader.sections[""];
908 checkSection( sec, 0, "", SHT_NULL, 0, 0, 0, 0, 0, 0, 0 );
910 sec = reader.sections[".shstrtab"];
912 checkSection( sec, 1, ".shstrtab", SHT_STRTAB, 0, 0, 17, 0, 0, 1, 0 );
914 sec = reader.sections[".note"];
916 EXPECT_EQ( sec->get_index(), 2 );
917 checkSection( sec, 2, ".note", SHT_NOTE, SHF_ALLOC, 0, 28, 0, 0, 4, 0 );