Commit Graph

225 Commits

Author SHA1 Message Date
Denis Chertykov dff1420082 * readelf.c (guess_is_rela): AVR uses RELA relocations.
(get_machine_name): machine name for EM_AVR added.
2000-05-01 06:53:41 +00:00
Jim Wilson 800eeca487 IA-64 ELF support. 2000-04-21 20:22:24 +00:00
Timothy Wall ea58412531 Fix bug disassmbling binary files for non-octet byte targets. 2000-04-18 17:16:59 +00:00
Alan Modra 12ff5d5690 Portability fixes. 2000-04-14 04:14:25 +00:00
Nick Clifton 50da7a9c68 Replace 'strftime' with 'sprintf'. 2000-04-10 17:13:07 +00:00
Andrew Cagney a2d91340f3 Remove ``-W -Wall'' from top-level Makefile/configure.
Add ``-W -Wall'' to sub-directories bfd, binutils, gas gprof, ld and
opcodes by the addition of WARN_CFLAGS to Makefile.am and configury to
set it.  Add configure option --enable-build-warnings.
Re-generate all and sundry using auto*-000227.
2000-04-09 12:17:43 +00:00
Alan Modra 37cc8ec1be A mostly cosmetic tidy up of warnings and error message reporting. 2000-04-07 04:34:50 +00:00
Timothy Wall 34cbe64ecf SEC_BLOCK, SEC_CLINK, and C_STATLAB added (TI COFF support). 2000-04-07 00:58:07 +00:00
Jason Merrill eb6bd4d38e * readelf.c (decode_location_expression): Loop through multiple
operations.
        (read_and_display_attr): Pass in length.
2000-04-07 00:16:45 +00:00
Jason Merrill 1fa3730664 * readelf.c (read_and_display_attr): Add CU offset to references.
(display_debug_info): Pass it in.
2000-04-07 00:15:00 +00:00
Nick Clifton 05a342f46d Remove spurious blank line 2000-04-06 23:43:31 +00:00
Nick Clifton 5f8a9d91e7 Detect EM_AVR machine number 2000-04-06 23:21:50 +00:00
Nick Clifton f3485b74bb Add code to decode the e_flags field of an ARM ELF binary. 2000-04-06 23:21:09 +00:00
Alan Modra 57938635f5 Add --redefine-sym to objcopy. 2000-04-05 03:43:56 +00:00
H.J. Lu dd27201edf 2000-04-04 H.J. Lu <hjl@gnu.org>
* readelf.c (process_symbol_table): Correctly read in symbol
	versioning information.
2000-04-04 23:05:32 +00:00
Alan Modra 8ad3436c79 Move translated part of bug report string back into .c files so
xgettext can find it.  Regnerate .pot files.
2000-04-04 14:32:35 +00:00
Alan Modra 41b49281c1 Use "gcc -MM" for dependencies, and update them. 2000-04-04 10:53:56 +00:00
H.J. Lu a9273d78af 2000-04-03 H.J. Lu (hjl@gnu.org)
* size.c (usage): Use REPORT_BUGS_TO.
2000-04-03 17:17:36 +00:00
Alan Modra c20f4f8c21 Move bug report string to one place. 2000-04-03 14:10:05 +00:00
Alan Modra 00ed88bd56 Include sys/types.h before sys/stat.h for ultrix. 2000-03-30 23:37:22 +00:00
Nick Clifton 3b7aaf81e1 catch out of range string offset in corrupt stab entry 2000-03-28 01:11:27 +00:00
Alan Modra adde6300e0 ATMEL AVR microcontroller support. 2000-03-27 08:39:14 +00:00
Phil Blundell fd5ccd4792 2000-03-09 Tim Waugh <twaugh@redhat.com>
* strings.1: Correct '-bytes' to '--bytes'.
2000-03-25 19:52:38 +00:00
Nick Clifton bc0fbc97a8 fix to match latest readelf output 2000-03-14 01:27:03 +00:00
H.J. Lu 9c28aef393 2000-03-08 H.J. Lu <hjl@gnu.org>
* Makefile.am (install-exec-local): Depend on
	install-binPROGRAMS for parallel make.
	* Makefile.in: Regenerated.
2000-03-09 03:13:21 +00:00
Ian Lance Taylor e699b9ff01 From Brad Lucier <lucier@math.purdue.edu>:
* readelf.c (process_dynamic_segment): Add cast to make sure
	argument to %* is int.
2000-02-28 03:31:50 +00:00
Ian Lance Taylor a74801baf8 rebuild with current tools 2000-02-27 16:55:52 +00:00
Ian Lance Taylor 9a1cab10a4 rebuild 2000-02-26 03:28:41 +00:00
H.J. Lu 07735828dd 2000-02-25 H.J. Lu <hjl@gnu.org>
* configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
2000-02-26 00:59:51 +00:00
H.J. Lu 2f79b725dd 2000-02-25 H.J. Lu <hjl@gnu.org>
* configure.in (AC_SEARCH_LIBS): Pass lm, not -lm.
2000-02-26 00:47:52 +00:00
Nick Clifton 8a0e0f38af Add support for WinCE targeted toolchains. 2000-02-24 19:37:32 +00:00
Alan Modra 1ce6cb432f Teach get_osabi_name about Linux 2000-02-23 23:19:46 +00:00
Nick Clifton ca47b30c87 Remove use of ELF_ST_OTHER. 2000-02-22 19:56:41 +00:00
Ian Lance Taylor 1606220769 From Brad Lucier <lucier@math.purdue.edu>:
* readelf.c (process_version_sections): Add casts to make sure
	argument to %* is an int.
	(process_mips_specific): Add casts to make printf arguments match
	format.
2000-02-22 07:18:10 +00:00
Alan Modra f6af82bd44 This lot mainly cleans up `comparison between signed and unsigned' gcc
warnings.  One usused var, and a macro parenthesis fix too.  Also check
input sections are elf when doing gc in elflink.h.
2000-02-21 12:01:27 +00:00
Frank Ch. Eigler 278d4456c4 * build fix
2000-02-18  Frank Ch. Eigler  <fche@redhat.com>

	* resrc.c: Remove unmatched #if for cygwin.
2000-02-19 03:59:10 +00:00
Fernando Nasser 0fff8110b5 2000-02-14 Fernando Nasser <fnasser@totem.to.cygnus.com>
* binutils.texi: Document the change of flavor name from atpcs-special
	to special-atpcs to prevent name conflict in gdb.
2000-02-14 19:05:55 +00:00
Timothy Wall f15632584b Fix bug in interlisting option, added --file-start-context option. 2000-02-08 18:38:13 +00:00
Timothy Wall 940b2b788c octets vs bytes changes for binutils 2000-02-03 18:12:55 +00:00
Andreas Schwab 5cae921ebd Fix date. 2000-01-28 12:38:22 +00:00
Nick Clifton fad6fcbb00 Apply patch from Thomas de Lellis to allow nm to distinguish between weak
function symbols and weak data symbols.
2000-01-28 01:06:37 +00:00
Nick Clifton 58efb6c0fd Add ATPCS support to ARM disassembler.
Document ARM disassembler options.
2000-01-27 22:17:12 +00:00
Nick Clifton 94470b237b Add support for documenting target specific disassembler options 2000-01-27 21:44:26 +00:00
Alan Modra 305c72062b Most of these changes are really only cosmetic. The readelf.c patch
fixes a thinko in get_dynamic_flags.  I found at least one message
string that included a `%' being passed to printf in the format
argument.
2000-01-26 23:11:48 +00:00
Nick Clifton ba8c44fcf6 fix dll table lookup code for Motorola 2000-01-20 23:42:51 +00:00
Nick Clifton 67a95c88f3 Detect ELFOSABI_ARM. 2000-01-17 18:09:34 +00:00
Alan Modra 3dceb55b37 Correct function return types for new and fussy gcc. 2000-01-14 23:10:21 +00:00
Nick Clifton a7c8f90ec1 Fix description of EM_S370. 2000-01-13 20:13:35 +00:00
Nick Clifton 2d0e6f43d3 Fix mistakes made about interpretation of ELF ABI spec 2000-01-11 17:53:33 +00:00
Nick Clifton 7bea2f730c Add NT_WIN32PSTATUS to list of recognised core notes 2000-01-10 18:52:23 +00:00
Nick Clifton 5a298d2d9c Apply Mumit Khan's patch to allow temporary file for process interconnection 2000-01-07 22:33:48 +00:00
Nick Clifton fda8e7c4e9 add year 2000 copyright notice 2000-01-05 00:04:43 +00:00
Nick Clifton 087f88b230 Apply Mumit Khan's patch to remove 32 postfix from cygwin and mingw 2000-01-05 00:03:36 +00:00
Nick Clifton 5f0f29c341 Apply Mumit Khan's patch to implement --compat-implib command line switch 2000-01-04 23:59:42 +00:00
Nick Clifton 8f915f68a6 document --disassembler-options=force-thumb 2000-01-03 20:49:47 +00:00
Nick Clifton d113390691 Add decoding of new constants defined in Oct 4, 1999 draft of ELF ABI spec. 1999-12-28 20:23:39 +00:00
Ian Lance Taylor 221f77a9db * strings.c (main): Correct handling of numeric argument. 1999-12-26 18:49:30 +00:00
Andrew Haley 893addd8f4 1999-12-23 Andrew Haley <aph@cygnus.com>
* dlltool.c (mtable): mcore how_jtab_roff is 4 bytes into the
	jtab; was 8.
1999-12-23 18:41:13 +00:00
Nick Clifton eaeaa15ca4 change default arm gas abi selection to 32 1999-12-17 18:40:42 +00:00
Nick Clifton 5ea695edcd Fix compile time warnings 1999-12-17 18:38:37 +00:00
Nick Clifton 2f5288870a Fix support for native 64bit ELF systems 1999-12-10 18:32:57 +00:00
Nick Clifton a2186dfed7 Pass -mpacs-26 by default to arm assembler.
Add arm-epoc target support.
Do no mangle null page entries.
1999-12-09 17:42:25 +00:00
Nick Clifton 843dd99245 fix typo in previous delta 1999-12-07 21:41:54 +00:00
Nick Clifton 308009476c minor formatting changes 1999-12-07 21:40:04 +00:00
Nick Clifton 5e220199b9 Fix compile time warnings & asupport more than 999 symbols 1999-12-07 21:26:51 +00:00
Nick Clifton f7a999632f Fix displaying 64bit ELF files. 1999-12-07 21:14:08 +00:00
Nick Clifton 6d118b099c Applied Fred Fish's patch to fix decoding of core notes. 1999-11-25 11:08:25 +00:00
Nick Clifton d5bcb29dda Overhaul --help output. 1999-11-22 09:42:42 +00:00
Nick Clifton 1dada9c5d3 Overhaul --help output 1999-11-21 11:37:21 +00:00
Nick Clifton 7e301c9cbd Chnage the default endianness for mcore to little 1999-11-03 18:16:52 +00:00
Nick Clifton f932f8e1da clip shorts to prevent assembler warnings 1999-11-03 10:56:31 +00:00
Nick Clifton c58c5ee7b5 expect thumb-pe and thumb-coff failures 1999-11-01 17:12:11 +00:00
Nick Clifton 11d47adc34 Expect arm-pe and arm-coff failure of the simple objcopy test 1999-11-01 16:48:05 +00:00
Ian Lance Taylor d24de309df 1999-10-27 Fred Fish <fnf@cygnus.com>
* objdump.c (display_bfd): Break into two functions.  The
	actual dumping code moves to dump_bfd.  If bfd is not
	unambiguously recognized as a bfd_object, attempt to dump
	it as a bfd_core.
	(dump_bfd): New function.
1999-10-28 03:30:13 +00:00
Nick Clifton 96925346de Remove spurious test of exp_name 1999-10-26 10:10:51 +00:00
Nick Clifton 49c245078a Add default assembler switchhes on a per machine basis.
Use machine target type when opening output bfd files.
1999-10-22 15:50:28 +00:00
Ian Lance Taylor b059661ec6 * ar.c (normalize): Fix full_pathname code. 1999-10-15 16:50:47 +00:00
Ian Lance Taylor f20a759a4d 1999-10-08 Ben Elliston <bje@cygnus.com>
* binutils.texi: Some rewording and clarifications.
1999-10-08 13:56:33 +00:00
Ulrich Drepper 103f02d372 1999-09-15 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (dynamic_segment_parisc_val): Print 0 for DLD_FLAGS if
	the value is zero.
	(process_symbol_table): Don't print histogram if hash table is empty.

1999-09-15  Ulrich Drepper  <drepper@cygnus.com>

	* readelf.c (get_parisc_dynamic_type): Handle DT_HP_GST_* values.

1999-09-02  Ulrich Drepper  <drepper@cygnus.com>

	* readelf.c (get_symbol_type): Add support for HPUX and PARISC
	specific symbol types.

	* readelf.c: Add HPUX and PARISC extensions to dynamic and program
	header table printing.

	* readelf.c (get_machine_flags): Add handling of PARISC.
1999-10-04 18:59:13 +00:00
DJ Delorie ce195b4280 * dlltool.c (scan_drectve_symbols): Handle type tags in exported
symbols.
(scan_filtered_symbols): Likewise.
1999-09-28 20:08:37 +00:00
Ian Lance Taylor 34ca6cf879 * resrc.c (write_rc_rcdata): Fix local variable shadowing
problem.  If RCDATA_BUFFER data can be read as strings, modify
	code to print the strings as comments.
	* resres.c: Add casts to avoid warnings.
	(write_res_data, read_res_data): Don't put the program name in the
	error message; fatal already puts it there.
1999-09-19 23:59:35 +00:00
Ian Lance Taylor f1f8ce075e comment fix 1999-09-19 22:39:49 +00:00
Michael Meissner 6d83c84bcf Fix problem with going to automake 2.14 1999-09-14 23:29:35 +00:00
Jeff Law c392c1bbc1 * binutils-all/hppa/objdump.exp: Do not run for PA64. 1999-09-14 06:30:50 +00:00
Ian Lance Taylor a20a10a650 * ar.c (main): Clear output_file if we don't change the archive.
(delete_members, replace_members): Likewise.
1999-09-12 19:00:11 +00:00
Ian Lance Taylor 8bea4d5c6c 1999-09-12 Donn Terry <donn@interix.com>
* objdump.c (dump_headers): If wide_output, print Flags header.
1999-09-12 18:49:47 +00:00
Ian Lance Taylor deecf979f6 1999-09-12 Donn Terry <donn@interix.com>
* objdump.c (dump_section_header): Print any comdat information.
1999-09-12 18:39:32 +00:00
Ian Lance Taylor 3994e2c66d 1999-09-12 Donn Terry <donn@interix.com>
* objcopy.c (parse_flags): Handle "noload", "debug", and "share".
	* binutils.texi, objcopy.1: Document new flags.
1999-09-12 18:33:05 +00:00
Ian Lance Taylor 3de3906459 1999-09-12 Donn Terry <donn@interix.com>
* ar.c (counted_name_mode): New static variable.
	(counted_name_counter): New static variable.
	(map_over_members): Handle counted mode.
	(usage): Mention N modifier.
	(main): Handle N modifier.
	(delete_members): Handle counted mode.
	* binutils.texi, ar.1: Document N modifier.
1999-09-12 18:14:07 +00:00
Ian Lance Taylor 946d15cab8 1999-09-12 Donn Terry <donn@interix.com>
* ar.c (print_contents): Change printing of member name for
	POSIX.2 conformance.
1999-09-12 17:47:19 +00:00
Ian Lance Taylor c8446de592 1999-09-12 Donn Terry <donn@interix.com>
* ar.c (output_filename): Make const.
	(open_inarch): If creating a new empty archive, set
	output_filename.
1999-09-12 17:43:21 +00:00
Ian Lance Taylor fe84ea5db2 * ar.c (full_pathname): New static variable.
(map_over_members): Call normalize on command line parameter.
	(usage): Mention P modifier.
	(normalize): If full_pathname is true, don't do anything.
	(main): Accept P modifier.
	* binutils.texi, ar.1: Document P modifier.
1999-09-12 17:34:19 +00:00
Andreas Schwab ad0481cd94 * binutils.texi: Add info dir entries for all programs described
here.  Fix arguments of @var to not contain punctuation.
1999-09-09 16:01:34 +00:00
Ian Lance Taylor 1865dcb816 1999-09-06 Donn Terry <donn@interix.com>
* nm.c (print_symbol_info_bsd): Check for 'w' as well as 'U'.
	(print_symbol_info_sysv): Likewise.
	(print_symbol_info_posix): Likewise.
1999-09-06 18:47:31 +00:00
Ian Lance Taylor d9ea9319a9 fix date 1999-09-04 17:40:28 +00:00
Ian Lance Taylor 7d46606982 1999-09-04 Steve Chamberlain <sac@pobox.com>
* readelf.c: Include "elf/pj.h".
	(dump_relocations): Handle EM_PJ.
	(get_machine_name): Likewise.
	(get_machine_flags): Likewise.
1999-09-04 17:40:18 +00:00
Ian Lance Taylor 6a0aef968b 1999-09-02 Steve Chamberlain <sac@pobox.com>
* binutils-all/objdump.exp: Add pj to cpus_expected.
1999-09-04 17:38:46 +00:00
Nick Clifton 21461bfd9b fix typo. 1999-09-01 16:18:50 +00:00
Nick Clifton 0ac3848055 ooops - omitted from previous delta 1999-08-31 16:57:37 +00:00
Nick Clifton 779fe53312 Apply patch from Scott Bambrough to display the contents of a NOTES segment
in a core file.
1999-08-31 16:54:56 +00:00