Home
last modified time | relevance | path

Searched refs:text_sec (Results 1 – 3 of 3) sorted by relevance

/third_party/elfio/examples/write_obj/
Dwrite_obj.cpp67 section* text_sec = writer.sections.add( ".text" ); in main() local
68 text_sec->set_type( SHT_PROGBITS ); in main()
69 text_sec->set_flags( SHF_ALLOC | SHF_EXECINSTR ); in main()
70 text_sec->set_addr_align( 0x10 ); in main()
71 text_sec->set_data( text, sizeof( text ) ); in main()
94 str_index, 29, 0, STB_GLOBAL, STT_OBJECT, 0, text_sec->get_index() ); in main()
97 text_sec->get_index() ); in main()
102 rel_sec->set_info( text_sec->get_index() ); in main()
/third_party/elfio/examples/writer/
Dwriter.cpp57 section* text_sec = writer.sections.add( ".text" ); in main() local
58 text_sec->set_type( SHT_PROGBITS ); in main()
59 text_sec->set_flags( SHF_ALLOC | SHF_EXECINSTR ); in main()
60 text_sec->set_addr_align( 0x10 ); in main()
75 text_sec->set_data( text, sizeof( text ) ); in main()
86 text_seg->add_section_index( text_sec->get_index(), in main()
87 text_sec->get_addr_align() ); in main()
/third_party/elfio/tests/
DELFIOTest1.cpp52 section* text_sec = writer.sections.add( ".text" ); in write_obj_i386() local
53 text_sec->set_type( SHT_PROGBITS ); in write_obj_i386()
54 text_sec->set_flags( SHF_ALLOC | SHF_EXECINSTR ); in write_obj_i386()
55 text_sec->set_addr_align( 0x10 ); in write_obj_i386()
67 text_sec->set_data( text, sizeof( text ) ); in write_obj_i386()
101 STT_FUNC, 0, text_sec->get_index() ); in write_obj_i386()
106 rel_sec->set_info( text_sec->get_index() ); in write_obj_i386()
151 section* text_sec = writer.sections.add( ".text" ); in write_exe_i386() local
152 text_sec->set_type( SHT_PROGBITS ); in write_exe_i386()
153 text_sec->set_flags( SHF_ALLOC | SHF_EXECINSTR ); in write_exe_i386()
[all …]