Alan Modra
6386f3a767
* symbols.c (resolve_symbol_value): Remove "finalize" param,
...
instead use finalize_syms directly. Don't treat expressions
specially with regard to finalize_syms. Update calls to self.
(resolve_local_symbol): Update call to resolve_symbol_value.
(S_GET_VALUE): Likewise. Return resolve_symbol_value if
!finalize_syms.
* symbols.h (resolve_symbol_value): Update prototype.
* config/obj-aout.c (obj_crawl_symbol_chain): Update call
to resolve_symbol_value.
* config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
* config/obj-coff.c (do_relocs_for): Likewise.
(yank_symbols): Likewise.
(fixup_segment): Likewise.
* config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
* config/tc-mips.c (md_convert_frag): Likewise.
* config/tc-ppc.c (ppc_frob_symbol): Likewise.
(ppc_fix_adjustable): Likewise.
* dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
(dwarf2dbg_convert_frag): Likewise.
* ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
(eh_frame_convert_frag): Likewise.
* expr.c (make_expr_symbol): Likewise.
* write.c (adjust_reloc_syms): Likewise.
(write_object_file): Likewise.
(relax_segment): Likewise.
(fixup_segment): Likewise.
(finalize_syms): Init to zero, and update comment.
(write_object_file): Set finalize_syms to 1 rather than 2.
* doc/internals.texi (sy_value): Mention finalize_syms.
(S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
2001-05-22 10:23:50 +00:00
Alan Modra
c801568a3a
* config/tc-m68k.c (relaxable_symbol): Only treat external symbols
...
as relaxable if embedded system, make weak syms non-relaxable.
Move definition..
(tc_m68k_fix_adjustable): ..so it can be used here.
(md_apply_fix_2): Sign extend without conditional.
2001-05-22 09:01:55 +00:00
Alan Modra
507c8a1a57
Update copyright date.
2001-05-22 08:41:10 +00:00
Kevin Buettner
6b0b0a9efb
* gdb.base/finish.exp (finish_void): Allow "finish" command to
...
stop on the call statement as well as the statement after the
call.
2001-05-22 00:25:27 +00:00
Jim Blandy
8d65888a44
* values.c (value_primitive_field): If we're extracting a base
...
class, then the type of the result should be the base class being
extracted, not the type of which it is a base class.
2001-05-21 20:08:59 +00:00
Jim Blandy
a44999d56d
* value.h (struct value): Doc fix, and rearrange members to place
...
them near their explanations.
2001-05-21 20:02:22 +00:00
Michael Snyder
6c3f2dbfeb
2001-05-21 Michael Snyder <msnyder@redhat.com>
...
* remote.c (remote_async_wait): Added new variable fieldsize.
Add fieldsize (return value of hex2bin) to string pointer p.
2001-05-21 18:48:26 +00:00
Andreas Jaeger
f5198f610d
* dwarf2.c (decode_line_info): Fix error message.
...
(read_abbrevs): Fix test for offset as suggested by Alan Modra and
adjust error message.
2001-05-21 11:52:42 +00:00
Jim Blandy
984e377c92
Formatting tweak.
2001-05-21 05:30:59 +00:00
Alexandre Oliva
6be7c12c05
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
...
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254. Rebuilt a number
of subdir/configure scripts to use the new libtool.m4.
2001-05-20 19:02:56 +00:00
Stephane Carrez
81e09ed832
Improve HC11 simulator to support HC12
2001-05-20 15:40:27 +00:00
Stephane Carrez
11115521f6
* dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
...
pending interrupts.
* interrupts.c (interrupts_process): Keep track of the last number
of masked insn cycles.
(interrupts_initialize): Clear last number of masked insn cycles.
(interrupts_info): Report them.
(interrupts_update_pending): Compute clear and set masks of
interrupts and clear the interrupt bits before setting them
(due to SCI interrupt sharing).
* interrupts.h (struct interrupts): New members last_mask_cycles
and xirq_last_mask_cycles.
2001-05-20 15:36:29 +00:00
Stephane Carrez
b4fa4770b8
* m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
...
(m68hc11_analyze_instruction): Update the pc correctly.
(m68hc11_guess_from_prologue): Take into account the stack correction
for the saving address.
2001-05-20 11:53:42 +00:00
Daniel Berlin
2b12787743
2001-05-07 Daniel Berlin <dan@cgsoftware.com>
...
Changes by Jim Ingham:
* values.c (value_change_enclosing_type): New function. If the
new enclosing type is larger than the old one, we need to allocate
more space.
* value.h: Add value_change_enclosing_type prototype.
* valops.c (value_cast): Use it.
(value_assign): Use it.
(value_addr): Use it.
(value_ind): Use it.
(value_full_object): Use it.
2001-05-07 Daniel Berlin <dan@cgsoftware.com>
* values.c (value_static_field): Handle static fields that have a constant value.
2001-05-19 15:20:14 +00:00
H.J. Lu
9d8b3bf43c
2001-05-18 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp: Revert the last change.
* ld-elfvers/vers2.ver: Put back "tmpdir/" the version
references.
* ld-elfvers/vers3.ver: Likewise.
* ld-elfvers/vers6.ver: Likewise.
* ld-elfvers/vers18.ver: Likewise.
2001-05-18 16:15:42 +00:00
H.J. Lu
7913c838b3
2001-05-18 H.J. Lu <hjl@gnu.org>
...
* elflink.h (elf_link_add_object_symbols): Revert the last
change.
2001-05-18 16:06:43 +00:00
Hans-Peter Nilsson
22f3fc4323
* cris-opc.c (cris_spec_regs): Add missing initializer field for
...
last element.
2001-05-18 15:21:59 +00:00
Alan Modra
e0522e891a
* elf32-hppa.c (clobber_millicode_symbols): Temporarily set
...
ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
(hppa_build_one_stub): Add an assert to check plt.offset.
2001-05-18 03:11:13 +00:00
H.J. Lu
0f3f880889
2001-05-17 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp: Pass "-rpath .:$tmpdir" to "vers19".
* ld-elfvers/vers1.ver: Remove "tmpdir/" from the version
definition.
* ld-elfvers/vers2.ver: Likewise.
* ld-elfvers/vers3.ver: Likewise.
* ld-elfvers/vers4a.ver: Likewise.
* ld-elfvers/vers6.ver: Likewise.
* ld-elfvers/vers7a.ver: Likewise.
* ld-elfvers/vers8.ver: Likewise.
* ld-elfvers/vers9.ver: Likewise.
* ld-elfvers/vers15.ver: Likewise.
* ld-elfvers/vers16a.ver: Likewise.
* ld-elfvers/vers17.ver: Likewise.
* ld-elfvers/vers18.ver: Likewise.
2001-05-18 01:25:34 +00:00
H.J. Lu
96fd004e0e
2001-05-17 H.J. Lu <hjl@gnu.org>
...
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
version definition to basename of the output filename.
2001-05-18 01:20:02 +00:00
Michael Snyder
736d0890a9
2001-05-17 Michael Snyder <msnyder@redhat.com>
...
* blockframe.c (create_new_frame): Zero all the fields via memset,
rather than zeroing them one by one.
2001-05-17 20:04:46 +00:00
H.J. Lu
f3876d8bc6
2001-05-17 H.J. Lu <hjl@gnu.org>
...
* elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
basename of the bfd filename.
2001-05-17 19:08:46 +00:00
Eli Zaretskii
a577b05c32
* top.c (user_args): Remove unused declaration.
2001-05-17 15:05:32 +00:00
Alan Modra
d1778b88f8
Add a flag to asection, linker_has_input, and use it to reliably
...
determine whether an input section is the first one assigned to
an output section.
2001-05-17 03:58:45 +00:00
Jeff Johnston
aaa4f6d96f
2001-05-16 Jeff Johnston <jjohnstn@redhat.com>
...
* cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
howto entry is not found.
Fix for 105023-CR-1.
2001-05-16 23:06:02 +00:00
DJ Delorie
e05c6d27bf
merge from gcc
2001-05-16 21:04:30 +00:00
Michael Snyder
9734519825
2001-05-15 John S Kallal <jskallal@home.com>
...
* remote.c (remote_wait): Added new variable fieldsize.
Add fieldsize (return value of hex2bin) to string pointer p.
2001-05-16 20:10:52 +00:00
Michael Snyder
b8adfa9f55
2001-05-16 Michael Snyder <msnyder@redhat.com>
...
* infcmd.c (do_registers_info): Move alloca outside of loop.
2001-05-16 20:05:49 +00:00
Richard Henderson
31b6fca668
* 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.
2001-05-16 16:20:26 +00:00
Alexandre Oliva
7ee44f7484
* gmon_io.c (gmon_io_read, gmon_io_write_vma,
...
gmon_io_write_32, gmon_io_write_8, gmon_io_write): Adjust
argument list for K&R C.
2001-05-16 05:26:57 +00:00
Alexandre Oliva
7e8f410030
* config/tc-mn10300.c (mn10300_force_relocation): Don't
...
optimize differences between symbols in code sections to
constants.
(mn10300_fix_adjustable): Don't adjust to section+offset
relocations pointing at symbols in code sections.
2001-05-16 01:48:51 +00:00
Alexandre Oliva
2a0fa9433c
* elf-m10300.c (mn10300_elf_relax_section): Don't relax
...
negative 32-bit operands to 16 operands when the operand is
going to be zero-extended by the modified opcode.
2001-05-16 01:48:13 +00:00
Alan Modra
9fcc94b611
Fix dwarf2_emit_insn calls when frag_var breaks things.
...
Put back an old entry in ChangeLog-9899, deleted when ChangeLog split.
2001-05-16 01:08:21 +00:00
Frank Ch. Eigler
84fd0d38ae
* cgen disasm bug fix
...
2001-05-15 Frank Ch. Eigler <fche@redhat.com>
* cgen-dis.in (extract_normal): Complete support for min<base case.
2001-05-15 18:10:05 +00:00
Nick Clifton
4fe8559101
Remove definition of EM_MIPS_RS4_BE. The constant was never in active use
...
and is used otherwise by the ABI.
2001-05-15 12:24:29 +00:00
Nick Clifton
aa5f19f2b9
Fix MIPS disassembler so that it produces reassemblable code.
2001-05-15 12:11:13 +00:00
Mark Kettenis
aca21d9a80
* sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
...
info.bfd_arch_info.
2001-05-15 11:38:26 +00:00
Richard Henderson
de1cb007d9
* ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
...
last change.
2001-05-15 06:10:43 +00:00
Kevin Buettner
b08cfdb65e
Fix warnings resulting from fact that GET_LWP() now returns a long rather
...
than an int.
2001-05-15 00:13:47 +00:00
Kevin Buettner
ca6724c16a
Redefine ptid_t to be a struct rather than an int.
2001-05-15 00:03:38 +00:00
Richard Henderson
67a659f60e
* 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.
2001-05-14 22:37:47 +00:00
Richard Henderson
1ff55c930c
* gas/elf/ehopt0.s: New.
...
* gas/elf/ehopt0.d: New.
* gas/elf/elf.exp: Run it.
2001-05-14 22:37:31 +00:00
Andrew Cagney
a5d7c4910b
Remove stray @item's.
2001-05-14 20:24:23 +00:00
Alexandre Oliva
076dc439b8
* config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
...
before a relaxable insns.
2001-05-14 20:01:12 +00:00
Michael Snyder
234fa6d16b
2001-05-14 Michael Snyder <msnyder@redhat.com>
...
* remote.c (hex2bin): Make first argument const.
Require explicit count, don't accept null-terminated str.
(remote_resume, remote_async_resume): White space fix-up.
2001-05-14 19:02:00 +00:00
Mark Kettenis
caadab2cfa
* symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
...
basename (NAME). The FreeBSD basename returns a pointer to a
static buffer, even if it's simply returning a string identical to
its argument.
(lookup_partial_symtab): Likewise.
2001-05-14 18:49:54 +00:00
Michael Snyder
cb0ba49e37
2001-05-14 Michael Snyder <msnyder@redhat.com>
...
* solib.c, solib.h: Add comment for function no_shared_libraries.
2001-05-14 18:45:45 +00:00
Michael Snyder
2644f3936c
2001-05-14 Michael Snyder <msnyder@redhat.com>
...
* remote.c (remote_write_bytes): Set nr_bytes to return value of
bin2hex.
2001-05-14 18:31:35 +00:00
Kevin Buettner
183a2f1a42
Fix no_shared_libraries() declaration.
2001-05-14 18:09:05 +00:00
J.T. Conklin
24a7a601e2
* ppc-opc.c (powerpc_opcodes): Fixed extended opcode field of
...
simplified mnemonics used for setting PPC750-specific special
purpose registers.
2001-05-14 17:20:13 +00:00