This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] tests: Add an explicit -fasynchronous-unwind-tables for deleted-lib.so.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Sun, 14 Dec 2014 14:29:07 +0100
- Subject: Re: [PATCH] tests: Add an explicit -fasynchronous-unwind-tables for deleted-lib.so.
On Sun, Dec 14, 2014 at 04:44:17AM +0100, Jan Kratochvil wrote:
> On Fri, 12 Dec 2014 21:55:31 +0100, Mark Wielaard wrote:
> > Some systems don't add a PT_GNU_EH_FRAME segment by default, but the
> > deleted test depends on it so that it can get at the .eh_frame_hdr table
> > through the phdrs from the remote memory ELF image. Request one explicitly
> > with -fasynchronous-unwind-tables.
> I remember -fasynchronous-unwind-tables was not the default. But now even
> RHEL-5 gcc behaves for me as if -fasynchronous-unwind-tables was the default.
Some RHEL versions/arches seem to only add -fasynchronous-unwind-tables
when building with rpmbuild, but don't have it as default for gcc proper.
That means all system binaries have it, but hand compiled code might not.
> Anyway I agree the option should be there and I forgot about it.
Thanks, pushed to master.