From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23938 invoked by alias); 1 Sep 2005 17:48:26 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 23899 invoked by uid 22791); 1 Sep 2005 17:48:17 -0000 Received: from yosemite.airs.com (HELO yosemite.airs.com) (205.217.158.180) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 01 Sep 2005 17:48:17 +0000 Received: (qmail 31816 invoked by uid 10); 1 Sep 2005 17:48:15 -0000 Received: (qmail 3799 invoked by uid 500); 1 Sep 2005 17:48:07 -0000 Mail-Followup-To: binutils@sourceware.org, ddiky@alarity.com To: ddiky@alarity.com Cc: binutils@sourceware.org Subject: Re: dwarf2 and linker relaxation problem References: <200509012036.51309.ddiky@alarity.com> From: Ian Lance Taylor Date: Thu, 01 Sep 2005 17:48:00 -0000 In-Reply-To: <200509012036.51309.ddiky@alarity.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-09/txt/msg00008.txt.bz2 Dmitry Diky writes: > I am experiencing some problems with keeping dwarf2 info intact after linker > relaxation. So, if linker relax section, the line info references are shifted > by the number of deleted bytes. > Is there any example which shows how to fix this problem? I believe this works on the SH. See sh_elf_relax_delete_bytes in elf32-sh.c. Ian