From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24810 invoked by alias); 20 Jun 2006 12:33:40 -0000 Received: (qmail 24796 invoked by uid 22791); 20 Jun 2006 12:33:40 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 20 Jun 2006 12:33:38 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FsfQC-0005KL-9Z; Tue, 20 Jun 2006 08:33:32 -0400 Date: Tue, 20 Jun 2006 12:37:00 -0000 From: Daniel Jacobowitz To: Mattias Bertilsson Cc: gdb@sourceware.org, binutils@sourceware.org Subject: Re: Problem with gdb relocation of debug info Message-ID: <20060620123332.GF20079@nevyn.them.org> Mail-Followup-To: Mattias Bertilsson , gdb@sourceware.org, binutils@sourceware.org References: <4493F8EC.8040106@enea.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4493F8EC.8040106@enea.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00137.txt.bz2 On Sat, Jun 17, 2006 at 02:43:24PM +0200, Mattias Bertilsson wrote: > ld -o [exe] [intermediate] -T [lcf] -n --emit-relocs -e [crt0] --cref > --discard-none -M This is the key. As Andreas said, gdb is doing the right thing. But you don't want it to do that right thing. You might want to prevent GDB from applying relocations in ET_EXEC files - I presume this produces an ET_EXEC file. -- Daniel Jacobowitz CodeSourcery