From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29830 invoked by alias); 26 Feb 2005 02:31:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29677 invoked by uid 48); 26 Feb 2005 02:30:57 -0000 Date: Sun, 27 Feb 2005 02:35:00 -0000 Message-ID: <20050226023057.29675.qmail@sourceware.org> From: "hjl at lucon dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050225230026.20218.hjl@lucon.org> References: <20050225230026.20218.hjl@lucon.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/20218] Can't use __attribute__ ((visibility ("hidden"))) to hide a symbol X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg03229.txt.bz2 List-Id: ------- Additional Comments From hjl at lucon dot org 2005-02-26 02:30 ------- >>From the elf spec: If different visibility attributes are specified for distinct references to or definitions of a symbol, the most constraining visibility attribute must be propagated to the resolving symbol in the linked object. The attributes, ordered from least to most constraining, are: STV_PROTECTED, STV_HIDDEN and STV_INTERNAL. You can't have 2 definitions. The above lines apply to cases where there is only one definition and others are just references. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218