Re: PATCH: PR debug/54568: --eh-frame-hdr should also be enabled for static executable

2013-08-07 Thread H.J. Lu
On Thu, Sep 13, 2012 at 7:46 PM, H.J. Lu hongjiu...@intel.com wrote: Hi, There is no reason why --eh-frame-hdr can't be used with static executable on Linux. This patch enables --eh-frame-hdr for static executable on Linux and adds an exception test for static executable. Other platforms

Re: PATCH: PR debug/54568: --eh-frame-hdr should also be enabled for static executable

2012-09-14 Thread Jakub Jelinek
On Thu, Sep 13, 2012 at 07:46:52PM -0700, H.J. Lu wrote: There is no reason why --eh-frame-hdr can't be used with static executable on Linux. This patch enables --eh-frame-hdr for static Well, there is. For more than 2 years after the addition of --eh-frame-hdr support dl_iterate_phdr in

Re: PATCH: PR debug/54568: --eh-frame-hdr should also be enabled for static executable

2012-09-14 Thread H.J. Lu
On Fri, Sep 14, 2012 at 2:41 AM, Jakub Jelinek ja...@redhat.com wrote: On Thu, Sep 13, 2012 at 07:46:52PM -0700, H.J. Lu wrote: There is no reason why --eh-frame-hdr can't be used with static executable on Linux. This patch enables --eh-frame-hdr for static Well, there is. For more than 2

Re: PATCH: PR debug/54568: --eh-frame-hdr should also be enabled for static executable

2012-09-14 Thread Jakub Jelinek
On Fri, Sep 14, 2012 at 05:12:19AM -0700, H.J. Lu wrote: On Fri, Sep 14, 2012 at 2:41 AM, Jakub Jelinek ja...@redhat.com wrote: Well, there is. For more than 2 years after the addition of --eh-frame-hdr support dl_iterate_phdr in libc.a would simply always fail, you aren't adding any kind

Re: PATCH: PR debug/54568: --eh-frame-hdr should also be enabled for static executable

2012-09-14 Thread H.J. Lu
On Fri, Sep 14, 2012 at 5:26 AM, Jakub Jelinek ja...@redhat.com wrote: On Fri, Sep 14, 2012 at 05:12:19AM -0700, H.J. Lu wrote: On Fri, Sep 14, 2012 at 2:41 AM, Jakub Jelinek ja...@redhat.com wrote: Well, there is. For more than 2 years after the addition of --eh-frame-hdr support

PATCH: PR debug/54568: --eh-frame-hdr should also be enabled for static executable

2012-09-13 Thread H.J. Lu
Hi, There is no reason why --eh-frame-hdr can't be used with static executable on Linux. This patch enables --eh-frame-hdr for static executable on Linux and adds an exception test for static executable. Other platforms may also work correctly. But I can't verify it. Tested on Linux/x86-64.