public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
To: dj@redhat.com
Cc: binutils@sourceware.org
Subject: Breakage with "[rfc] new bfd hook: additional link map text"
Date: Tue, 27 May 2014 22:04:00 -0000	[thread overview]
Message-ID: <201405272204.s4RM4UVF018555@ignucius.se.axis.com> (raw)
In-Reply-To: <201405100233.s4A2XCOR030016@greed.delorie.com> (message from DJ	Delorie on Sat, 10 May 2014 04:33:12 +0200)

> From: DJ Delorie <dj@redhat.com>
> 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$<name>, redirect it to the appropriate
>         $tableentry$<n>$.
>         (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

  parent reply	other threads:[~2014-05-27 22:04 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-11  2:14 [rfc] new bfd hook: additional link map text DJ Delorie
2014-04-11  7:10 ` Tristan Gingold
2014-04-22 20:55   ` DJ Delorie
2014-05-06 15:15     ` DJ Delorie
2014-05-07  3:02       ` Alan Modra
2014-05-07  3:13         ` DJ Delorie
2014-05-10  2:33         ` DJ Delorie
2014-05-27 15:53           ` DJ Delorie
2014-05-27 16:20             ` Nicholas Clifton
2014-05-27 21:16               ` DJ Delorie
2014-05-28 13:13                 ` Alan Modra
2014-05-27 22:04           ` Hans-Peter Nilsson [this message]
2014-05-27 23:06             ` Breakage with "[rfc] new bfd hook: additional link map text" DJ Delorie
2014-06-03 15:43           ` [rfc] new bfd hook: additional link map text Maciej W. Rozycki
2014-06-03 15:58             ` DJ Delorie
2014-06-03 16:20               ` Maciej W. Rozycki
2014-06-03 16:25                 ` DJ Delorie
2014-06-03 20:25             ` DJ Delorie
2014-06-04 11:56               ` Maciej W. Rozycki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201405272204.s4RM4UVF018555@ignucius.se.axis.com \
    --to=hans-peter.nilsson@axis.com \
    --cc=binutils@sourceware.org \
    --cc=dj@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).