Commit Graph

1293 Commits

Author SHA1 Message Date
Jeff Law
69e617ca27 h
* readelf.c (dump_relocations): Use elf_hppa_reloc_type instead of
        elf32_hppa_reloc_type.
1999-06-21 15:55:49 +00:00
Jeff Law
6202000d60 m
* readelf.c (dump_relocations): Use elf_hppa_reloc_type instead of
        elf32_hppa_reloc_type.
1999-06-21 15:55:47 +00:00
Nick Clifton
74479bd3b9 Link object files with the .exp file, not the .lib file 1999-06-21 03:25:35 +00:00
DJ Delorie
aab3279588 * deflex.l: Accept single-character symbol names. 1999-06-18 19:44:21 +00:00
Nick Clifton
df75f1af9c Detect symbols typed as thumb functions. 1999-06-16 10:03:59 +00:00
Nick Clifton
dd92f63977 Add -M command line switch to objdump - text of switch is passed on to disassembler
Add support for register name set selection ot ARM disassembler.
1999-06-16 02:24:36 +00:00
Andreas Schwab
c89746f691 Fix typos. 1999-06-14 01:30:19 +00:00
Ian Lance Taylor
e07bf1ac47 * objdump.c (disassemble_bytes): If the disassembler returns an
error, print out anything it may have printed to the buffer.  From
	H.J. Lu <hjl@gnu.org>.
1999-06-13 19:02:25 +00:00
Ian Lance Taylor
d7ec8102d9 * defparse.y (explist): Remove separate expline to eliminate
shift/reduce conflict.
	From Kai-Uwe Rommel <rommel@ars.de>:
	* defparse.y: Add tokens NONSHARED, SINGLE, MULTIPLE,
	INITINSTANCE, INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
	(command): Add option_list after LIBRARY.
	(attr): Accept and ignore NONSHARED, SINGLE, and MULTIPLE.
	(option_list, option): New nonterminals.
	* deflex.l: Recognize NONSHARED, SINGLE, MULTIPLE, INITINSTANCE,
	INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
1999-06-13 10:16:43 +00:00
Ian Lance Taylor
d84feeaca5 * ar.c (O_BINARY): Define as 0 if not defined.
(ranlib_touch): Open file with O_BINARY.
1999-06-12 16:07:57 +00:00
Ian Lance Taylor
18226413df * rename.c (O_BINARY): Define as 0 if not defined.
(simple_copy): Open files with O_BINARY.
1999-06-12 16:04:07 +00:00
Ian Lance Taylor
f91ea84976 Based on patch from H. Peter Anvin <hpa@transmeta.com>:
* objcopy.c (struct section_list): Add copy field.
	(sections_copied): New static variable.
	(copy_options): Add "only-section".
	(copy_usage): Mention -j and --only-section.
	(find_section_list): Initialize copy field.
	(is_strip_section): Check for copying sections.
	(copy_object): Check sections_copied when calling filter_symbols.
	(setup_section): Check for copying sections.
	(copy_section): Likewise.
	(copy_main): Handle -j/--only-section.
	* binutils.texi, objcopy.1: Document -j/--only-section.
1999-06-12 15:42:04 +00:00
Ian Lance Taylor
f353eb8a51 * configure.in: If frexp is not available, check in -lm.
* configure: Rebuild.
1999-06-12 15:20:21 +00:00
Ian Lance Taylor
789be9f7ca * readelf.c (get_elf_class): Use correct printf format for type.
(get_data_encoding): Likewise.
	(get_osabi_name): Likewise.
	(process_file_header): Don't pass an extra argument to printf.
	(process_dynamic_segment): Cast dynamic_size to long before
	printing.
	(decode_location_expression): Cast byte_get to long before
	printing.
1999-06-12 13:30:24 +00:00
Nick Clifton
4abec3504c Updated to match latest output. 1999-06-10 01:20:33 +00:00
Andreas Schwab
3026443322 * binutils-all/objdump.exp: Tighten regexp to match `objdump -i'
output to avoid massive exponential behaviour.
1999-06-09 03:01:26 +00:00
Andreas Schwab
148d3c43be * readelf.c (dump_section): Cast bfd_vma values to [unsigned] long
for printing, in case it is wider than long.
	(display_block): Likewise.
	(read_and_display_attr): Likewise.
	(decode_location_expression): Likewise.  Don't depend on
	evaluation order.
1999-06-09 02:44:17 +00:00
Andreas Schwab
32a5c94a56 * windres.c (usage): Fix typo. 1999-06-07 03:16:55 +00:00
Nick Clifton
1993627733 Use 64bit wide values in internal fields.
Check symbol index against number of symbols when displaying relocations
1999-06-04 11:33:32 +00:00
Nick Clifton
9ea033b2df Add support for 64 bit ELF files. 1999-06-04 08:13:04 +00:00
Nick Clifton
762100ed56 Use macros to hold names of temporary files. 1999-06-03 13:22:45 +00:00
Richard Henderson
e0a2c38a7b Update. 1999-06-03 03:26:53 +00:00
Richard Henderson
d8bcc1ac10 * dlltool.c (gen_exp_file): Revert 19990411 change. 1999-06-02 12:37:48 +00:00
Andreas Schwab
aa903cfb1b * readelf.c (process_relocs): Determine type of reloc from
DT_PLTREL and from section type.
1999-05-31 00:58:59 +00:00
Nick Clifton
ab5e779453 Display unknown values detected in ELF program header. 1999-05-29 10:51:14 +00:00
Nick Clifton
ccf04c82c7 fix typo. 1999-05-29 09:09:39 +00:00
Nick Clifton
04a866f231 remove spurious code. 1999-05-28 17:24:21 +00:00
Nick Clifton
9c19a80986 Better coping with different reloc types. 1999-05-28 10:14:11 +00:00
Ian Lance Taylor
0d59e34570 * binutils-all/readelf.h: Update for changes of 1999-04-08. 1999-05-27 22:05:26 +00:00
Ian Lance Taylor
63fcb9e946 * readelf.c: Include "elf/i960.h".
(dump_relocations): Handle EM_960.
1999-05-27 22:04:40 +00:00
Ian Lance Taylor
c2c40d939b break long line 1999-05-27 20:48:12 +00:00
Andreas Schwab
8066d1a283 * objcopy.c (copy_archive): Preserve dates of archive members if
requested.
1999-05-27 03:16:15 +00:00
Andreas Schwab
1b228002a1 * readelf.c (dump_relocations): Always print the addend on RELA
systems even if there is no symbol.
	(process_program_headers): Reset dynamic_size before looping
	through the program headers.
	(process_version_sections): Cast sh_offset to unsigned long for
	printing in case bfd_vma is wider.
	(process_symbol_table): Use get_symbol_index_type when printing
	st_shndx.
1999-05-27 03:02:23 +00:00
DJ Delorie
751d21b5b9 * windres.c: add verbose option
(main): process verbose option
* resrc.c (look_for_default): new.  Look for the default
preprocessor in a given location.
(read_rc_file): for foo/bar-windres, look for foo/bar-gcc,
foo/gcc (in case of foo/windres), and then gcc (the old default).
1999-05-25 12:10:27 +00:00
Nick Clifton
49e315b1a1 Add support for generating an mcore-elf dll. 1999-05-16 14:12:20 +00:00
Nick Clifton
661016bb24 Add support for mcore to dlltool. 1999-05-15 15:25:22 +00:00
DJ Delorie
1a62478879 * rclex.l: add code to suppress certain output from cpp, replace
all returns with MAYBE_RETURN
	(MAYBE_RETURN): new, implement the suppression by returning
	IGNORED_TOKEN as needed.
	(cpp_line): remember which file we're in, mark data from included
	*.h files for suppression.
	* rcparse.y (input): allow IGNORED_TOKEN outside of known constructs
1999-05-12 22:03:10 +00:00
DJ Delorie
09cda596de 1999-05-10 DJ Delorie <dj@cygnus.com>
* windres.c (quot): Quote shell metacharacters in a string
	(main): quote parameters to cpp that might have metacharacters in
	them.  Allow -D as an alias for --define to allow for sharing make
	macros with gcc.
	* objdump.c (dump_reloc_set): don't core if howto->name is NULL
	* Makefile.am: Give rescoff.c a cpu-specific -D so it can set
	the correct BFD.
	* Makefile.in: ditto
	* rescoff.c (write_coff_file): Set the correct BFD
1999-05-11 21:06:16 +00:00
Ian Lance Taylor
82716b788e * rename.c (smart_rename): Fix test of whether file exists. 1999-05-06 11:03:33 +00:00
Nick Clifton
a8a9050d4a Set display_endian based on target endianism. 1999-05-06 07:41:56 +00:00
Catherine Moore
b890a73569 * dlltool.c (interwork): Remove.
(arm_interwork_jtab): Use bx insn.
        (thumb_jtab): Likewise.
        (MARM_INTERWORK): New machine type.
        (rvaafter): Handle it.
        (rvabefore) Likewise.
        (asm_prefix): Likewise.
        (gen_exp_type): Check machine type instead of
        interwork flag.
        (make_one_lib_file): Likewise.
        (make_head): Likewise.
        (make_tail): Likewise.
        (usage): Update machine types.
        (main): Remove -interwork support.
1999-05-05 19:02:14 +00:00
Catherine Moore
33c63f9db4 * readelf.c (get_machine_flags): Check for EF_CPU32.
(get_data_encoding): Fix typo.
1999-05-05 11:00:55 +00:00
Richard Henderson
252b5132c7 19990502 sourceware import 1999-05-03 07:29:11 +00:00