From patchwork Mon Dec 10 09:51:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 1010351 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-491984-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="w2XRAh5J"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43CyyG22sxz9s47 for ; Mon, 10 Dec 2018 20:51:16 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=wF7dL9z6Plz9ckg6lJ5x2agNDnyqdPzfKDgMFjBVqoUiivqFQxXha VCh/3zQ1kWIp6rK8mEyWdRg3bT8AhZpl0AI0gFLLyXYQoh2ndJ7qHswpEP2dzbSN QmY+/TwfKYciG5kIhUV130YbZ9mMRRq0MI9r10/+T/uoS4+L+jI69U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=yvdJoWsJjWOCrXl/EBajkDobLZA=; b=w2XRAh5J2MDpCVk0ogF7 Ao/CeGPY8h7i4BGsczCsbV4orDyrdbEvcolz6HSM5Nu9MDMBPVTdm7Z9DODlzOB8 2keyFlISo/xRDB4hfaB+Ux3YJYcw7/bexMFQaSkL4TFmqGuXU76CRFWZNgO/YTvn YCZTHvo0dazUexby+XGl04U= Received: (qmail 52171 invoked by alias); 10 Dec 2018 09:51:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 52162 invoked by uid 89); 10 Dec 2018 09:51:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy= X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Dec 2018 09:51:07 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 14568AA3 for ; Mon, 10 Dec 2018 10:51:04 +0100 (CET) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ymrn4wQM6+Gl for ; Mon, 10 Dec 2018 10:51:02 +0100 (CET) Received: from lokon.CeBiTec.Uni-Bielefeld.DE (lokon.CeBiTec.Uni-Bielefeld.DE [129.70.161.152]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 4B3A4AA1 for ; Mon, 10 Dec 2018 10:51:02 +0100 (CET) Received: (from ro@localhost) by lokon.CeBiTec.Uni-Bielefeld.DE (8.15.2+Sun/8.15.2/Submit) id wBA9p1G2017437; Mon, 10 Dec 2018 10:51:01 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: Don't try to use libgcc-unwind.map with --disable-shared (PR bootstrap/65725) Date: Mon, 10 Dec 2018 10:51:01 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes When configuring with --disable-shared, Solaris bootstrap with the system ld fails since libgcc-unwind.map is missing. This is no wonder, given that the file is only generated with --enable-shared. The following patch, from the PR, fixes this. Bootstrapped on amd64-pc-solaris2.11, installed on mainline. There were many unrelated issues, usually occuring on Linux as well as Solaris, for a --disable-shared configuration, which I'll either fix or report separately. Rainer # HG changeset patch # Parent aefe43ddbbcf7dca119fa6cb2121526461337953 Don't try to use libgcc-unwind.map with --disable-shared (PR bootstrap/65725) diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -397,7 +397,7 @@ along with GCC; see the file COPYING3. #define SYSROOT_SPEC "-z sysroot=%R" #endif -#ifndef USE_GLD +#if !defined(USE_GLD) && defined(ENABLE_SHARED_LIBGCC) /* With Sun ld, use mapfile to enforce direct binding to libgcc_s unwinder. */ #define LINK_LIBGCC_MAPFILE_SPEC \ "%{shared|shared-libgcc:-M %slibgcc-unwind.map}"