Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: ford AT vss DOT fsi DOT com Cc: cygwin AT cygwin DOT com, binutils AT sources DOT redhat DOT com, dave AT beermex DOT com Subject: Re: HELP! How to add secrel psuedo op for pe-i386? References: From: Nick Clifton Date: 17 Jan 2003 18:43:40 +0000 In-Reply-To: Message-ID: Lines: 53 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi Brian, > > So, all I need to do is define ASM_OUTPUT_DWARF_OFFSET correctly in > > gcc/config/i386/cygwin.h. > > > > Does anyone have a good way to define a section relative offset in > > assembly for Cygwin, or do I need to define labels for the sections in the > > link script and use them? That seems messy. > > > I think the "correct" way to handle this is to implement the secrel psuedo > op like IA64 does. I only have a very vauge idea what this means. > > Can a binutils guru enlighten me on what's involved here? Thanks. I'll try. Basically you change gcc so that instead of generating: .word it generates something like this: .word @secrel (