mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-27 12:17:28 +00:00
Change relocation type to R_X86_64_32
This commit is contained in:
parent
e07864463c
commit
5b2a6ca626
@ -108,7 +108,7 @@ int main( void )
|
|||||||
relocation_section_accessor rela( writer, rel_sec );
|
relocation_section_accessor rela( writer, rel_sec );
|
||||||
// Add relocation entry (adjust address at offset 11)
|
// Add relocation entry (adjust address at offset 11)
|
||||||
rela.add_entry( place_to_adjust, sym_to_adjust,
|
rela.add_entry( place_to_adjust, sym_to_adjust,
|
||||||
(unsigned char)R_386_RELATIVE );
|
(unsigned char)R_X86_64_32 );
|
||||||
|
|
||||||
// Another method to add the same relocation entry at one step is:
|
// Another method to add the same relocation entry at one step is:
|
||||||
// rela.add_entry( stra, "msg",
|
// rela.add_entry( stra, "msg",
|
||||||
|
Loading…
Reference in New Issue
Block a user