Skip to content

My Tutorial 1 QEMU output is different (wrong?) #92

Discussion options

You must be logged in to vote

Upon further inspection, it turns out that you found a bug that was introduced when I added LTO to tutorial 01.
For some reason, it messed with the address of the _start function, causing it to not be linked at 0x80000.

That is why your QEMU showed that no actual AArch64 instruction was living at 0x80000:

0x00080000:  00000004  .byte    0x04, 0x00, 0x00, 0x00

Commit 53c1163 fixed this.
Now you should be able to see the wfe infinite loop starting at 0x80000 like shown in the Readme:

IN:
0x00080000:  d503205f  wfe
0x00080004:  17ffffff  b        #0x80000

Thanks for reporting this!
Andre

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@grtwje
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by grtwje
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants