On Mon, Apr 17, 2017 at 10:45:37PM +0200, Mark Kettenis wrote: > This diff extends the support for CFI in binutils with a few > directives emitted by clang. Most of the code is stolen from > FreeBSD's GPLv2 binutils. Support for the .cfi_sections directive is > incomplete; basically we just ignore it. Our binutils only support > emitting frame info in the .eh_frame section. Debuggers tend to fall > back on .eh_frame if .dwarf_frame is missing, so this shouldn't be a > problem.
The primary difference is that you can't easily strip .eh_frame from a binary, so it adds overhead. > This diff is necessary to build/use clang on sparc64 as there > currently isn't an integrated assembler for the sparc64 target in > llvm. It exists, but it is missing parsing for a couple of tricky instructions. Given that some central headers on NetBSD use inline assembler with those, it never was very useful for me to enable IAS as default on sparc64. Joerg
