Hi,
Looks like on my ubuntu 64 bit, when I compile
hello(ABCD);
I get
719e: 48 8d 05 e0 68 04 00lea0x468e0(%rip),%rax#
4da85 str1405
71a5: 48 89 44 24 08 mov%rax,0x8(%rsp)
71aa: 48 c7 44 24 10 04 00movq $0x4,0x10(%rsp)
On 09/12/14 10:43 PM, C K Kashyap wrote:
Hi,
Looks like on my ubuntu 64 bit, when I compile
hello(ABCD);
I get
719e: 48 8d 05 e0 68 04 00lea0x468e0(%rip),%rax
# 4da85 str1405
71a5: 48 89 44 24 08 mov%rax,0x8(%rsp)
71aa:
oh nice ... In my kernel I am running into an issue where I am looping
though an str but it does not get the right characters (all zeros
actually) - https://github.com/ckkashyap/unix/blob/master/kernel/uart.rs
While I've used the PIC option several times, I had not realized that rip
relative