You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in order to try out mold for linking all of FreeBSD base and kernel, I've patched the source code of mold: elf/cmdline.cc: } else if (arg == "elf_i386" || arg == "elf_i386_fbsd") {
to recognize FreeBSD's "elf_i386_fbsd" target emulation as standard "elf_i386".
So far linking works well with some tuning of FreeBSD's make files, but now I am stuck at linking the i386 BTX located at FreeBSD's /usr/src/stand/i386/btx/btx. It builds a DOS executable (COM), so no ELF at all. And it uses a linker script:
Hi,
in order to try out mold for linking all of FreeBSD base and kernel, I've patched the source code of mold:
elf/cmdline.cc: } else if (arg == "elf_i386" || arg == "elf_i386_fbsd") {
to recognize FreeBSD's "elf_i386_fbsd" target emulation as standard "elf_i386".
So far linking works well with some tuning of FreeBSD's make files, but now I am stuck at linking the i386 BTX located at FreeBSD's
/usr/src/stand/i386/btx/btx
. It builds a DOS executable (COM), so no ELF at all. And it uses a linker script:I've tried to recreate that using "--section-order" args to mold, but:
The original ld cmdline is:
vs mold cmdline:
Now I am stuck. Any help is very appreciated...
TIA and BR,
Nils
The text was updated successfully, but these errors were encountered: