From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12354 invoked by alias); 27 May 2014 22:04:43 -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 12340 invoked by uid 89); 27 May 2014 22:04:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: bes.se.axis.com Received: from bes.se.axis.com (HELO bes.se.axis.com) (195.60.68.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 May 2014 22:04:39 +0000 Received: from localhost (localhost [127.0.0.1]) by bes.se.axis.com (Postfix) with ESMTP id AE7B62E3E8; Wed, 28 May 2014 00:04:36 +0200 (CEST) Received: from bes.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bes.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id t2hcGI9LiIk2; Wed, 28 May 2014 00:04:31 +0200 (CEST) Received: from boulder.se.axis.com (boulder.se.axis.com [10.0.2.104]) by bes.se.axis.com (Postfix) with ESMTP id 62B7F2E2ED; Wed, 28 May 2014 00:04:31 +0200 (CEST) Received: from boulder.se.axis.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 410C7F02; Wed, 28 May 2014 00:04:31 +0200 (CEST) Received: from thoth.se.axis.com (thoth.se.axis.com [10.0.2.173]) by boulder.se.axis.com (Postfix) with ESMTP id 3457FEFD; Wed, 28 May 2014 00:04:31 +0200 (CEST) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by thoth.se.axis.com (Postfix) with ESMTP id 3158234005; Wed, 28 May 2014 00:04:31 +0200 (CEST) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id s4RM4VQD018559; Wed, 28 May 2014 00:04:31 +0200 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id s4RM4UVF018555; Wed, 28 May 2014 00:04:30 +0200 Date: Tue, 27 May 2014 22:04:00 -0000 Message-Id: <201405272204.s4RM4UVF018555@ignucius.se.axis.com> From: Hans-Peter Nilsson To: dj@redhat.com CC: binutils@sourceware.org In-reply-to: <201405100233.s4A2XCOR030016@greed.delorie.com> (message from DJ Delorie on Sat, 10 May 2014 04:33:12 +0200) Subject: Breakage with "[rfc] new bfd hook: additional link map text" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-SW-Source: 2014-05/txt/msg00245.txt.bz2 > From: DJ Delorie > Date: Sat, 10 May 2014 04:33:12 +0200 > * 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. > > * ld/ldemul.h (extra_map_file_text): New field. > (ldemul_extra_map_file_text): Declare. > * ld/ldemul.c (ldemul_extra_map_file_text): Define. > * ld/ldlang.c (lang_map): Call it. > > * ld/emultempl/rxelf.em: Add extra_map_file_text hook. > * ld/emultempl/aix.em: Add NULL extra_map_file_text hook. > * ld/emultempl/armcoff.em: Likewise. > * ld/emultempl/beos.em: Likewise. > * ld/emultempl/elf32.em: Likewise. > * ld/emultempl/generic.em: Likewise. > * ld/emultempl/gld960.em: Likewise. > * ld/emultempl/gld960c.em: Likewise. > * ld/emultempl/linux.em: Likewise. > * ld/emultempl/lnk960.em: Likewise. > * ld/emultempl/m68kcoff.em: Likewise. > * ld/emultempl/pe.em: Likewise. > * ld/emultempl/pep.em: Likewise. > * ld/emultempl/sunos.em: Likewise. > * ld/emultempl/ticoff.em: Likewise. > * ld/emultempl/vanilla.em: Likewise. This broke cris-elf (building the aout emulation) and mmix-knuth-mmixware, probably various other some-odd-emulation-included targets too as follows: ... LIB_PATH='' /bin/bash /tmp/hpautotest-binutils/bsrc/src/ld/genscripts.sh "/tmp/hpautotest-binutils/bsrc/src/ld" "/usr/local/lib" "/usr/local" "/usr/local" x86_64-unknown-linux-gnu cris-axis-elf cris-axis-elf "criself crisaout crislinux" "/usr/local/lib /lib /usr/lib" no no crisaout "" gcc -O2 -m32 -DHAVE_CONFIG_H -I. -I/tmp/hpautotest-binutils/bsrc/src/ld -I. -I/tmp/hpautotest-binutils/bsrc/src/ld -I../bfd -I/tmp/hpautotest-binutils/bsrc/src/ld/../bfd -I/tmp/hpautotest-binutils/bsrc/src/ld/../include -g -O2 -DENABLE_PLUGINS -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT ecrisaout.o -MD -MP -MF .deps/ecrisaout.Tpo -c -o ecrisaout.o ecrisaout.c ecrisaout.c:586:3: error: called object '0u' is not a function ecrisaout.c:587:1: error: missing initializer [-Werror=missing-field-initializers] ecrisaout.c:587:1: error: (near initialization for 'ld_crisaout_emulation.new_vers_pattern') [-Werror=missing-field-initializers] cc1: all warnings being treated as errors make[4]: *** [ecrisaout.o] Error 1 make[4]: Leaving directory `/tmp/hpautotest-binutils/cris-axis-elf/ld' ... cp /tmp/hpautotest-binutils/bsrc/src/ld/emultempl/astring.sed stringify.sed LIB_PATH='' /bin/bash /tmp/hpautotest-binutils/bsrc/src/ld/genscripts.sh "/tmp/hpautotest-binutils/bsrc/src/ld" "/usr/local/lib" "/usr/local" "/usr/local" x86_64-unknown-linux-gnu mmix-knuth-mmixware mmix-knuth-mmixware "mmo" "/usr/local/lib /lib /usr/lib" no no mmo "mmix-knuth-mmixware" gcc -O2 -m32 -DHAVE_CONFIG_H -I. -I/tmp/hpautotest-binutils/bsrc/src/ld -I. -I/tmp/hpautotest-binutils/bsrc/src/ld -I../bfd -I/tmp/hpautotest-binutils/bsrc/src/ld/../bfd -I/tmp/hpautotest-binutils/bsrc/src/ld/../include -g -O2 -DENABLE_PLUGINS -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT emmo.o -MD -MP -MF .deps/emmo.Tpo -c -o emmo.o emmo.c emmo.c:1004:3: error: called object '0u' is not a function emmo.c:1005:1: error: missing initializer [-Werror=missing-field-initializers] emmo.c:1005:1: error: (near initialization for 'ld_mmo_emulation.new_vers_pattern') [-Werror=missing-field-initializers] cc1: all warnings being treated as errors make[4]: *** [emmo.o] Error 1 make[4]: Leaving directory `/tmp/hpautotest-binutils/mmix-knuth-mmixware/ld' brgds, H-P