From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9605 invoked by alias); 17 May 2011 15:05:14 -0000 Received: (qmail 9582 invoked by uid 22791); 17 May 2011 15:05:14 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-qw0-f41.google.com (HELO mail-qw0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 May 2011 15:05:00 +0000 Received: by qwa26 with SMTP id 26so423688qwa.0 for ; Tue, 17 May 2011 08:04:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.33.12 with SMTP id f12mr545474qad.228.1305644699305; Tue, 17 May 2011 08:04:59 -0700 (PDT) Received: by 10.229.182.7 with HTTP; Tue, 17 May 2011 08:04:59 -0700 (PDT) In-Reply-To: References: <20110516190512.GA10653@intel.com> Date: Tue, 17 May 2011 15:05:00 -0000 Message-ID: Subject: Re: PATCH: PR ld/12761: .gnu.warning.* doesn't work when building shared library From: "H.J. Lu" To: Ian Lance Taylor Cc: binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00247.txt.bz2 On Tue, May 17, 2011 at 8:02 AM, Ian Lance Taylor wrote: > "H.J. Lu" writes: > >>> The difference is that the author of a shared library can call a >>> function with a warning safely from another externally visible function >>> which does not require a warning. >>> >> >> How does linker know warning is from the author of a shared library. >> A shared library may contain many 3rd party objects. > > Sure, but it's hardly the common case. > 3rd party may be a team member or the warning may be written by the same author many years ago. -- H.J.