From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22834 invoked by alias); 22 Apr 2003 18:36:58 -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 22822 invoked from network); 22 Apr 2003 18:36:53 -0000 Received: from unknown (HELO ns2.uk.superh.com) (193.128.105.170) by sources.redhat.com with SMTP; 22 Apr 2003 18:36:53 -0000 Received: from sh-uk-ex01.uk.w2k.superh.com (sh-uk-ex01 [192.168.16.17]) by ns2.uk.superh.com (8.11.6+Sun/8.11.6) with ESMTP id h3MIG4x27257; Tue, 22 Apr 2003 19:16:04 +0100 (BST) Received: from superh.com ([192.168.17.40]) by sh-uk-ex01.uk.w2k.superh.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 22 Apr 2003 19:37:05 +0100 Message-ID: <3EA58B57.F6F58A01@superh.com> Date: Tue, 22 Apr 2003 18:36:00 -0000 From: Joern Rennecke Organization: SuperH UK Ltd. X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Oliva , binutils@sources.redhat.com, Alan Modra Subject: Re: readelf: apply all rela relocations in the debug_info section References: <3EA58964.E0269B6F@superh.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Apr 2003 18:37:05.0515 (UTC) FILETIME=[2C5773B0:01C308FE] X-SW-Source: 2003-04/txt/msg00416.txt.bz2 Joern Rennecke wrote: > > > * readelf.c (display_debug_info): Apply RELA relocations on the > > entire section. > > (byte_put_little_endian, byte_put_big_endian): New functions. > > (byte_put): New variable. > > (get_file_header): Initialize it. > > This breaks the readelf -wi test for sh-elf. P.S.: I should probably say: It breaks this test some more. The comparison template is already wrong, but with your patch, it doesn't even get that far, readelf spews two warnings: readelf: Warning: Skipping unexpected symbol type 1 readelf: Warning: Skipping unexpected symbol type 1 gdb says that these are relocations for the symbols _global and _common. -- -------------------------- SuperH (UK) Ltd. 2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX T:+44 1454 465658