From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4473 invoked by alias); 2 Sep 2005 17:02:11 -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 4412 invoked by uid 22791); 2 Sep 2005 17:01:58 -0000 Received: from yosemite.airs.com (HELO yosemite.airs.com) (205.217.158.180) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Fri, 02 Sep 2005 17:01:58 +0000 Received: (qmail 5016 invoked by uid 10); 2 Sep 2005 17:01:56 -0000 Received: (qmail 3660 invoked by uid 500); 2 Sep 2005 16:33:17 -0000 Mail-Followup-To: binutils@sourceware.org, jimb@redhat.com, ddiky@alarity.com To: ddiky@alarity.com Cc: binutils@sourceware.org, jimb@redhat.com Subject: Re: dwarf2 and linker relaxation problem References: <200509012036.51309.ddiky@alarity.com> <200509021143.46238.ddiky@alarity.com> From: Ian Lance Taylor Date: Fri, 02 Sep 2005 17:23:00 -0000 In-Reply-To: <200509021143.46238.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/msg00043.txt.bz2 Dmitry Diky writes: > > The part that handles the R_SH_SWITCH* relocs. > > I checked this twice and it seems that this approach does not work for me. > As I see from .debug_info and .debug_line sections contents they have no > symbols referenced by .text (for example) section content. > So, the question is - how to hook on 'something' in dw2 sections to adjust > relaxed references? The SH assembler explicitly emits relocs which are only required for relaxation. For example, for .word foo - bar it will emit a reloc, even when the value can be resolved in the assembler. This exposes the information to the relaxation code. Ian