No description
Find a file
Jakub Jelinek c256ffe730 * readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.
(get_data): Add nmemb argument.  Return NULL if nmemb * size
	overflows.  If var == NULL, allocate one extra byte and
	clear it.
	(slurp_rela_relocs, slurp_rel_relocs, get_32bit_program_headers,
	get_64bit_program_headers, get_program_headers,
	get_32bit_section_headers, get_64bit_section_headers,
	get_32bit_elf_symbols, get_64bit_elf_symbols, process_section_headers,
	process_section_groups, process_relocs, slurp_ia64_unwind_table,
	ia64_process_unwind, slurp_hppa_unwind_table, hppa_process_unwind,
	get_32bit_dynamic_section, get_64bit_dynamic_section,
	process_dynamic_section, process_version_sections, get_dynamic_data,
	process_symbol_table, dump_section, load_debug_str, load_debug_loc,
	load_debug_range, read_and_display_attr_value, process_debug_info,
	get_debug_info, frame_need_space, display_debug_frames,
	display_debug_section, process_mips_specific, process_gnu_liblist,
	process_corefile_note_segment): Adjust get_data callers.  Use
	cmalloc, xcmalloc and xcrealloc instead of {m,xm,xre}alloc where
	passed size is a product of 2 numbers.

	* readelf.c (print_mode): Fix comment typo.
	(slurp_rela_relocs, slurp_rel_relocs): Fix memory leaks.
	(dump_relocations): Fix a thinko in check for invalid st_name.
	(process_program_headers): Don't crash if string_table is NULL.
	(process_section_headers): Don't crash if e_shstrndx is invalid.
	Ensure string_table_length is 0 if string_table == NULL.
	Don't return just because string_table is NULL.
	(process_section_groups): Don't crash if symtab's sh_link or
	symbol's st_name is invalid.  Fix a memory leak.  Fix check for
	invalid section number entry.
	(process_relocs): Don't crash if relocation or symbol section's
	sh_link is invalid.
	(slurp_ia64_unwind_table, slurp_hppa_unwind_table): Don't crash if
	relocation section's sh_info is invalid.
	(ia64_process_unwind, hppa_process_unwind): Don't crash if symbol
	table's sh_link is invalid.
	(process_version_sections): Don't crash on version or symbol
	section's sh_link is invalid.  Don't crash if symbol's st_shndx
	is invalid.
	(process_symbol_table): Don't crash if string table is corrupt
	or symbol's st_name, st_shndx, vna_name or vda_name is invalid.
	(debug_apply_rela_addends): Don't crash if relocation section's
	sh_info or sh_link is invalid.
	(display_debug_loc): Warn for unterminated .debug_loc section
	or start offsets not within .debug_loc section boundaries.
	(process_gnu_liblist): Don't crash if liblist section's sh_link
	or entry's l_name is invalid.
2005-06-14 11:06:28 +00:00
bfd * elf.c (bfd_section_from_shdr): Fail if name is NULL. 2005-06-14 11:04:22 +00:00
binutils * readelf.c (cmalloc, xcmalloc, xcrealloc): New functions. 2005-06-14 11:06:28 +00:00
config * depstand.m4, lead-dot.m4: New files. 2005-06-13 18:06:59 +00:00
contrib
cpu Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
etc * bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.in 2005-05-19 23:49:52 +00:00
gas gas: 2005-06-13 15:34:39 +00:00
gdb *** empty log message *** 2005-06-14 00:01:03 +00:00
gprof
include * hppa.h (pa_opcodes): Use cM and cX instead of cm and cx, 2005-06-11 15:33:52 +00:00
intl Update the address and telephone number of the FSF organization 2005-05-13 08:04:31 +00:00
ld * ld.texinfo (Command Line Options): Add @item for --hash-size. 2005-06-12 18:38:39 +00:00
libiberty merge from gcc 2005-05-28 19:49:24 +00:00
mmalloc
opcodes opcodes: 2005-06-08 17:27:41 +00:00
readline
sim * cris/Makefile.in (stamp-v32fmloop): Depend on stamp-v10fmloop. 2005-05-28 08:47:30 +00:00
texinfo
.cvsignore
ChangeLog * depcomp: Update from automake CVS. Add 'ia64hp' stanza. 2005-06-13 18:01:01 +00:00
compile
config-ml.in
config.guess
config.sub * config.sub: Add cases for the Renesas m32c. (This patch has been 2005-06-02 21:23:04 +00:00
configure * configure.in <cris-*, crisv32-*>: Enable target-libffi again for 2005-06-07 09:33:44 +00:00
configure.in * configure.in <cris-*, crisv32-*>: Enable target-libffi again for 2005-06-07 09:33:44 +00:00
COPYING
COPYING.LIB
COPYING.LIBGLOSS
COPYING.NEWLIB
depcomp * depcomp: Update from automake CVS. Add 'ia64hp' stanza. 2005-06-13 18:01:01 +00:00
djunpack.bat
gettext.m4
install-sh
libtool.m4
ltcf-c.sh
ltcf-cxx.sh
ltcf-gcj.sh
ltconfig
ltmain.sh
MAINTAINERS
Makefile.def 2005-05-20 Paolo Bonzini <bonzini@gnu.org> 2005-05-20 07:16:11 +00:00
Makefile.in 2005-05-20 Paolo Bonzini <bonzini@gnu.org> 2005-05-20 07:16:11 +00:00
Makefile.tpl 2005-05-25 Paolo Bonzini <bonzini@gnu.org> 2005-05-25 14:23:03 +00:00
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
README
README-maintainer-mode
setup.com
src-release
symlink-tree
ylwrap ./ 2005-05-15 18:19:45 +00:00

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.