[cfe-commits] [PATCH] Add -ldl for libgcc to follow Android ABI

Logan Chien tzuhsiang.chien at gmail.com
Wed Aug 29 00:28:09 PDT 2012


Hi,

  According to Android ABI, we have to link with libdl.so, if "-static"
flag is not set.  Otherwise, we will get link error on MIPS architecture,
because its libgcc references `_Unwind_Find_FDE' and `dl_iterate_phdr',
but these symbols are defined in libdl.so.

  I hope the patch can resolve this issue.  And the test cases has been
attached.  Please have a look.  Thanks.

Sincerely,
Logan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120829/db0d2a7c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Add-ldl-for-lgcc-in-Android-environment.patch
Type: application/octet-stream
Size: 5032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120829/db0d2a7c/attachment.obj>


More information about the cfe-commits mailing list