From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17681 invoked by alias); 3 Jun 2014 15:43:24 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 17667 invoked by uid 89); 3 Jun 2014 15:43:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Jun 2014 15:43:19 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Wrqrr-0002sx-EA from Maciej_Rozycki@mentor.com ; Tue, 03 Jun 2014 08:43:15 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 3 Jun 2014 08:43:15 -0700 Received: from localhost (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server (TLS) id 14.2.247.3; Tue, 3 Jun 2014 16:43:13 +0100 Date: Tue, 03 Jun 2014 15:43:00 -0000 From: "Maciej W. Rozycki" To: DJ Delorie CC: Alan Modra , Tristan Gingold , Subject: Re: [rfc] new bfd hook: additional link map text In-Reply-To: <201405100233.s4A2XCOR030016@greed.delorie.com> Message-ID: References: <201404110214.s3B2E2IQ016910@greed.delorie.com> <15F27C34-BFCC-4A1D-A705-C3AEB0464BF2@adacore.com> <201404222055.s3MKt75Y011634@greed.delorie.com> <201405061515.s46FFnQk025221@greed.delorie.com> <20140507030239.GY16139@bubble.grove.modra.org> <201405100233.s4A2XCOR030016@greed.delorie.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2014-06/txt/msg00020.txt.bz2 On Sat, 10 May 2014, DJ Delorie wrote: > Here's the current patch, without the debugs, with elf32-rx.h, and > without the old bfd hook. > > In case you're wondering, the purpose for all this is to have better > support for auto-generated interrupt vector tables. The compiler sets > up all the hooks, the bfd pass stitches the tables together, and this > new linker map hook dumps the generated table info to the map file. > > * bfd/elf32-rx.c (get_symbol_value_maybe): New. > (rx_elf_relocate_section): If we find a reloc against > $tableentry$default$, redirect it to the appropriate > $tableentry$$. > (RX_Table_Info): New. > (rx_table_find): New. Check all tables and SEC_KEEP all sections > with table parts in them. > (rx_check_directives): New. > (rx_table_map_2): New. > (rx_table_map): New. > (rx_additional_link_map_text): New. Called to dump tables to the > map file. > * bfd/elf32-rx.h: New. This change doesn't build with the i686-linux-gnu host, mips-linux-gnu target, --enable-targets=all: cc1: warnings being treated as errors .../bfd/elf32-rx.c: In function 'rx_table_map': .../bfd/elf32-rx.c:3871: error: format '%08lx' expects type 'long unsigned int', but argument 5 has type 'bfd_vma' .../bfd/elf32-rx.c:3876: error: format '%08lx' expects type 'long unsigned int', but argument 4 has type 'bfd_vma' .../bfd/elf32-rx.c:3879: error: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'bfd_vma' .../bfd/elf32-rx.c:3895: error: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'bfd_vma' .../bfd/elf32-rx.c:3910: error: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'bfd_vma' .../bfd/elf32-rx.c:3915: error: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'bfd_vma' make[4]: *** [elf32-rx.lo] Error 1 Maciej