mirror of
https://github.com/rui314/mold.git
synced 2024-10-04 08:37:28 +03:00
731dd0ed25
With this change, you can link a simple bootloader using mold. To do so, compile bootloader source files to object files with the `-fno-PIC` flag and then invoke mold on the object files with `-Ttext=<bootloader-start-address>` and `--oformat=binary`. The .text segment is usually at the beginning of the output file if the file is created that way. By passing the startup code as the first file argument to the linker, you can place that startup code at the beginning of the file. Fixes https://github.com/rui314/mold/issues/418 |
||
---|---|---|
.. | ||
elf | ||
macho | ||
gentoo-test.sh | ||
Makefile.darwin | ||
Makefile.linux |