Commit Graph

874 Commits

Author SHA1 Message Date
H.J. Lu f2da459f65 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (process_section_headers): Use %3lu on sh_info.
2004-04-30 14:56:03 +00:00
Nick Clifton f893589578 Fix bug in ranlib.sh script - quote the $1 argument in case it contains spaces 2004-04-30 07:37:15 +00:00
Alan Modra a95b5cf9a6 * objcopy.c (copy_usage, strip_usage): Fix spelling. 2004-04-27 06:31:16 +00:00
H.J. Lu f5842774f4 binutils/
2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>

	* readelf.c (do_section_groups): New.
	(options): Add --section-groups/-g.
	(usage): Mention --section-groups/-g.
	(parse_args): Support --section-groups/-g.
	(get_group_flags): New.
	(process_section_groups): New.
	(process_object): Call process_section_groups.

gas/

2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>

	* config/obj-elf.c (obj_elf_change_section): Check if the old
	group name is NULL before comparison.

gas/testsuite/

2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>

	* gas/elf/elf.exp: Add group0a, group0b and group1 for section
	group.

	* gas/elf/group0.s: New file.
	* gas/elf/group0a.d: Likewise.
	* gas/elf/group0b.d: Likewise.
	* gas/elf/group1.e: Likewise.
	* gas/elf/group1.s: Likewise.
2004-04-27 03:59:09 +00:00
Alan Modra 46212538d6 * objdump.c (disassemble_section): Don't disassemble sections
without SEC_HAS_CONTENTS.
2004-04-24 12:39:47 +00:00
Jakub Jelinek 4c45e5c9ce bfd/
* bfd.c (bfd_get_synthetic_symtab): Define.
	* targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
	NAME##_get_synthetic_symtab.
	(struct bfd_target): Add _bfd_get_synthetic_symtab.
	* libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
	* elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
	relplt_name fields.
	(_bfd_elf_get_synthetic_symtab): New prototype.
	* elfcode.h (elf_get_synthetic_symtab): Define.
	* elf.c (_bfd_elf_get_synthetic_symtab): New function.
	* elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
	(elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
	(elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
	* bfd-in2.h: Rebuilt.
	* libbfd.h: Rebuilt.
	* elf32-i386.c (elf_i386_plt_sym_val): New function.
	(elf_backend_plt_sym_val): Define.
	* elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
	(elf_backend_plt_sym_val): Define.
	* elf32-s390.c (elf_s390_plt_sym_val): New function.
	(elf_backend_plt_sym_val): Define.
	* elf64-s390.c (elf_s390_plt_sym_val): New function.
	(elf_backend_plt_sym_val): Define.
	* elf32-sparc (elf32_sparc_plt_sym_val): New function.
	(elf_backend_plt_sym_val): Define.
	* elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
	(elf_backend_plt_sym_val): Define.
	* elf32-ppc.c (ppc_elf_plt_sym_val): New function.
	(elf_backend_plt_sym_val): Define.
	* aout-target.h (MY_get_synthetic_symtab): Define.
	* aout-tic30.c (MY_get_synthetic_symtab): Define.
	* coff-rs6000.c (rs6000coff_vec): Add
	_bfd_nodynamic_get_synthetic_symtab.
	(pmac_xcoff_vec): Likewise.
	* coff64-rs6000.c (rs6000coff64_vec): Add
	_bfd_nodynamic_get_synthetic_symtab.
	(aix5coff64_vec): Likewise.
	* sunos.c (MY_get_synthetic_symtab): Define.
	* vms.c (vms_get_synthetic_symtab): Define.
binutils/
	* objdump.c (synthsyms, synthcount): New variables.
	(disassemble_data): Use dynsyms for stripped binaries or libraries.
	Add synthetized symbols.
	(dump_bfd): For disassemble, initialize dynsyms always and
	also synthsyms.  Free synthsyms and clear {sym,dynsym,synth}count
	before returning.
2004-04-22 14:45:32 +00:00
Richard Sandiford e9e2c3f6cf * binutils-all/readelf.ss-mips: Allow named section symbols. 2004-04-14 07:38:12 +00:00
Alan Modra e9f877805a * strings.c (print_strings): Cast file_off to unsigned long in
printf arg list.
2004-04-14 05:49:59 +00:00
Alan Modra 1ba93119e8 PR 86
* arsup.c (ar_save): Use smart_rename.
2004-04-07 05:11:24 +00:00
Nick Clifton 935a41f543 (display_debug_pubnames): Align offset and data columns.
(read_and_display_attr_value): Add missing break;
(debug_displays): Enable the display of the .debug_pubtypes section.
2004-04-01 10:07:44 +00:00
Stan Shebs 92e25cf8fd * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
support files, no longer used.
2004-03-30 19:20:58 +00:00
Jakub Jelinek adacfc8184 * binutils-all/objcopy.exp: Accept main as a data symbol as well. 2004-03-30 09:54:15 +00:00
Paul Brook d507cf36a6 * bfd/elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
* binutils/readelf.c (decode_ARM_machine_flags): Add EABI v3.
	* gas/config/tc-arm.c (meabi_flags): New variable.
	(arm_parse_eabi): New function.
	(md_begin): Set flags for EABI v3.
	(arm_eabis): Add.
	(arm_long_opts): Add meabi.
	* include/elf/arm.h (EF_ERM_BE8, EF_ARM_LE8, EF_ARM_EABI_VER3): Add.
	* doc/as.texinf <ARM>: Document -meabi.
	* doc/c-arm.texi: Ditto.
2004-03-23 23:05:52 +00:00
Richard Henderson 8c9a987975 * readelf.c (display_debug_frames): Don't crash for mismatched
DW_CFA_restore_state.
2004-03-22 03:55:50 +00:00
Alan Modra 6ece5c5268 * Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
	* aclocal.m4: Regenerate.
	* config.in: Regenerate.
	* configure: Regenerate.
	* po/binutils.pot: Regenerate.
2004-03-19 07:03:40 +00:00
Nathan Sidwell 6f10430691 * objdump.c (struct SFILE): Replace current pointer with pos
offset, rename size to alloc.
	(objdump_sprintf): Avoid unnecessary copies in the common case
	(disassemble_bytes): Keep sfile live throughout the
	function. Adjust usage appropriately.
2004-03-15 12:31:41 +00:00
Ben Elliston 523f6a2717 * MAINTAINERS: Update my mail address. 2004-03-10 02:58:24 +00:00
Nick Clifton 7aa52b1f65 Honour the PRIVATE keyword 2004-03-08 11:50:36 +00:00
Andreas Schwab af865222e0 * ar.c (main): Support POSIX-compatible argument parsing.
testsuite:
	* binutils-all/ar.exp (argument_parsing): New test.
2004-02-27 11:04:36 +00:00
Nick Clifton c7e7ca549d (process_mips_specific): Print conflictsno as an unsigned long. 2004-02-23 08:45:05 +00:00
Christopher Faylor eff21b8ec2 * dlltool.c (gen_exp_file): Always output names for forwarded symbols. 2004-02-21 21:28:22 +00:00
Nathan Sidwell 876f40905a * ldgram.y (exp): Add two operand ALIGN.
* ldexp.c (fold_binary): Add ALIGN_K case.
	* ld.texinfo (ALIGN): Document two operand version.
	* ld-scripts/align.{s,t,exp}: New.
2004-02-20 15:31:10 +00:00
Nathan Sidwell 627fe3fb79 * binutils-all/objcopy.exp: Reorder arguments for POSIXLY_CORRECT
systems.p
2004-02-20 15:21:54 +00:00
Jakub Jelinek 2f01ffbf77 gas/
* stabs.c (generate_asm_file): Avoid warning about use of
	uninitialized variable.
binutils/
	* objcopy.c (copy_section): Avoid warnings.
2004-02-19 17:15:28 +00:00
Andrew Cagney c92c35e706 Use bfd_cache_close, instead of accessing bfd->iostream directly. 2004-02-15 02:24:53 +00:00
Roland McGrath 9d2410855d . 2004-01-29 00:27:46 +00:00
Roland McGrath 0de14b54fa 2004-01-21 Roland McGrath <roland@redhat.com>
* readelf.c (get_note_type): Match NT_AUXV.
2004-01-29 00:27:30 +00:00
Nick Clifton d99e9f4d31 Update the copyright year 2004-01-20 13:08:47 +00:00
Maciej W. Rozycki f8b7303064 * gettext.m4: Quote names of macros to be defined by AC_DEFUN
throughout.

* acinclude.m4: Quote names of macros to be defined by AC_DEFUN
throughout.
* aclocal.m4: Regenerate.
* configure: Regenerate.
2004-01-14 13:41:37 +00:00
Jakub Jelinek f0312d395b * objcopy.c: Include elf-bfd.h.
(is_strip_section): Don't strip debugging sections if
	STRIP_NONDEBUG.
	(setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
	~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.

	* objcopy.c (copy_section): Free relpp if relcount == 0.
2004-01-13 15:41:00 +00:00
Ian Lance Taylor 12d08d706b Update copyright year. 2004-01-12 21:08:00 +00:00
Ian Lance Taylor 041821e62e * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
(stab_demangle_argtypes): Likewise.
	(stab_demangle_v3_argtypes): New static function.
	(stab_demangle_v3_arg): New static function.
2004-01-12 21:04:04 +00:00
Nick Clifton 5b8c74e64f Fix typo in comment in previous delta 2004-01-12 13:34:30 +00:00
Nick Clifton 950d48e718 Do not produce any output if the output file will be empty 2004-01-12 13:10:02 +00:00
Nick Clifton d9296b1825 Fix initialisation of debug_line_pointer_sizes array so that it is done as needed 2004-01-07 18:50:51 +00:00
Alan Modra 5e675b72e4 * objcopy.c (filter_bytes): Delete. Move code to..
(copy_section): ..here.  Simplify size adjustment.  Divide
	section lma by interleave.
2004-01-02 22:54:47 +00:00
Nick Clifton f0660b7388 Add Russian translation 2004-01-02 17:08:05 +00:00
Alan Modra c9e214e571 Split ChangeLog files. 2004-01-02 11:16:21 +00:00
Daniel Jacobowitz eb18fd2294 * MAINTAINERS: Rename CONFIGURE to BUILD SYSTEM and add myself. 2003-12-31 14:24:55 +00:00
Nick Clifton 0e0c409874 Update pointer_size patch 2003-12-29 14:22:07 +00:00
Maciej W. Rozycki 4087920c2b * objcopy.c (bfd_flags_to_set, bfd_flags_to_clear): New variables
to handle flags for tweaking.
(copy_options): New options: impure, pure, readonly-text,
writable-text.
(copy_usage, copy_object, command_line_switch): Handle the new
options.
* doc/binutils.texi: Document the new options.
2003-12-23 13:01:11 +00:00
Jakub Jelinek 68b3b8dc9e * objdump.c (disassemble_bytes): Subtract rel_offset from printed
reloc address.
	(disassemble_section): Set rel_offset to section->vma instead of
	pinfo->buffer_vma.
2003-12-22 10:49:59 +00:00
Nick Clifton 6edf0760c5 Add support for m32r-linux target, including a RELA ABI and PIC. 2003-12-19 11:44:01 +00:00
Nick Clifton 6ea3dd37ae Add --only-keep-debug to the --help output. 2003-12-11 13:22:51 +00:00
Kazu Hirata b76033d904 Fia x comment typo. 2003-12-06 10:02:06 +00:00
Kazu Hirata aaad4cf36a * ChangeLog-9197: Fix comment typos.
* coffgrok.c: Likewise.
	* filemode.c: Likewise.
	* objcopy.c: Likewise.
	* objdump.c: Likewise.
	* prdbg.c: Likewise.
	* stabs.c: Likewise.
	* unwind-ia64.c: Likewise.
2003-12-06 00:06:12 +00:00
Nick Clifton f57a841aea Do not copy the object if the output file's format cannot be set to that of
the input file.	 If the input file's format is unknown, fail.
2003-12-04 18:24:07 +00:00
Nick Clifton a46a5b5851 Add "msp" to list of expected architectures. 2003-12-03 10:48:53 +00:00
Ian Lance Taylor 9663f234c1 * cxxfilt.c (usage): Mention new -p/--no-params options. 2003-11-29 04:03:22 +00:00
Alan Modra 75aa66180a * Makefile.am (install-exec-local): Remove common term from string
comparison.
	* Makefile.in: Regenerate.
	* doc/Makefile.am: Don't use $<.
	* doc/Makefile.in: Regenerate.
2003-11-28 04:58:41 +00:00