Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Sat, 21 Dec 2002 12:19:52 -0500
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com, Binutils <binutils@sources.redhat.com>
Subject: Re: [PATCH] exclude runtime-pseudo-reloc symbols from auto-export
Message-ID: <20021221171952.GA22113@redhat.com>
Reply-To: cygwin@cygwin.com, binutils@sources.redhat.com
Mail-Followup-To: cygwin@cygwin.com,
	Binutils <binutils@sources.redhat.com>
References: <1040456890.7654.1.camel@lifelesswks> <012101c2a8f2$4ef75820$0a1c440a@BRAMSCHE>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <012101c2a8f2$4ef75820$0a1c440a@BRAMSCHE>
User-Agent: Mutt/1.5.1i

On Sat, Dec 21, 2002 at 02:10:18PM +0100, Ralf Habacker wrote:
>>>Maybe the horse has left the barn already but it would have been nice
>>>(tm) if these type of symbols were marked in some generic way so that
>>>we wouldn't have to keep remembering to extend this table.
>>
>>I recall commenting on this aspect in a recent binutils thread in the
>>cygwin lists, and being told that it didn't matter.
>>
>What about putting such symbols in another named text section, so that
>ld would ignore them ?

I don't see how you could do that since the symbol is associated with an
existing place in memory.  We could put the whole function in a
different segment but that's not the kind of solution I was thinking of.

I was thinking that there might be an unused attribute that could be
pressed into service as a "don't auto export" (doesn't linux/elf have
something like this?) or that there was a way to name the symbol in some
way that wasn't easily available from a C program, like putting a "." in
the name with an asm alias.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

