aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-11-09 20:09:00 +0000
committerIan Lance Taylor <ian@airs.com>1995-11-09 20:09:00 +0000
commita1774c51f20687ede28ad3e03e04856df498c7ce (patch)
treee88905ae6acf99c9d6c02c198abf38dcb1688a2e /bfd
parent23a994eee6abff68c0368fbe20238dd8a0c31135 (diff)
downloadgdb-a1774c51f20687ede28ad3e03e04856df498c7ce.zip
gdb-a1774c51f20687ede28ad3e03e04856df498c7ce.tar.gz
gdb-a1774c51f20687ede28ad3e03e04856df498c7ce.tar.bz2
* aoutx.h (NAME(aout,set_section_contents)): If a section can not
be represented, report the name via _bfd_error_handler. (translate_to_native_sym_flags): Likewise. * elf32-mips.c (mips_elf_final_link): Likewise. * oasys.c (oasys_write_sections): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/aoutx.h9
2 files changed, 15 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 47e3865..5ba156a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
+ * aoutx.h (NAME(aout,set_section_contents)): If a section can not
+ be represented, report the name via _bfd_error_handler.
+ (translate_to_native_sym_flags): Likewise.
+ * elf32-mips.c (mips_elf_final_link): Likewise.
+ * oasys.c (oasys_write_sections): Likewise.
+
* coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
which checks for STYP_OVRFLO sections.
(coff_compute_section_file_positions): If RS6000COFF_C, handle
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index c5da219..79b3358 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -1203,6 +1203,9 @@ NAME(aout,set_section_contents) (abfd, section, location, offset, count)
if (section != obj_textsec (abfd)
&& section != obj_datasec (abfd))
{
+ (*_bfd_error_handler)
+ ("%s: can not represent section `%s' in a.out object file format",
+ bfd_get_filename (abfd), bfd_get_section_name (abfd, section));
bfd_set_error (bfd_error_nonrepresentable_section);
return false;
}
@@ -1574,6 +1577,9 @@ translate_to_native_sym_flags (abfd, cache_ptr, sym_pointer)
{
/* This case occurs, e.g., for the *DEBUG* section of a COFF
file. */
+ (*_bfd_error_handler)
+ ("%s: can not represent section `%s' in a.out object file format",
+ bfd_get_filename (abfd), bfd_get_section_name (abfd, sec));
bfd_set_error (bfd_error_nonrepresentable_section);
return false;
}
@@ -1600,6 +1606,9 @@ translate_to_native_sym_flags (abfd, cache_ptr, sym_pointer)
sym_pointer->e_type[0] = N_UNDF | N_EXT;
else
{
+ (*_bfd_error_handler)
+ ("%s: can not represent section `%s' in a.out object file format",
+ bfd_get_filename (abfd), bfd_get_section_name (abfd, sec));
bfd_set_error (bfd_error_nonrepresentable_section);
return false;
}