Skip to content

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

@Jotaceee

Description

@Jotaceee

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions