bugThe libunwind project - Bugs: bug #47804, libunwind does not implement...


bug #47804: libunwind does not implement __aeabi_unwind_cpp_{pr0,pr1,pr2}

Submitted by:  Wang Yisan <single34>
Submitted on:  Fri 29 Apr 2016 05:34:30 AM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 29 Apr 2016 05:34:30 AM UTC, original submission:

I encountered some errors when cross-compiling libunwind to armv7l-none-linux-musleabi.
First, libunwind uses libgcc / libgcc_s by default, which I fixed by changing Makefile and src/Makefile '-lgcc' or '-lgcc_s' to '-lcompiler_rt'. But I still think choices should be available in configure script.

Second, when make was compiling files under 'tests/', the compiler complained about not finding symbol '__aeabi_unwind_cpp_pr0'.

I've done some research on the symbol, but the results are rather frustrating. The symbol is a part of ARM's EHABI, listed under 'ARM-defined personality routines and table formats for C and C++'. I don't understand what that means, but most answers online suggest stub those functions out.

I looked up the entire savannah/libunwind source code for the string '__aeabi_unwind_cpp', but there's nothing. However, I found an implementation in llvm/libunwind. It is written in C++ and uses C++ standard library (which is why I choose to use savannah/libunwind because I don't have C++ standard library available). However that implemenation is not trivial, so I cannot copy and paste that into origial code.

Also note the function is implemented in kernel headers with an empty body (which is strange).

Wang Yisan <single34>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by single34
  • -email is unavailable- added by single34 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-29 single34 Carbon-Copy- => Added single34

    Back to the top

    Powered by Savane 3.3