Nick Clifton 36e9d67b86 More fixes for problems exposed by valgrind and the address sanitizer
when displaying the contents of corrupt files.

	PR binutils/17521
	* coff-i386.c (NUM_HOWTOS): New define.
	(RTYPE2HOWTO): Use it.
	(coff_i386_rtype_to_howto): Likewise.
	(coff_i386_reloc_name_lookup): Likewise.
	(CALC_ADDEND): Check that reloc r_type field is valid.
	* coff-x86_64.c (NUM_HOWTOS): New define.
	(RTYPE2HOWTO): Use it.
	(coff_amd64_rtype_to_howto): Likewise.
	(coff_amd64_reloc_name_lookup): Likewise.
	(CALC_ADDEND): Check that reloc r_type field is valid.
	* coffcode.h (coff_slurp_line_table): Check for symbol table
	indexing underflow.
	(coff_slurp_symbol_table): Use zalloc to ensure that all table
	entries are initialised.
	* coffgen.c (_bfd_coff_read_string_table): Initialise unused bits
	in the string table.  Also ensure that the table is 0 terminated.
	(coff_get_normalized_symtab): Check for symbol table indexing
	underflow.
	* opncls.c (bfd_alloc): Catch the case where a small negative size
	can result in only 1 byte being allocated.
	(bfd_alloc2): Use bfd_alloc.
	* pe-mips.c (NUM_HOWTOS): New define.
	(coff_mips_reloc_name_lookup): Use it.
	(CALC_ADDEND): Check that reloc r_type field is valid.
	* peXXigen.c (_bfd_XXi_swap_aouthdr_in): Initialise unused entries
	in the DataDirectory.
	(pe_print_idata): Avoid reading beyond the end of the data block
	wen printing strings.
	(pe_print_edata): Likewise.
	Check for table indexing underflow.
	* peicode.h (pe_mkobject): Initialise the pe_opthdr field.
	(pe_bfd_object_p): Allocate and initialize enough space to hold a
	PEAOUTHDR, even if the opt_hdr field specified less.
2014-11-10 14:27:38 +00:00
..
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2012-11-08 03:03:26 +00:00
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-11-07 20:40:41 +10:30
2014-03-05 22:16:15 +10:30
2014-11-07 13:19:15 +10:30
2014-10-31 13:50:10 -07:00
2014-05-02 20:09:40 +09:30
2014-10-31 13:50:10 -07:00
2014-10-15 22:55:25 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2012-12-10 12:48:03 +00:00
2014-03-05 22:16:15 +10:30
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2013-02-04 05:10:44 +00:00
2012-12-10 12:48:03 +00:00
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-07-01 20:43:14 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-09-12 14:25:15 +01:00
2014-07-04 13:40:28 +09:30
2014-10-15 10:21:25 +02:00
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-10-31 13:50:10 -07:00
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-10-15 22:55:25 +10:30
2014-10-15 22:55:25 +10:30
2014-10-15 22:55:25 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-06-13 19:10:57 +09:30
2014-06-13 19:10:57 +09:30
2014-06-13 19:10:57 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-09-15 12:15:55 +01:00
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-06-13 19:10:57 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-08-01 19:17:47 +09:00
2014-03-05 22:16:15 +10:30
2014-06-13 19:10:57 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-06-13 19:10:57 +09:30
2014-03-05 22:16:15 +10:30
2014-09-15 12:15:55 +01:00
2014-06-13 19:10:57 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-10-15 22:55:25 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-11-07 13:19:15 +10:30
2014-03-05 22:16:15 +10:30
2014-09-15 12:15:55 +01:00
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-06-13 19:11:39 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-10-15 22:55:25 +10:30
2014-10-15 22:55:25 +10:30
2014-10-15 22:55:25 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-10-15 22:55:25 +10:30
2014-10-15 22:55:25 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-10-15 22:55:25 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-09-16 13:08:00 +08:00
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-10-15 22:55:25 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-06-13 19:10:57 +09:30
2014-03-05 22:16:15 +10:30
2014-10-15 22:55:25 +10:30
2014-11-07 21:24:49 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-06-13 19:11:29 +09:30
2014-11-10 09:30:31 +10:30
2014-10-15 10:21:25 +02:00
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

BFD is an object file library.  It permits applications to use the
same routines to process object files regardless of their format.

BFD is used by the GNU debugger, assembler, linker, and the binary
utilities.

The documentation on using BFD is scanty and may be occasionally
incorrect.  Pointers to documentation problems, or an entirely
rewritten manual, would be appreciated.

There is some BFD internals documentation in doc/bfdint.texi which may
help programmers who want to modify BFD.

BFD is normally built as part of another package.  See the build
instructions for that package, probably in a README file in the
appropriate directory.

BFD supports the following configure options:

  --target=TARGET
	The default target for which to build the library.  TARGET is
	a configuration target triplet, such as sparc-sun-solaris.
  --enable-targets=TARGET,TARGET,TARGET...
	Additional targets the library should support.  To include
	support for all known targets, use --enable-targets=all.
  --enable-64-bit-bfd
	Include support for 64 bit targets.  This is automatically
	turned on if you explicitly request a 64 bit target, but not
	for --enable-targets=all.  This requires a compiler with a 64
	bit integer type, such as gcc.
  --enable-shared
	Build BFD as a shared library.
  --with-mmap
	Use mmap when accessing files.  This is faster on some hosts,
	but slower on others.  It may not work on all hosts.

Report bugs with BFD to bug-binutils@gnu.org.

Patches are encouraged.  When sending patches, always send the output
of diff -u or diff -c from the original file to the new file.  Do not
send default diff output.  Do not make the diff from the new file to
the original file.  Remember that any patch must not break other
systems.  Remember that BFD must support cross compilation from any
host to any target, so patches which use ``#ifdef HOST'' are not
acceptable.  Please also read the ``Reporting Bugs'' section of the
gcc manual.

Bug reports without patches will be remembered, but they may never get
fixed until somebody volunteers to fix them.

Copyright (C) 2012-2014 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.