Adding a new executable format to mold #346
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Hey there!
If I wanted to add a new executable format as an output type for mold's linking, where would I start?
Beta Was this translation helpful? Give feedback.
All reactions