예제 #1
0
//------------------------------------------------------------------------------
    Elf_Word
    add_symbol( string_section_accessor& pStrWriter, const char* str,
                Elf64_Addr value, Elf_Xword size,
                unsigned char info, unsigned char other,
                Elf_Half shndx )
    {
        Elf_Word index = pStrWriter.add_string( str );
        return add_symbol( index, value, size, info, other, shndx );
    }
예제 #2
0
	void add_entry(
		string_section_accessor		str_writer,
		const char					*str,
		symbol_section_accessor		sym_writer,
		Elf64_Addr					value,
		Elf_Word					size,
		unsigned char				sym_info,
		unsigned char				other,
		Elf_Half					shndx,
		Elf64_Addr					offset,
		unsigned char				type
	) {
		Elf_Word str_index = str_writer.add_string( str );
		Elf_Word sym_index = sym_writer.add_symbol( str_index, value, size, sym_info, other, shndx );
		add_entry( offset, sym_index, type );
	}