That looks like it should work. Have your linker generate a .map file - where does it show your _start symbol? Is it also showing it in the .boot section?
I don't know what a .map file is, will look into that. This does work, when I objdump it _start is at 0x0. But I'm curious if there is a better solution, I'd like to learn how it's properly done.
That's generally how it's done.
Oh I see, many thanks.
this post was submitted on 18 Jan 2026
10 points (100.0% liked)
C Programming Language
1343 readers
4 users here now
Welcome to the C community!
C is quirky, flawed, and an enormous success.
... When I read commentary about suggestions for where C should go, I often think back and give thanks that it wasn't developed under the advice of a worldwide crowd.
... The only way to learn a new programming language is by writing programs in it.
- irc: #c
🌐 https://en.cppreference.com/w/c
founded 3 years ago
MODERATORS