[cfe-dev] [LLVMdev] Unwind behaviour in Clang/LLVM

Evgeniy Stepanov eugenis at google.com
Thu Feb 13 06:03:03 PST 2014


On Thu, Feb 13, 2014 at 5:52 PM, Renato Golin <renato.golin at linaro.org> wrote:
> On 13 February 2014 13:47, Evgeniy Stepanov <eugenis at google.com> wrote:
>> Hm, I see that -funwind-tables on arm-linux-androideabi target
>> replaces this "cantunwind" with a proper unwind table.
>> Hence http://llvm-reviews.chandlerc.com/D2762.
>
> If Android is using EHABI (I think it is), the default now is to
> output full tables all the time, everywhere. This will change to be
> the same as x86 soon.

It does use EHABI, but at r201326:
$ cat 1.cc
int f() {}
$ ./bin/clang++ -target arm-linux-androideabi 1.cc -c
$ readelf -u 1.o
0x0 <_Z1fv>: 0x1 [cantunwind]
$ ./bin/clang++ -target arm-linux-androideabi 1.cc -c -funwind-tables
$ readelf -u 1.o
0x0 <_Z1fv>: 0x8000b0b0
  Compact model 0
  0x00      vsp = vsp + 4
  0xb0      finish
  0xb0      finish



More information about the cfe-dev mailing list