Hello,
I found this interesting issue in binutils v2.38.
The following code works perfectly fine in ubuntu 20.04 (binutils v2.34)
content of asm_program.asm:
.global main
.text
main:
mov $message, %rdi
call c_function
ret
.data
#where the message is stored
message: .ascii "Hello Wor
Hello Nick,
Thank you for your response.
Maybe the issue is only in Ubuntu 22.04
I was able to make it run in Ubuntu 22.04, by
adding something to the stack (assuming stack alignment issue).
It works fine after that.
Sample:
content of asm_program.asm:
.global main
.text
main:
* push %rbx*