1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 08:37:28 +03:00
mold/test
Rui Ueyama 731dd0ed25 [ELF] Support --oformat=binary
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
2022-04-06 19:13:43 +08:00
..
elf [ELF] Support --oformat=binary 2022-04-06 19:13:43 +08:00
macho [ELF] Generalize tests 2022-04-02 16:53:41 +08:00
gentoo-test.sh Fix Gentoo build script as build-static.sh is gone 2022-02-19 21:57:36 +09:00
Makefile.darwin [Mach-O] Make make test to work on macOS 2021-09-28 18:47:24 +09:00
Makefile.linux [Mach-O] Make make test to work on macOS 2021-09-28 18:47:24 +09:00