elf_i386_fbsd is used in the FreeBSD/amd64 build for the 32-bit compat libs.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Or you can drop "_fbsd" by adding this piece of code at beginning of this function.
if (S.endswith("_fbsd")) S = S.drop_back(5);
Comment Actions
As far as I can tell it just sets the OS/ABI to FreeBSD. In practice all input ELF objects I've seen have the OS/ABI set already and lld just passes it through, so no special treatment is necessary.
This patch makes me wonder if we need "elf_x86_64_fbsd".