Click here to Skip to main content
15,890,415 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In this article when i was trying i got a problem my architecture is 64 bit but this is for 32 bit . Please tell me if someone has a solution.


www.codeproject.com/Articles/33340/Code-Injection-into-Running-Linux-Application

Offset Info Type Sym.Value Sym. Name
00000009 00000501 R_386_32 00000000 .rodata
0000000e 00000a02 R_386_PC32 00000000 system
00000013 00000b02 R_386_PC32 00000000 print



Offset Info Type Sym. Value Sym. Name + Addend
000000000005 000a00000002 R_X86_64_PC32 0000000000000000 print + fffffffffffffffc
00000000000a 00050000000a R_X86_64_32 0000000000000000 .rodata + 0
00000000000f 000b00000002 R_X86_64_PC32 0000000000000000 system + fffffffffffffffc

Relocation section '.rela.eh_frame' at offset 0x630 contains 2 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000012 000c0000000a R_X86_64_32 0000000000000000 __gxx_personality_v0 + 0
000000000028 00020000000a R_X86_64_32 0000000000000000 .text + 0
Posted
Comments
asim arora 16-Feb-12 22:22pm    
First of all thanks for your response but
For 32 bit address no addend is there but for 64 bit address
addend is there.

For 64 --print + Addend
For 32 bit-print

So what to do.
krumia 16-Feb-12 22:22pm    
Shouldn't it be tagged 'Assembly language'?

1 solution

No problem just replace the 32 bits addresses with 64 bits addresses... :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900