http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52042
--- Comment #6 from Patrick Marlier <patrick.marlier at gmail dot com> 2012-02-07 04:02:08 UTC --- Created attachment 26595 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26595 patch that seems to work for clone-1.c Hi guys, In fact, the problem is that getsectdata doesn't take into account the PIE. We can use _dyld_get_image_vmaddr_slide(0) but it should not be correct in case of many dynamic libraries I guess. What do you think? Should I propose this patch? Patrick Marlier.