Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to execute a elf file in arm-v9.* version only get errors or no information. #24

Open
Jotaceee opened this issue Feb 14, 2025 · 0 comments

Comments

@Jotaceee
Copy link

Jotaceee commented Feb 14, 2025

Hi! I'm trying to execute an elf file assembled and linked previously, but when I execute in arm-v9.4-a version the command "./armv9 -e program.elf" does not do anything.
I've tried to use the 9.3-a version and i only get an error execution error on DecodeA64 function.
So I'm asking how it is the procedure to execute a simple elf file:

My assembly file is this:

.global _start

.section .text
.align 4
_start:
mov x8, #64
mov x0, #1
adrp x1, message
add x1, x1, :lo12:message
mov x2, message_len
svc #0
mov x8, #93
mov x0, #0
svc #0

.section .data
.align 4
message:
.asciz "Hi ARMv9.5!\n"

.equ message_len, . - message

If you cant tell me how to do it. I really appreciate it.
Best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant