David O'Brien [Thu, 31 Jan 2002 18:55:16 +0000 (18:55 +0000)]
2002-01-31 David O'Brien <obrien@FreeBSD>
* configure.in: Recognize the differences in core files from FreeBSD
4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
5-CURRENT.
* configure: Regenerate.
Approved by: Nick Clifton <nickc@cambridge.redhat.com>
<m3k7tyuzzd.fsf@north-pole.nickc.cambridge.redhat.com>
Stephane Carrez [Thu, 1 Nov 2001 09:57:24 +0000 (09:57 +0000)]
* config/tc-m68hc11.c (build_jump_insn): Allocate worst case storage
for bra/bsr and use frag_variant(), this ensure that the possible
16-bit BFD_RELOC_16 will be in the same frag.
nobody [Tue, 9 Oct 2001 12:25:53 +0000 (12:25 +0000)]
This commit was manufactured by cvs2svn to create branch 'binutils-
2_11-branch'.
Cherrypick from master 2001-10-09 12:25:52 UTC Nick Clifton <nickc@redhat.com> 'Add test of SH DSP instructions':
gas/testsuite/gas/sh/dsp.d
gas/testsuite/gas/sh/dsp.s
Alan Modra [Thu, 4 Oct 2001 18:06:41 +0000 (18:06 +0000)]
* config/tc-i386.c (parse_register): If not producing code for
x86_64, reject x86_64 register name matches.
(md_assemble): Remove now redundant check for x86_64 regs.
* scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
.fini[0-4] sections used by _exit
(CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
(*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
* scripttempl/elfm68hc11.sc: Likewise.
2001-07-28 Matthias Kramm <kramm@quiss.org>
* i386-dis.c: Change formatting conventions for architecture
i386:intel to better match the format of various intel i386
assemblers, like nasm, tasm or masm.
2001-07-18 Alan Modra <amodra@bigpond.net.au>
* i386-dis.c (grps): Print l or w suffix, and require mem modrm
for lgdt, lidt, sgdt, sidt.
2001-07-09 Andreas Jaeger <aj@suse.de>, Karsten Keil <kkeil@suse.de>
* i386-dis.c (set_op): Handle 64 bit and 32 bit mode.
(OP_J): Use bfd_vma for mask to work properly with 64 bits.
(op_address,op_riprel): Use bfd_vma to handle 64 bits.
2001-06-11 Alan Modra <amodra@bigpond.net.au>
* i386-dis.c: Group function prototypes in one place.
(FLOATCODE): Redefine as 1.
(USE_GROUPS): Redefine as 2.
(USE_PREFIX_USER_TABLE): Redefine as 3.
(X86_64_SPECIAL): Define as 4.
(GRP1b..GRPAMD): Move USE_GROUPS to bytecode1, index to bytecode2.
(PREGRP0..PREGRP26): Similarly with USE_PREFIX_USER_TABLE.
(dis386_att, dis386_intel, disx86_64_att, disx86_64_intel): Delete.
(dis386): New table combining above four tables.
(dis386_twobyte_att, dis386_twobyte_intel): Delete.
(dis386_twobyte): New table combining above two tables.
(x86_64_table): New table to handle x86_64.
(X86_64_0): Define.
(float_mem_att, float_mem_intel): Delet.
(float_mem): New table combining above two tables.
(print_insn_i386): Modify for above.
(dofloat): Likewise.
(putop): Handle '{', '|' and '}' to select alternative mnemonics.
Return 0 on success, 1 if no valid alternative.
(putop <case 'F'>, <case 'H'>): Print nothing for intel_syntax.
(putop <case 'T'>): Move to case 'U', and share case 'Q' code.
(putop <case 'I'>): Move to case 'T', and share case 'P' code.
(OP_REG <case rAX_reg .. rDI_reg>): Handle as for eAX_reg .. eDI_reg
if not 64-bit mode.
(OP_I <case q_mode>): Handle as for v_mode if not 64-bit mode.
(OP_I64): If not 64-bit mode, call OP_I.
OP_OFF64): If not 64-bit mode, call OP_OFF.
(OP_ST, OP_STi, OP_SEG, OP_DIR, OP_OFF, OP_OFF64, OP_MMX): Rename
'ignore'/'ignored' to 'bytemode'.
2001-06-10 Alan Modra <amodra@bigpond.net.au>
* i386-dis.c (dis386_att): Add 'H' to conditional branch and
loop,jcxz insns.
(disx86_64_att): Likewise.
(dis386_twobyte_att): Likewise.
(print_insn_i386): Don't print branch hints as a prefix.
(putop): 'H' macro prints branch hints.
(get64): Kill compile warnings.
* emultempl/needrelax.em: New file.
* emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
* Makefile.am (eelf64_ia64.c): Depend on it.
* Makefile.in: Rebuild.
Nick Clifton [Thu, 5 Jul 2001 16:56:12 +0000 (16:56 +0000)]
For sections containing uninitialised data, only set their size to s_paddr if
this does not reset their size to zero. MS's latest compilers will set
s_paddr to zero.
Alan Modra [Thu, 21 Jun 2001 06:03:45 +0000 (06:03 +0000)]
* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
allocate local .got space. Use shortcuts from hash table for .got
and .plt rather than comparing section names.
(elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
adjusting index into local_got_refcounts to document what we are
really doing.
(elf32_hppa_relocate_section): Similarly for local_plt_offsets.
Tidy .got and .plt error checking.
nobody [Wed, 20 Jun 2001 13:34:11 +0000 (13:34 +0000)]
This commit was manufactured by cvs2svn to create branch 'binutils-
2_11-branch'.
Cherrypick from master 2001-06-20 13:34:10 UTC Tom Rix <trix@redhat.com> 'Fix for problem with default alignment of .comm':
gas/testsuite/gas/ppc/aix.exp
gas/testsuite/gas/ppc/align.s
Andreas Jaeger [Tue, 19 Jun 2001 13:47:23 +0000 (13:47 +0000)]
Merge from mainline sources:
2001-06-19 Andreas Jaeger <aj@suse.de>
* elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
dynamic symbols.
2001-06-07 Andreas Jaeger <aj@suse.de>
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
assertion.
(elf64_x86_64_check_relocs): Set an alignment of 8 for .rela
sections; handle further relocations.
2001-06-01 Andreas Jaeger <aj@suse.de>
* elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
relocation, small reformatting.
* config/tc-cris.c (cris_insn_first_word_frag): New.
(md_assemble): Call cris_insn_first_word_frag to get the first
frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
end. Drop variable insn_size.
(gen_bdap): Call cris_insn_first_word_frag, not frag_more.
Phil Blundell [Mon, 28 May 2001 18:34:46 +0000 (18:34 +0000)]
From 2001-02-07 David Mosberger <davidm@hpl.hp.com>
* readelf.c (process_unwind): New function.
(slurp_ia64_unwind_table): Ditto.
(dump_ia64_unwind): Ditto.
(find_symbol_for_address): Ditto.
(slurp_rela_relocs): New function (split off from dump_relocations()).
(slurp_rel_relocs): Ditto.
(parse_args): Handle '-u' option.
* unwind-ia64.c: New file.
* unwind-ia64.h: New file.
* Makefile.am: Include unwind-ia64.c in readelf build.
* Makefile.in: Regenerate.
* po/binutils.pot: Regenerate.
Phil Blundell [Mon, 28 May 2001 18:34:24 +0000 (18:34 +0000)]
2001-05-28 Philip Blundell <philb@gnu.org>
From 2001-05-28 Andreas Jaeger <aj@suse.de>
* readelf.c (display_debug_frames): Fix warnings: Remove unused
variables, fix format strings.
From 2001-05-16 Richard Henderson <rth@redhat.com>
* readelf.c (do_debug_frames_interp): New.
(byte_get_little_endian): If BFD64, always read entire 8-byte fields.
(byte_get_big_endian): Likewise.
(parse_args) ['F']: Set do_debug_frames_interp.
(Frame_Chunk): Make data_factor signed, add fde_encoding.
(frame_display_row): Don't trunc pc_begin to int.
(size_of_encoded_value): New.
(display_debug_frames): Handle 64-bit targets. Print raw data
unless do_debug_frames_interp.
(debug_displays): Remove duplicate .debug_frame.
From 2001-05-15 Ralf Baechle <ralf@gnu.org>
* readelf.c: Replace uses of EM_MIPS_RS4_BE with EM_MIPS_RS3_LE.
The former constant was never in active use and is used otherwise
by the ABI.
From 2001-05-11 Jakub Jelinek <jakub@redhat.com>
* readelf.c (process_unwind): Print all unwind sections, not just
one.
From 2001-03-30 H.J. Lu <hjl@gnu.org>
* readelf.c (process_unwind): Just return if do_unwind is 0.
From 2001-03-29 H.J. Lu <hjl@gnu.org>
* readelf.c (process_unwind): Only do unwind sections for
IA64.
From 2001-02-28 Nick Clifton <nickc@redhat.com>
* readelf.c: (struct unw_aux_info): Remove const modifier for
'strtab' field.
(process_unwind): Remove non-K&R compliant LHS type cast in call
to GET_DATA_ALLOC macro.
From 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* readelf.c (struct unw_aux_info): Remove const from the info member.
(process_unwind): Don't type-cast the third argument to the
GET_DATA_ALLOC macro.
From 2001-02-11 Nick Clifton <nickc@redhat.com>
* readelf.c (dump_relocations): Free corrected allocated
array.
(process_unwind): Fix compile time warning.
From 2001-02-07 David Mosberger <davidm@hpl.hp.com>
* readelf.c (process_unwind): New function.
(slurp_ia64_unwind_table): Ditto.
(dump_ia64_unwind): Ditto.
(find_symbol_for_address): Ditto.
(slurp_rela_relocs): New function (split off from dump_relocations()).
(slurp_rel_relocs): Ditto.
(parse_args): Handle '-u' option.
* unwind-ia64.c: New file.
* unwind-ia64.h: New file.
* Makefile.am: Include unwind-ia64.c in readelf build.
* Makefile.in: Regenerate.
* po/binutils.pot: Regenerate.
nobody [Mon, 28 May 2001 09:23:55 +0000 (09:23 +0000)]
This commit was manufactured by cvs2svn to create branch 'binutils-
2_11-branch'.
Cherrypick from master 2001-05-28 09:23:54 UTC Nick Clifton <nickc@redhat.com> 'Add support for .uahword, .uaword and .uaxword pseudo ops':
gas/testsuite/gas/mips/e32el-rel2.d
gas/testsuite/gas/mips/elfel-rel.d
gas/testsuite/gas/mips/elfel-rel2.d
gas/testsuite/gas/sparc/unalign.d
gas/testsuite/gas/sparc/unalign.s
* ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
also collect whether to expect an FDE augmentation.
(check_eh_frame): Rewrite as a state machine. Track where in
an FDE we are located, skip any augmentation.
(eh_frame_estimate_size_before_relax): Get code alignment from
the fragment subtype.
(eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
* read.c (emit_leb128_expr): Call check_eh_frame.
Alan Modra [Sat, 12 May 2001 12:12:18 +0000 (12:12 +0000)]
* i386-dis.c (twobyte_has_modrm): Update table.
(need_modrm): Give it file scope.
(MODRM_CHECK): Define.
(dofloat): Use MODRM_CHECK.
(OP_E): Likewise.
(OP_EM): Likewise.
(OP_EX): Likewise.
and fix testsuite yet again now that we are getting correct disassembly.
Andreas Jaeger [Fri, 4 May 2001 12:21:46 +0000 (12:21 +0000)]
2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
* elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2001-04-27 Andreas Jaeger <aj@suse.de>
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
out handled entries.
(elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
(elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
(elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
GOT32.