[Lldb-commits] [PATCH] D61018: RegisterContextLLDB: Push CFA value on DWARF stack when evaluating register expressions
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 23 07:50:37 PDT 2019
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
More information about the lldb-commits
mailing list