Commit Graph

45877 Commits

Author SHA1 Message Date
Nick Clifton 7a5df8d098 emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL, parameter to
invocation of lang_section_start.
emultempl/aix.em (_handle_option): Likewise.

Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,	eelf64alpha_nbsd.c): Add
  dependency upon emultempl/alphaelf.em.
Makefile.in: Regenerate.
2004-10-27 15:53:21 +00:00
Tomer Levi 902143eff6 2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
* gas/crx/cop_insn.s: Test new Co-Processor instruction 'cpi'.
* gas/crx/list_insn.s: Add hi/lo/u<N> registers tests, fix test bugs.
* gas/crx/cop_insn.d: Regenerate.
* gas/crx/list_insn.d: Likewise.
2004-10-27 10:34:24 +00:00
Tomer Levi 3da4500a06 * gas/crx/cop_insn.s: Test new Co-Processor instruction 'cpi'. 2004-10-27 10:32:51 +00:00
Tomer Levi 0be469faab * gas/crx/list_insn.s: Add hi/lo/u<N> registers tests, fix test bugs. 2004-10-27 10:32:30 +00:00
Tomer Levi c815a6163a 2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
* config/tc-crx.c: Remove global variable 'post_inc_mode'.
(get_flags): New function.
(get_number_of_bits): Edit comments, update numeric values to supported sizes.
(process_label_constant): Don't support the colon format (SYMBOL:[s|m|l]).
(set_cons_rparams): Support argument type 'arg_rbase'.
(get_operandtype): Bug fix in 'rbase' operand type parsing.
(handle_LoadStor): Bug fix, first handle post-increment mode.
(getreg_image): Remove redundant code, update according to latest CRX spec.
(print_constant): Bug fix relate to 3-word instructions.
(assemble_insn): Bug fix, when matching instructions, verify also instruction type (not only mnemonic).
Add various error checking.
(preprocess_reglist): Support HI/LO and user registers.
2004-10-27 10:31:39 +00:00
Tomer Levi 9bb1ebc211 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
(get_flags): New function.
(get_number_of_bits): Edit comments, update numeric values to supported sizes.
(process_label_constant): Don't support the colon format (SYMBOL:[s|m|l]).
(set_cons_rparams): Support argument type 'arg_rbase'.
(get_operandtype): Bug fix in 'rbase' operand type parsing.
(handle_LoadStor): Bug fix, first handle post-increment mode.
(getreg_image): Remove redundant code, update according to latest CRX spec.
(print_constant): Bug fix relate to 3-word instructions.
(assemble_insn): Bug fix, when matching instructions, verify also instruction type (not only mnemonic).
Add various error checking.
(preprocess_reglist): Support HI/LO and user registers.
2004-10-27 10:28:22 +00:00
Tomer Levi 812337be05 2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
* crx-dis.c (enum REG_ARG_TYPE): New, replacing COP_ARG_TYPE.
 	(getregliststring): Support HI/LO and user registers.
	* crx-opc.c (crx_instruction): Update data structure according to the rearrangement done in CRX opcode header file.
	(crx_regtab):  Likewise.
	(crx_optab):  Likewise.
	(crx_instruction): Reorder load/stor instructions, remove unsupported formats.
	support new Co-Processor instruction 'cpi'.
2004-10-27 10:27:00 +00:00
Tomer Levi ec20305230 * crx-opc.c (crx_instruction): Update data structure according to the rearrangement done in CRX opcode header file.
(crx_regtab):  Likewise.
(crx_optab):  Likewise.
(crx_instruction): Reorder load/stor instructions, remove unsupported formats.
support new Co-Processor instruction 'cpi'.
2004-10-27 10:24:39 +00:00
Tomer Levi a58a37627f * crx-dis.c (enum REG_ARG_TYPE): New, replacing COP_ARG_TYPE.
(getregliststring): Support HI/LO and user registers.
2004-10-27 10:24:01 +00:00
Tomer Levi 9268a8d21a 2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
* opcode/crx.h (enum reg): Rearrange registers, remove 'ccfg' and 'pc'.
	(enum reg_type): Remove CRX_PC_REGTYPE, CRX_MTPR_REGTYPE.
	(enum operand_type): Rearrange operands, edit comments.
	replace us<N> with ui<N> for unsigned immediate.
	replace d<N> with disps<N>/dispu<N>/dispe<N> for signed/unsigned/escaped displacements (respectively).
	replace rbase_ridx_scl2_dispu<N> with rindex_disps<N> for register index.
	(instruction type): Add NO_TYPE_INS.
	(instruction flags): Add USER_REG, CST4MAP, NO_SP, NO_RPTR.
	(operand_entry): New field - 'flags'.
	(operand flags): New.
2004-10-27 10:22:56 +00:00
Tomer Levi 5531e44c20 (enum reg): Rearrange registers, remove 'ccfg' and 'pc'.
(enum reg_type): Remove CRX_PC_REGTYPE, CRX_MTPR_REGTYPE.
(enum operand_type): Rearrange operands, edit comments.
replace us<N> with ui<N> for unsigned immediate.
replace d<N> with disps<N>/dispu<N>/dispe<N> for signed/unsigned/escaped displacements (respectively).
replace rbase_ridx_scl2_dispu<N> with rindex_disps<N> for register index.
(instruction type): Add NO_TYPE_INS.
(instruction flags): Add USER_REG, CST4MAP, NO_SP, NO_RPTR.
(operand_entry): New field - 'flags'.
(operand flags): New.
2004-10-27 10:17:39 +00:00
Nick Clifton 4030fa5ade Add an index operand to some of the iq2000 co-processor instructions 2004-10-27 09:30:09 +00:00
Mark Mitchell 6f372e19e7 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
__exidx_{start,end} when not relocating.
2004-10-27 06:57:43 +00:00
H.J. Lu 97ecf3226d 2004-10-26 H.J. Lu <hongjiu.lu@intel.com>
PR 475
	* elfxx-ia64.c (elfNN_ia64_relocate_section): Correct
	R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB
	and R_IA64_SECREL64LSB.
2004-10-27 00:46:05 +00:00
gdbadmin f9dd442b25 *** empty log message *** 2004-10-27 00:00:33 +00:00
Alan Modra 6cb7e1ce46 daily update 2004-10-27 00:00:06 +00:00
Paul Brook 0c6616e1ae Missed from previous commit.
ld/testsuite/
	* ld-elfvers/vers29.c: New file.
	* ld-elfvers/vers29.dsym: New file.
	* ld-elfvers/vers29.ver: New file.
2004-10-26 21:00:23 +00:00
Aaron W. LaFramboise caeba88f70 * configure.in (case ${target}): Do not build fixincludes
on platforms where it is not used.
	* configure: Regenerated.
----------------------------------------------------------------------
2004-10-26 20:39:00 +00:00
Mark Kettenis 9c46b6f006 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
to enum with register numbers.
(enum mips_insn_size): New enum.
2004-10-26 19:40:39 +00:00
Mark Mitchell ba916c8af2 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
* ldexp.h (segment_type): New type.
	(segments): New variable.
	* ldexp.c (segments): New variable.
	(exp_print_token): Handle SEGMENT_START.
	(fold_binary): Likewise.
	* ldgram.y (SEGMENT_START): Declare it as a token.
	(exp): Handle SEGMENT_START.
	* ldlang.h (lang_address_statement_type): Add segment field.
	(lang_section_start): Change prototype.
	* ldlang.c (map_input_to_output_sections): Do not process section
	assignments if a corresponding SEGMENT_START has already been
	seen.
	(lang_section_start): Add segment parameter.
	* ldlex.l (SEGMENT_START): Add it.
	* lexsup.c (seg_segment_start): New function.
	(parse_args): Use it for -Tbss, -Tdata, and -Ttext.
	* ld.texinfo (SEGMENT_START): Document it.
	* emulparams/armsymbian.sh (EMBEDDED): Set it.
	* scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
	base addresses.  Do not map relocations.
	* NEWS: Mention SEGMENT_START.
2004-10-26 18:41:52 +00:00
Nick Clifton 1ec5cd3721 readelf.c (get_note_type): Handle notes not in core files.
(process_note_sections): New function.
  (process_corefile_contents): Rename to ...
  (process_notes): ... this.
  (process_object): Call process_notes, not process_corefile_contents.
doc/binutils.texi: Update readelf -n documentation.
2004-10-26 16:05:42 +00:00
Andrew Cagney e7d6a6d283 2004-10-26 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
	* mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
	(mips_gdbarch_init): Update.
	(mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
2004-10-26 14:44:00 +00:00
Andrew Cagney c5115f39aa 2004-10-26 Andrew Cagney <cagney@gnu.org>
* config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
	* config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
	IN_SOLIB_RETURN_TRAMPOLINE.
	* mips-tdep.c (mips_dump_tdep): Do not print
	IN_SOLIB_RETURN_TRAMPOLINE.
	(mips_in_solib_return_trampoline): Rename mips_in_return_stub.
	(mips_gdbarch_init): Update.
2004-10-26 14:24:38 +00:00
Andrew Cagney 0d0266c631 2004-10-26 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (mips_software_single_step): Move to here ...
	* config/mips/tm-mips.h: ... from here.
	* config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
	(SOFTWARE_SINGLE_STEP): Delete.
	* mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
2004-10-26 14:13:24 +00:00
Paul Brook 3e3b46e5c8 bfd/
* elflink.c (elf_finalize_dynstr): Skip shared aux structure.
	(bfd_elf_size_dynamic_sections): Create default version definition.
	(elf_link_output_extsym): Adjust for default symbol version.
include/
	* bfdlink.h (struct bfd_link_info): Add create_default_symver.
ld/
	* ld.texinfo: Document --default-symver.
	* ldmain.c (main): Set link_info.create_default_symver.
	* lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
	(ld_options): Add default-symver.
	(parse_args): Handle OPTION_DEFAULT_SYMVER.
ld/testsuite/
	* ld-elfvers/vers.exp (build_binary): Add ldargs parameter.
	(build_vers_lib_pic_flags): New function.
	Add vers29 test.
	* ld-elfvers/vers29.c: New file.
	* ld-elfvers/vers29.dsym: New file.
	* ld-elfvers/vers29.ver: New file.
2004-10-26 13:46:05 +00:00
Jakub Jelinek b3f21e4a58 * ar.c (extract_file): Set atime to mtime for ar xo. 2004-10-26 08:08:21 +00:00
Nick Clifton fcf640ecb2 (sim_run): Add support for the "rawsid" protocol. 2004-10-26 08:07:59 +00:00
Alan Modra 1c24292617 daily update 2004-10-26 00:00:06 +00:00
gdbadmin afa8f99d0b *** empty log message *** 2004-10-26 00:00:02 +00:00
Andrew Cagney 156a53caf0 2004-10-25 Andrew Cagney <cagney@gnu.org>
* NEWS: Add Changes since GDB 6.3 section.
2004-10-25 18:50:09 +00:00
H.J. Lu ed7af9f9c1 2004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
* config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
	in an epilogue directive go negative.
2004-10-25 15:47:52 +00:00
H.J. Lu ac025970cb 2004-10-25 H.J. Lu <hongjiu.lu@intel.com>
PR 474
	* config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
	after reporting template error during manual bundling. Reported
	by Michael Dupont, michaelx.dupont@intel.com.
2004-10-25 15:32:18 +00:00
Ian Lance Taylor 2b4c4cc415 * stabs.c (stab_demangle_v3_arglist): New static function, broken
out of stab_demangle_v3_argtypes.
	(stab_demangle_v3_argtypes): Call it.
	(stab_demangle_v3_arg): Handle DEMANGLE_COMPONENT_FUNCTION_TYPE.
	If we find an unrecognized component, print out its number.
2004-10-25 15:25:20 +00:00
H.J. Lu 1ffa9a1825 2004-10-25 David Mosberger <davidm@hpl.hp.com>
* readelf.c (slurp_ia64_unwind_table): Support relocations against
	non-section symbols by adding in the symbol value.
2004-10-25 15:24:25 +00:00
Nick Clifton a394c00fe6 Add ARM CFI support 2004-10-25 12:26:04 +00:00
Nick Clifton d79b3d5057 PR 465
* readelf.c (dynamic_strings_length): New global variable.
(VALID_DYNAMIC_NAME, GET_DYNAMIC_NAME): New macros for accessing
strings in the dynamic string table.
(process_section_headers): Initialise dynamic_strings_length.
(process_dynamic_section): Likewise.
(process_object): Reset dynamic_string_length when the buffer is freed.
(dynamic_sections_mips_val): Use the new macros.
(process_dynamic_section): Likewise.
(process_version_sections): Likewise.
(process_symbol_table): Likewise.
(process_syminfo): Likewise.
(process_mips_specific): Likewise.
(dump_relocations): Add a new parameter 'strtablen' and use this to verify that
  string offset in a given reloc is valid.  Print a suitable error message
  otherwise.
(process_relocs): Pass the new argument to dump_relocations.
2004-10-25 09:59:01 +00:00
Tomer Levi fc3d45e89e 2004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
* crx-opc.c (crx_instruction): Replace i3, i4, i5 with us3, us4, us5 (respectively).
 	Remove unsupported 'popa' instruction.
	Reverse operands order in store co-processor instructions.
2004-10-25 09:47:25 +00:00
Tomer Levi 396e337840 2004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
* crx-opc.c (crx_instruction): Replace i3, i4, i5 with us3, us4, us5 (respectively).
	Remove unsupported 'popa' instruction.
	Reverse operands order in store co-processor instructions.
2004-10-25 09:45:36 +00:00
Tomer Levi 645ea12c46 2004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
* opcode/crx.h (operand_type): Remove redundant types i3, i4, i5, i8, i12.
	Add new unsigned immediate types us3, us4, us5, us16.
2004-10-25 09:44:27 +00:00
Tomer Levi f40d685589 'gas/crx' update 2004-10-25 09:39:13 +00:00
Tomer Levi 4f84de77a7 Remove test for unsupported 'popa' instruction. 2004-10-25 09:36:26 +00:00
Tomer Levi 4f399f1811 Reverse operands order in store co-processor instructions. 2004-10-25 09:36:06 +00:00
Tomer Levi 23d83918d2 'config/tc-crx.c' update. 2004-10-25 09:34:12 +00:00
Tomer Levi e92c9d66d3 1. Check unsigned immediate operands validity. 2. Update coprocessor id to be unsigned immediate. 2004-10-25 09:30:55 +00:00
Alan Modra b2a7b577d1 daily update 2004-10-25 00:00:05 +00:00
gdbadmin 137ff98e57 *** empty log message *** 2004-10-25 00:00:04 +00:00
Hans-Peter Nilsson 278b46236c * mmo.c: Adjust to ISO C. 2004-10-24 22:50:43 +00:00
Hans-Peter Nilsson aa69fe43dd * mmo.c (mmo_write_section_description): New function broken out
of mmo_internal_write_section.
	(mmo_internal_write_section): For each of .text and .data, call
	mmo_write_section_description before outputting contents if it has
	nontrivially deducible vma or contents.
	(mmo_has_leading_or_trailing_zero_tetra_p): New function.
	(mmo_canonicalize_symtab): Adjust absolute symbols to .data
	symbols if found within the .data address range.
2004-10-24 21:40:36 +00:00
Hans-Peter Nilsson 1fddb8daad * ld-mmix/sec-8m.d: Adjust test for dump using correct section
length.
	* ld-mmix/sec-9.d: Renamed test, formerly known as sec-5.d.
	* ld-mmix/sec-5.d, ld-mmix/b-offloc.s: Rewritten test.
2004-10-24 21:39:30 +00:00
Daniel Jacobowitz ed0403211c * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY. 2004-10-24 18:45:38 +00:00