Adding a new executable format to mold #346
Luminoso-256
started this conversation in
General
Replies: 2 comments 3 replies
|
It depends on what you are trying. If your file format is a small extension to ELF, it shouldn't be too hard to support it. If you want to define something completely new, you essentially have to write a linker from scratch. |
2 replies
|
I didn't answer to "where to start" part. I think if your want to write a linker for a new file format, you should start writing a file dumper to familiarize yourself with the new file format. Producing a file for an unfamiliar file format is very hard, so it needs a training period to verify that you're knowledge of the format is correct. That's what I did first when I started writing mold/macOS. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey there!
If I wanted to add a new executable format as an output type for mold's linking, where would I start?
All reactions