[PATCH] tests: Add an explicit -fasynchronous-unwind-tables for deleted-lib.so.

Mark Wielaard mjw at redhat.com
Sun Dec 14 13:29:07 UTC 2014

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.



More information about the elfutils-devel mailing list