This is the mail archive of the
mailing list for the elfutils project.
Re: pending patches
- From: Ulf Hermann <ulf dot hermann at qt dot io>
- To: Mark Wielaard <mark at klomp dot org>
- Cc: <elfutils-devel at sourceware dot org>
- Date: Wed, 3 May 2017 16:43:36 +0200
- Subject: Re: pending patches
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=qt.io;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qtcompany.onmicrosoft.com; s=selector1-qt-io; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9B1R9614cYfP+c7hN746HNUWVpQKl6blQmBeM5zlFU4=; b=OELjFvgma7FUxx75SDVrAkkFUnYUPBOZFymfayQp0GexTBULD/1AGMBfxmavwSZ3szcPF3mtqaNgma14L6JKha+HXF92VC0brO2D3KjJiT4JLKQ8zdnnxAwOqM17FITlYVTWiKWpa91yt3hdPITSI9ZEsnLmAmyjssi71q0bB4s=
- References: <email@example.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
> - Check for -z,defs, -z,relro, -fPIC, -fPIE before using them
> There are actually two versions, I haven't looked yet how they differ.
There was a typo in tests/Makefile.am which I fixed in the second version. This change actually doesn't disable symbol versioning or rpath. It just conditionally disables PIC, PIE, making sections read-only after relocations, and the assertion that all symbols are defined. This is because on some platforms these are implicitly guaranteed or not applicable and gcc will complain about the "redundant" flags.
> - Check if gcc complains about __attribute__ (visibility(..))
This also doesn't disable anything critical. It just makes all symbols visible if the check fails. On some platforms the visibility of symbols cannot be handled with attributes.
> - Disable symbol versioning if .symver doesn't work
Actually there already is a configure switch to disable symbol versioning. We can use that ...