diff options
author | David O'Brien <obrien@FreeBSD.org> | 2000-06-08 18:39:43 +0000 |
---|---|---|
committer | David O'Brien <obrien@FreeBSD.org> | 2000-06-08 18:39:43 +0000 |
commit | 57a6fd078e3f8491935140185c10e7af5526c649 (patch) | |
tree | adcd7bb4043c6f549a12a38a50a2e2dca3282d2d /ld/emultempl/mipsecoff.em | |
parent | 6480b79a19ed9c161f20feac05a84a35ec14f1b9 (diff) | |
download | gdb-57a6fd078e3f8491935140185c10e7af5526c649.zip gdb-57a6fd078e3f8491935140185c10e7af5526c649.tar.gz gdb-57a6fd078e3f8491935140185c10e7af5526c649.tar.bz2 |
* emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
input objects to be ECOFF.
(check_sections): einfo takes %B, not %P, to print a BFD name.
Approved by: Nick Clifton <nickc@cygnus.com>
Message-Id: <200006081748.KAA12555@elmo.cygnus.com>
Diffstat (limited to 'ld/emultempl/mipsecoff.em')
-rw-r--r-- | ld/emultempl/mipsecoff.em | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ld/emultempl/mipsecoff.em b/ld/emultempl/mipsecoff.em index 4c932a1..61ab7d4 100644 --- a/ld/emultempl/mipsecoff.em +++ b/ld/emultempl/mipsecoff.em @@ -69,6 +69,11 @@ gld${EMULATION_NAME}_after_open () { asection *datasec; + /* As first-order business, make sure that each input BFD is ECOFF. It + better be, as we are directly calling an ECOFF backend function. */ + if (bfd_get_flavour (abfd) != bfd_target_ecoff_flavour) + einfo ("%F%B: all input objects must be ECOFF for --embedded-relocs\n"); + datasec = bfd_get_section_by_name (abfd, ".sdata"); /* Note that we assume that the reloc_count field has already @@ -113,7 +118,7 @@ check_sections (abfd, sec, sdatasec) if ((bfd_get_section_flags (abfd, sec) & SEC_CODE) == 0 && sec != (asection *) sdatasec && sec->reloc_count != 0) - einfo ("%P%X: section %s has relocs; can not use --embedded-relocs\n", + einfo ("%B%X: section %s has relocs; can not use --embedded-relocs\n", abfd, bfd_get_section_name (abfd, sec)); } |