From owner-cvs-src@FreeBSD.ORG Fri Jun 13 15:25:41 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C289037B401; Fri, 13 Jun 2003 15:25:41 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74A5543FB1; Fri, 13 Jun 2003 15:25:41 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5DMPf0U028433; Fri, 13 Jun 2003 15:25:41 -0700 (PDT) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5DMPfw0028432; Fri, 13 Jun 2003 15:25:41 -0700 (PDT) Message-Id: <200306132225.h5DMPfw0028432@repoman.freebsd.org> From: Peter Wemm Date: Fri, 13 Jun 2003 15:25:41 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/gnu/usr.bin/cc/cc_tools freebsd-native.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 22:25:42 -0000 peter 2003/06/13 15:25:41 PDT FreeBSD src repository Modified files: gnu/usr.bin/cc/cc_tools freebsd-native.h Log: When building a shared library, link it against libgcc_pic.a instead of the non-PIC libgcc.a. Linking non-pic code into a shared library is not a good thing. It happens to break amd64 at compile time, and the ppc folks want it too. The problem is mainly with C++ code, unwind-dw2.c in particular. Most of the other functions in libgcc.a are self contained so most of the time it isn't a problem. The dwarf2 unwinder is not safe though since it does make global variable references. Reviewed by: kan Revision Changes Path 1.22 +2 -1 src/gnu/usr.bin/cc/cc_tools/freebsd-native.h