https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248516

Jessica Clarke <jrt...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jrt...@freebsd.org

--- Comment #4 from Jessica Clarke <jrt...@freebsd.org> ---
Did you try loading the final linux64 module? It looks from your diff like
llvm-objcopy hasn't created the _binary_$file symbols in the first place and so
the symbol table doesn't exist (hence the error). I expect you will get an
error like `link_elf: symbol _binary_linux_locore_o_end undefined` when trying
to load the resulting module, something which I see downstream in CheriBSD
built with LLVM for Morello.

so I think there are two bugs in play:

1. elftoolchain's strip doesn't like being fed an ELF with no .symtab

2. llvm-objcopy isn't creating the _binary_$file symbols

Looking more closely at 2, it appears that llvm-objcopy erroneously applies -S
to the output file when using -I binary; it's meant to skip copying relocation
and symbol information from the source file, but presumably it gets confused
and forgets that the relocation and symbol information it's generating is
self-constructed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to