labath added a comment. In D61018#1475553 <https://reviews.llvm.org/D61018#1475553>, @clayborg wrote:
> Got errors trying to compile this .s file on mac: > > $ ~/Documents/src/lldb/svn/lldb/llvm-build/Release+Asserts/x86_64/bin/clang > foo.s -o foo.o > foo.s:3:9: error: unknown directive > .type bar, @function > ^ > foo.s:11:9: error: unknown directive > .size bar, .-bar > ^ > foo.s:13:9: error: unknown directive > .type foo, @function > ^ > foo.s:25:9: error: unknown directive > .size foo, .-foo > ^ > foo.s:27:9: error: unknown directive > .type main, @function > ^ > foo.s:49:9: error: unknown directive > .size main, .-main > Yeah, that test is linux-only (technically, other elf platforms may work too). I am not aware of any way to generate eh_frame entries with this kind of content except by hand-written assembly, and assembly is not really cross-platform. If you just want to look at the resulting binary, you can add `-target x86_64-pc-linux -c` to the clang invocation, but that of course still won't run on a mac. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D61018/new/ https://reviews.llvm.org/D61018 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits