Steve Chamberlain [Fri, 15 Apr 1994 18:41:27 +0000 (18:41 +0000)]
* config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
Steve Chamberlain [Fri, 15 Apr 1994 18:41:05 +0000 (18:41 +0000)]
* config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
Ian Lance Taylor [Fri, 15 Apr 1994 18:39:31 +0000 (18:39 +0000)]
* ecoff.c (first_proc_ptr): New static variable.
(add_procedure): Set first_proc_ptr if it hasn't been set.
(ecoff_build_lineno): If the first procedure does not start at
address zero, insert a dummy line to compensate.
Ian Lance Taylor [Fri, 15 Apr 1994 18:37:05 +0000 (18:37 +0000)]
* ldlang.c (lang_size_sections): When relaxing, adjust the
position of a padding statement, and adjust dot accordingly.
Ian Lance Taylor [Fri, 15 Apr 1994 18:35:32 +0000 (18:35 +0000)]
* coff-mips.c (mips_relocate_section): When relaxing, adjust local
relocs against the .text section as required.
* ecofflink.c (bfd_ecoff_debug_accumulate): When relaxing, adjust
PDR addresses as required.
Ian Lance Taylor [Fri, 15 Apr 1994 16:29:56 +0000 (16:29 +0000)]
* ecoff.c (ecoff_emit_aggregate): Take fdr argument. Map fdr
index through rfd map if it exists. Check for a couple of cases
which gdb handles specially. Change all callers.
(ecoff_type_to_string): Take fdr argument rather than aux_ptr and
bigendian argument. Change all callers.
(ecoff_print_symbol): Handle stStruct, stUnion and stEnum.
Ian Lance Taylor [Fri, 15 Apr 1994 15:07:31 +0000 (15:07 +0000)]
* Makefile.in (bootstrap, bootstrap2, bootstrap3): Make gasp.new
as well as as.new.
Ian Lance Taylor [Fri, 15 Apr 1994 03:34:25 +0000 (03:34 +0000)]
* Makefile.in (gcc-no-fixedincludes): Touch gcc/include/fixed, not
gcc/stmp-fixproto, to try to prevent fixproto from being run.
Ken Raeburn [Thu, 14 Apr 1994 22:46:53 +0000 (22:46 +0000)]
* Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).
* configure.in: Set ALL_OBJ_DEPS in output Makefile.
Based on suggestions from <BAILEY@hmivax.humgen.upenn.edu> (Charles Bailey):
* vmsconf.sh: In generated file, get ".obj" suffix right, build source files
from other directories into objects in the current directory, and specify PSECT
attributes explicitly to linker. Also added missing label.
* Makefile.in (stamp-mk.com): Reference new variable VMS_OTHER_OBJS for list of
non-local object files, instead of listing them here.
(VMS_OTHER_OBJS): New variable, added more libiberty files.
* make-gas.com: Regenerated.
* config/ho-vms.h (unlink): Define as delete.
* config-gas.com: Fix quoting on TARGET_CANONICAL definition. Delete files
before creating them.
Ken Raeburn [Thu, 14 Apr 1994 22:30:22 +0000 (22:30 +0000)]
* expr.c (operand): Try to parse "0f" and "0b" sequences as floating point and
binary numbers respectively; if it doesn't work, treat them as local labels.
Ian Lance Taylor [Thu, 14 Apr 1994 20:39:39 +0000 (20:39 +0000)]
* Makefile.in (de-stage1, de-stage2, de-stage3): Use rm -f.
Stan Shebs [Thu, 14 Apr 1994 18:09:12 +0000 (18:09 +0000)]
Wed Apr 13 11:50:07 1994 Stan Shebs (shebs@andros.cygnus.com)
* coff-sparc.c (sparccoff_vec): Set minimum alignment power to 3.
Ian Lance Taylor [Thu, 14 Apr 1994 17:59:14 +0000 (17:59 +0000)]
Remove assertion that was not intended to be checked in.
Ian Lance Taylor [Thu, 14 Apr 1994 17:40:43 +0000 (17:40 +0000)]
config/tc-mips.[ch] changes.
Ian Lance Taylor [Thu, 14 Apr 1994 17:39:55 +0000 (17:39 +0000)]
* config/tc-mips.h (DIFF_EXPR_OK): Define.
* config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for
certain cases of 'i', 'j' and 'o'. Change 'u' to take an
argument, the reloc type.
(load_register): Pass reloc type to macro_build for 'u'.
(macro): Likewise. For M_LA_AB permit a difference expression
when generating embedded PIC code between an arbitrary symbol and
a symbol in the .text section.
(mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and
BFD_RELOC_PCREL_LO16 to be emitted.
(md_apply_fix): Check that most relocs are not PC relative.
Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
(tc_gen_reloc): Change #error to as_fatal. Handle
BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S.
Ian Lance Taylor [Thu, 14 Apr 1994 17:33:22 +0000 (17:33 +0000)]
* coff-mips.c (mips_howto_table): Add dummy entries to account for
numbering changes in include/coff/mips.h. Add entries for
MIPS_R_RELHI and MIPS_R_RELLO.
(mips_ecoff_swap_reloc_in): Handle an extra bit for the reloc type
when little endian. Treat internal MIPS_R_RELLO or MIPS_R_RELHI
relocs like MIPS_R_SWITCH, and convert r_offset from 24 to 32
bits.
(mips_ecoff_swap_reloc_out): Likewise.
(mips_adjust_reloc_in): Handle internal MIPS_R_RELLO or
MIPS_R_RELHI relocs like MIPS_R_SWITCH.
(mips_adjust_reloc_out): Likewise.
(mips_relhi_addr, mips_relhi_addend): New static variables.
(mips_relhi_reloc, mips_rello_reloc): New functions.
(mips_bfd_reloc_type_lookup): Turn BFD_RELOC_PCREL_HI16_S into
MIPS_R_RELHI and turn BFD_RELOC_PCREL_LO16 into MIPS_R_RELLO.
(mips_relocate_hi): Rename from mips_relocate_refhi, and add pcrel
argument. Changed all callers.
(mips_relocate_section): Rename got_reflo to got_lo and
reflo_int_rel to lo_int_rel. Handle MIPS_R_RELLO and MIPS_R_RELHI
relocs.
(mips_relax_section): Adjust MIPS_R_RELHI/MIPS_R_RELLO pairs when
expanding a PC relative call.
Ian Lance Taylor [Thu, 14 Apr 1994 17:08:31 +0000 (17:08 +0000)]
* reloc.c (bfd_reloc_code_real_type): Add BFD_RELOC_PCREL_HI16_S
and BFD_RELOC_PCREL_LO16.
* bfd-in2.h: Rebuilt.
Ian Lance Taylor [Thu, 14 Apr 1994 17:02:48 +0000 (17:02 +0000)]
* mips.h (RELOC_BITS3_TYPE_BIG): Changed from 0x1e to 0x3e.
(RELOC_BITS3_TYPEHI_LITTLE): Define.
(RELOC_BITS3_TYPEHI_SH_LITTLE): Define.
(MIPS_R_PCREL16): Change value from 8 to 12 to match Irix 4.
(MIPS_R_RELHI): Define.
(MIPS_R_RELLO): Define.
(MIPS_R_SWITCH): Change value from 9 to 22.
Jeff Law [Thu, 14 Apr 1994 14:16:56 +0000 (14:16 +0000)]
* procfs.c (procfs_wait): Protect watchpoint code with appropriate
#ifdefs.
(procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
Jeff Law [Thu, 14 Apr 1994 14:04:15 +0000 (14:04 +0000)]
* procfs.c (procfs_wait): Protect watchpoint code with appropriate
#ifdefs.
Jim Kingdon [Thu, 14 Apr 1994 04:35:06 +0000 (04:35 +0000)]
* rltty.c (set_tty_settings): Don't set readline_echoing_p.
(rl_deprep_terminal) [NEW_TTY_DRIVER]: Set readline_echoing_p.
Ian Lance Taylor [Thu, 14 Apr 1994 04:02:34 +0000 (04:02 +0000)]
There is no interesting Irix 5, or PowerPC, or RS/6000 support in the
linker, so don't mention them.
Jim Kingdon [Thu, 14 Apr 1994 03:35:57 +0000 (03:35 +0000)]
(Arguments): Fix typo.
Jim Kingdon [Thu, 14 Apr 1994 03:31:42 +0000 (03:31 +0000)]
* gdb.texinfo: Refer to file names, not path names, per rms
convention.
Jeff Law [Thu, 14 Apr 1994 03:13:52 +0000 (03:13 +0000)]
* config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
(STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
(target_{insert,remove}_watchpoint): Likewise.
Ken Raeburn [Wed, 13 Apr 1994 22:46:00 +0000 (22:46 +0000)]
Make tests work again on alpha-osf1 and sun4 native.
* config/unix.exp: Use nm.new, not nm, from newly built tree.
* binutils.all/objdump.exp: Add more wildcards to list of
single-letter options in pattern for usage message.
* binutils.all/nm.exp: Deleted debug-symbols test, since it only
works for a.out/stabs systems. Fixed regexps to make underscores
optional, since some C compilers don't prepend them. Deleted
check for foo.o symbol, since again some systems don't generate
it.
Bill Cox [Wed, 13 Apr 1994 22:30:37 +0000 (22:30 +0000)]
* configure: Make file links cleanly even if Lynx fails on
an NFS symlink (at least fail cleanly).
Jeff Law [Wed, 13 Apr 1994 22:06:01 +0000 (22:06 +0000)]
* gdb.t07/{recurse.exp, recurse.c}: New tests for watchpoints
on local variables in recursive functions.
* gdb.t07/Makefile.in: Build the new test.
Jeff Law [Wed, 13 Apr 1994 22:02:52 +0000 (22:02 +0000)]
* config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
(HAVE_STEPPABLE_WATCHPOINT): Define.
(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
(target_{insert,delete}_watchpoint): Define.
Jeff Law [Wed, 13 Apr 1994 21:57:00 +0000 (21:57 +0000)]
* breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
bp_watchpoint_scope breakpoints.
(struct breakpoint): Add val_chain and related_breakpoint fields
for use by watchpoints.
* breakpoint.c (within_scope): Delete. No longer used.
(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
(target_{remove,insert}_watchpoint): Likewise.
(can_use_hardware_watchpoint): New function.
(remove_breakpoint): New function to remove a single breakpoint
or hardware watchpoint.
(insert_breakpoints): Handle insertion of hardware watchpoints.
Store a copy of the value chain derived from the watchpoint
expression.
(remove_breakpoints): Simplify by using remove_breakpoint.
(delete_breakpoint): Likewise.
(watchpoint_check): Delete the watchpoint and watchpoint scope
breakpoints when the watchpoint goes out of scope. Save & restore
the current frame after checking watchpoints.
(breakpoint_init_inferior): Likewise (restarting the program
makes all local watchpoints go out of scope).
(bpstat_stop_status): Handle hardware watchpoints much like normal
watchpoints. Delete the watchpoint and watchpoint scope breakpoint
when the watchpoint goes out of scope. Remove and reinsert all
breakpoints before returning if we stopped when a hardware watchpoint
fired.
(watch_command): Use a hardware watchpoint when possible. If
watching a local expression, build a scope breakpoint too.
(map_breakpoint_numbers): Also call given function for any
related breakpoints.
(disable_breakpoint): Never disable a scope breakpoint.
(enable_breakpoint): Handle hardware breakpoints much like normal
breakpoints, but recompute the watchpoint_scope breakpoint's
frame and address (if we have an associated scope breakpoint).
(read_memory_nobpt): Handle hardware watchpoints like normal
watchpoints. When necessary handle watchpoint_scope breakpoints.
(print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
(clear_command, breakpoint_re_set_one, enable_command): Likewise.
(disable_command): Likewise.
* blockframe.c (find_frame_addr_in_frame_chain): New function.
Extern prototype added to frame.h
* infrun.c (wait_for_inferior): Set current_frame and select
a frame before checking if we stopped due to a hardare watchpoint
firing. Handle stepping over hardware watchpoints.
(normal_stop): Remove unnecessary call to select_frame.
* value.h (value_release_to_mark): Declare.
* values.c (value_release_to_mark): New function.
* procfs.c (procfs_wait): Add cases for hardware watchpoints.
(procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
* hppab-nat.c (hppa_set_watchpoint): New function.
* config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
(HAVE_STEPPABLE_WATCHPOINT): Define.
(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
(target_{insert,delete}_watchpoint): Define.
Ian Lance Taylor [Wed, 13 Apr 1994 14:54:18 +0000 (14:54 +0000)]
* objdump.c: Do an ifdef on __GO32__, not unix.
Jeff Law [Wed, 13 Apr 1994 03:47:33 +0000 (03:47 +0000)]
Fix typo.
Jeff Law [Wed, 13 Apr 1994 03:46:42 +0000 (03:46 +0000)]
* gdb.t15/gdbme.c (t_func_values): Do not compare function pointers
directly. Instead compare the return values from actual calls.
Stan Shebs [Wed, 13 Apr 1994 02:02:48 +0000 (02:02 +0000)]
Tue Apr 12 18:25:13 1994 Stan Shebs (shebs@andros.cygnus.com)
* subsegs.c (subsegs_begin): Call memset with args in the correct
order.
(subseg_get): Clear newly allocated seginfo, set its pointer slots
to NULL instead of 0.
Fixes a problem observed in sparc-lynx progressive.
Jeff Law [Tue, 12 Apr 1994 20:37:33 +0000 (20:37 +0000)]
* som.c (som_write_fixups): Always emit at least
one relocation for any non-bss section.
Ian Lance Taylor [Tue, 12 Apr 1994 16:39:21 +0000 (16:39 +0000)]
* mh-irix4 (CC): Change -XNh1500 to -XNh2000.
Stu Grossman [Tue, 12 Apr 1994 02:53:09 +0000 (02:53 +0000)]
Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
* xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
smtyp XTY_LD, sclass XMC_DS (external data segment label). They
often have the same names as debug symbols for functions, and
confuse lookup_symbol().
Bill Cox [Mon, 11 Apr 1994 23:17:18 +0000 (23:17 +0000)]
* Makefile.in (check): Set TCL_LIBRARY for runtest.
Ian Lance Taylor [Mon, 11 Apr 1994 18:43:15 +0000 (18:43 +0000)]
* elfcode.h (assign_file_positions_except_relocs): Don't require
the file alignment to correspond to the page size when linking
with -N.
Jim Wilson [Mon, 11 Apr 1994 18:00:46 +0000 (18:00 +0000)]
* test-build.mk (CC): For mips-sgi-irix4, change -XNh1500 to
-XNh2000.
Jim Kingdon [Mon, 11 Apr 1994 17:52:11 +0000 (17:52 +0000)]
* remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
* config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
REGISTER_RAW_SIZE (1).
Together these changes work around a bug in HP's compiler. Both
seem to be necessary.
Ian Lance Taylor [Mon, 11 Apr 1994 16:35:39 +0000 (16:35 +0000)]
* scripttempl/i386coff.sc: If relocating, don't put .init and
.fini sections into .text; keep them separate.
* config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
exist, get crtbegin based on gcc -print-libgcc-file-name.
(HOSTING_LIBS): Similar change for ../gcc/crtend.o.
Jeff Law [Mon, 11 Apr 1994 16:19:03 +0000 (16:19 +0000)]
* paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
are type mst_solib_trampoline.
Jeff Law [Mon, 11 Apr 1994 16:16:20 +0000 (16:16 +0000)]
* From Peter Schauer with minor modifications.
* gdb.t15/return.exp (return_tests): Handle targets where "return"
stops in mid-line in the caller. Add xfail for returning a float
value on X86 targets.
Jeff Law [Mon, 11 Apr 1994 16:11:12 +0000 (16:11 +0000)]
* config/tc-hppa.c (pa_procend): Handle case where label was
defined after the .proc directive.
Jeff Law [Mon, 11 Apr 1994 16:03:21 +0000 (16:03 +0000)]
* gas/hppa/more.parse/callinfobug.s: Add missing name for procedure.
Jeff Law [Mon, 11 Apr 1994 16:02:52 +0000 (16:02 +0000)]
* gas/hppa/more.parse/callinfobug.s: Add missing name for procedure.
Jeff Law [Mon, 11 Apr 1994 16:02:12 +0000 (16:02 +0000)]
* config/tc-hppa.c (pa_procend): Give an error if we encounter a
procend for a procedure without a name.
Jeff Law [Mon, 11 Apr 1994 14:55:16 +0000 (14:55 +0000)]
* gas/hppa/reloc/funcrelobug.s: Place the trampoline in the
$DATA$ rather than the $LIT$ subspace.
Jeff Law [Sun, 10 Apr 1994 08:12:33 +0000 (08:12 +0000)]
* elfcode.h (write_relocs): For rela relocations, adjust the
addend for relocations involving section symbols to account
for the lossage of 1:1 mapping from input section symbols to
output section symbols.
David MacKenzie [Sat, 9 Apr 1994 22:11:36 +0000 (22:11 +0000)]
* configure: Unknown options are fatal again.
Jim Kingdon [Sat, 9 Apr 1994 00:18:21 +0000 (00:18 +0000)]
Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
* config/m68k/es1800.mt: Change comments.
Fri Apr 8 17:14:37 1994 Rob Savoye (rob@darkstar.cygnus.com)
* config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
Karen Christiansen [Fri, 8 Apr 1994 23:35:47 +0000 (23:35 +0000)]
update platform targets
Stu Grossman [Fri, 8 Apr 1994 22:37:35 +0000 (22:37 +0000)]
* lynx-nat.c: Restore regmap structure for SPARC. It's needed
for core files.
Jim Kingdon [Fri, 8 Apr 1994 22:30:55 +0000 (22:30 +0000)]
* values.c (unpack_long): Remove obsolete comment about using a
switch statement.
Jim Kingdon [Fri, 8 Apr 1994 21:56:12 +0000 (21:56 +0000)]
* symfile.c (symbol_file_command): Add comments about command syntax.
Ian Lance Taylor [Fri, 8 Apr 1994 21:40:38 +0000 (21:40 +0000)]
* aoutx.h (NAME(aout,make_sections)): New function.
(NAME(aout,some_aout_object_p)): Call NAME(aout,make_sections)
rather than making sections inline.
(NAME(aout,mkobject)): Don't make any sections.
(NAME(aout,adjust_sizes_and_vmas)): Call NAME(aout,make_sections).
(NAME(aout,final_link)): Don't dereference obj_textsec (abfd) or
obj_datasec (abfd) if they are NULL.
* libaout.h (NAME(aout,make_sections)): Declare.
* bout.c (b_out_mkobject): Don't make any sections.
(b_out_write_object_contents): Call aout_32_make_sections.
(b_out_set_section_contents): Likewise.
* i386os9k.c (os9k_mkobject): Don't make any sections.
(os9k_write_object_contents): Call aout_32_make_sections.
(os9k_set_section_contents): Likewise.
David MacKenzie [Fri, 8 Apr 1994 19:03:23 +0000 (19:03 +0000)]
* configure: Ignore --x-includes and --x-libraries, for Autoconf
compatibility.
Ian Lance Taylor [Fri, 8 Apr 1994 16:24:01 +0000 (16:24 +0000)]
* aoutx.h (NAME(aout,new_section_hook)): Don't set N_EXT in target
index.
Peter Schauer [Fri, 8 Apr 1994 00:37:48 +0000 (00:37 +0000)]
* config/mips/mipsv4.mh, config/mips/mipsv4.mt,
config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
New files for MIPS SVR4 support.
Peter Schauer [Fri, 8 Apr 1994 00:36:54 +0000 (00:36 +0000)]
* config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
OSF/1 has shared libraries.
Peter Schauer [Fri, 8 Apr 1994 00:36:08 +0000 (00:36 +0000)]
* config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
Define to handle stepping into -g compiled shared libraries.
* config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
stepping into -g compiled shared libraries.
Peter Schauer [Fri, 8 Apr 1994 00:35:15 +0000 (00:35 +0000)]
* infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
are in the .plt section.
* minsyms.c (lookup_solib_trampoline_symbol_by_pc,
find_solib_trampoline_target): New functions for handling
stepping into -g compiled shared libraries.
* symtab.h (lookup_solib_trampoline_symbol_by_pc,
find_solib_trampoline_target): Add prototypes.
* config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
Define to handle stepping into -g compiled shared libraries.
* config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
stepping into -g compiled shared libraries.
* configure.in: Add mips-*-sysv4* support.
* config/mips/mipsv4.mh, config/mips/mipsv4.mt,
config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
New files for MIPS SVR4 support.
* Makefile.in: Update for new mipsv4 files.
* alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
read_next_frame_reg to obtain the frame relative stack pointer.
* mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
obtain the frame relative stack pointer.
* mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
by entering them into the minimal symbol table.
* printcmd.c (print_scalar_formatted): Do not try to unpack to
a long for float formats.
* solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
get defined in <link.h>.
* solib.c (solib_add): Add shared library sections to the section
table of the target before adding the symbols.
* partial-stab.h: Relocate static and global functions.
* dbxread.c (read_dbx_symtab): Remove unused variable
end_of_text_address. Relocate text_addr when passing it
to end_psymtab.
For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
library functions before the executable is run. Retrieve dynamic
symbols from stripped executables.
* mipsread.c (read_alphacoff_dynamic_symtab): New function.
* mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
if no debugging symbols were found.
* alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
is defined.
* config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
OSF/1 has shared libraries.
David Edelsohn [Fri, 8 Apr 1994 00:33:47 +0000 (00:33 +0000)]
Add clean target.
Peter Schauer [Fri, 8 Apr 1994 00:17:32 +0000 (00:17 +0000)]
* config.bfd, configure.host: Add mips-*-sysv4* support.
Peter Schauer [Fri, 8 Apr 1994 00:15:59 +0000 (00:15 +0000)]
* config.guess: Add SINIX support.
* configure.in: Add mips-*-sysv4* support.
Ken Raeburn [Thu, 7 Apr 1994 23:02:49 +0000 (23:02 +0000)]
note deleted .mt files
Ian Lance Taylor [Thu, 7 Apr 1994 19:13:17 +0000 (19:13 +0000)]
* dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
to BFD handling of dynamic symbols.
Ian Lance Taylor [Thu, 7 Apr 1994 18:33:09 +0000 (18:33 +0000)]
* config/tc-mips.c (macro): Pass NULL for expression argument to
macro_build for nori case.
(SWITCH_TABLE): Define.
(mips_force_relocation): Force a relocation for a switch table
entry.
(md_apply_fix): Write switch table entry value into file.
(tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry,
and set the addend to the difference between the reloc address and
the subtrahend.
Ian Lance Taylor [Thu, 7 Apr 1994 18:29:38 +0000 (18:29 +0000)]
* coff-mips.c (mips_howto_table): Add entry for MIPS_R_SWITCH.
(mips_ecoff_swap_reloc_in): For MIPS_R_SWTICH, copy r_symndx into
r_offset and set r_symndx to RELOC_SECTION_TEXT.
(mips_ecoff_swap_reloc_out): For MIPS_R_SWITCH, get the r_symndx
value from the r_offset field.
(mips_adjust_reloc_in): Maximum r_type value is now MIPS_R_SWITCH.
For MIPS_R_SWITCH, copy the r_offset field into the addend field.
(mips_adjust_reloc_out): For MIPS_R_SWITCH, copy the addend field
into the r_offset field.
(mips_switch_reloc): New function.
(mips_bfd_reloc_type_lookup): Translate BFD_RELOC_GPREL32 into
MIPS_R_SWITCH.
(mips_relocate_section): Handle MIPS_R_SWITCH.
(mips_relax_section): Adjust MIPS_R_SWITCH offset if necessary.
Ian Lance Taylor [Thu, 7 Apr 1994 18:28:03 +0000 (18:28 +0000)]
Comment change.
Ian Lance Taylor [Thu, 7 Apr 1994 18:20:04 +0000 (18:20 +0000)]
* mips.h (MIPS_R_SWITCH): Define.
Jeff Law [Thu, 7 Apr 1994 18:12:25 +0000 (18:12 +0000)]
* elfcode.h (elf_set_section_contents): Support calling the backend
function elf_backend_begin_write_processing when just beginning to
write an object file.
* libelf.h (elf_backend_begin_write_processing): Declare.
* elf{32,64}-target.h (elf_backend_begin_write_processing): Provide
a default definition.
(elf{32,64}_bed): Add elf_backend_begin_write_processing.
* elf32-hppa.h (elf_hppa_tc_symbol): Delete extern declaration.
(elf_hppa_tc_make_sections): Likewise.
* elf32-hppa.c (symext_chain_built): Delete.
(symext_chain_size): Renamed from symextn_contents_real_size.
(elf32_hppa_backend_{begin,final}_write_processing): New functions.
(add_entry_to_symext_chain): New function.
(hppa_elf_set_section_contents): Ignore writes to the symbol extension
section until it's been rebuilt internally.
(hppa_elf_get_section_contents): Symbol extension section is no
longer special.
(elf_backend_{begin,final}_write_processing): Define.
(elf_hppa_tc_make_sections): Simplify now that much code has
migrated into elf32_hppa_backend_{being,final}_write_processing.
Jeff Law [Thu, 7 Apr 1994 17:39:16 +0000 (17:39 +0000)]
* config/tc-hppa.h (elf_tc_symbol): Delete. No longer used.
(elf_tc_make_sections): Likewise.
(hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls.
* config/tc-hppa.c (hppa_tc_make_sections): Delete function.
(hppa_tc_symbol): Likewise.
* config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and
elf_tc_make_sections stuff. It was there to support PA braindamage
which has been fixed, and in the case of elf_tc_make_sections is
redundant with elf_tc_final_processing.
Jeff Law [Thu, 7 Apr 1994 03:49:18 +0000 (03:49 +0000)]
* configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
manufacturer.
Ian Lance Taylor [Thu, 7 Apr 1994 02:04:34 +0000 (02:04 +0000)]
Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
(--dynamic-reloc) arguments to objdump.
* nm.c (dynamic): New static variable.
(long_options): Added "dynamic".
(usage): Mention -D and --dynamic.
(main): Add D to getopt string. Handle -D by setting dynamic.
(display_rel_file): If dynamic is non-zero, read dynamic symbols
rather than normal symbols.
* nm.1: Updated for -D (--dynamic) option.
* objdump.c (dump_dynamic_symtab): New global variable.
(dump_dynamic_reloc_info): New global variable.
(dynsyms, dynsymcount): New global variables.
(usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
(long_options): Added "dynamic-reloc" and "dynamic-syms".
(slurp_symtab): If no symbols, return rather than exit.
(slurp_dynamic_symtab): New function.
(display_bfd): Handle dump_dynamic_symtab and
dump_dynamic_reloc_info.
(dump_symbols): Take new dynamic argument, indicating whether to
display dynamic symbols.
(dump_relocs): Move most printing into dump_reloc_set.
(dump_dynamic_relocs): New function.
(dump_reloc_set): New function, extracted from dump_relocs.
(main): Add R and T to getopt string. Handle -T by setting
dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
* objdump.1: Updated for -R (--dynamic-reloc) and -T
(--dynamic-syms) options.
* binutils.texi: Updated for new nm and objdump options.
Ian Lance Taylor [Thu, 7 Apr 1994 01:58:27 +0000 (01:58 +0000)]
* All backends: Added BFD_JUMP_TABLE_DYNAMIC to target vector.
Ian Lance Taylor [Thu, 7 Apr 1994 01:50:10 +0000 (01:50 +0000)]
* sunos.c (MY_read_dynamic_symbols): Don't define.
(MY_read_dynamic_relocs): Don't define.
(MY_get_dynamic_symtab_upper_bound): Define.
(MY_canonicalize_dynamic_symtab): Define.
(MY_get_dynamic_reloc_upper_bound): Define.
(MY_canonicalize_dynamic_reloc): Define.
(struct sunos_dynamic_info): Change type of dynsym_count and
dynrel_count to long. Add fields canonical_dynsym and
canonical_dynrel.
(sunos_read_dynamic_info): Check that BFD had DYNAMIC flag set.
Clear info->canonical_dynsym and info->canonical_dynrel.
(MY(read_dynamic_symbols)): Removed.
(MY(read_dynamic_relocs)): Removed.
(sunos_get_dynamic_symtab_upper_bound): New function.
(sunos_canonicalize_dynamic_symtab): New function.
(sunos_get_dynamic_reloc_upper_bound): New function.
(sunos_canonicalize_dynamic_reloc): New function.
* libaout.h: Declare struct reloc_ext_external and
reloc_std_external to avoid prototype problems.
(struct aout_backend_data): Remove fields read_dynamic_symbols and
read_dynamic_relocs.
(NAME(aout,translate_symbol_table)): Declare.
(NAME(aout,swap_ext_reloc_in)): Declare.
(NAME(aout,swap_std_reloc_in)): Declare.
* aoutx.h (NAME(aout,translate_symbol_table)): Renamed from
translate_symbol_table and made non-static. Changed all callers.
(NAME(aout,slurp_symbol_table)): Don't read dynamic symbols.
(NAME(aout,slurp_reloc_table)): Don't read dynamic relocs.
(NAME(aout,get_reloc_upper_bound)): Don't count dynamic relocs.
* aoutf1.h (aout_32_sunos4_write_object_contents): Don't bother to
remove dynamic symbols and relocs. They will no longer be
present.
(MY_read_dynamic_symbols): Don't define.
(MY_read_dynamic_relocs): Don't define.
(sunos4_aout_backend): Don't initialize dynamic entry points.
* aout-target.h (MY_read_dynamic_symbols): Don't define.
(MY_read_dynamic_relocs): Don't define.
(MY(backend_data)): Don't initialize dynamic entry points.
(MY_get_dynamic_symtab_upper_bound): If not defined, define to
_bfd_nodynamic version.
(MY_canonicalize_dynamic_symtab): Likewise.
(MY_get_dynamic_reloc_upper_bound): Likewise.
(MY_canonicalize_dynamic_reloc): Likewise.
Ian Lance Taylor [Thu, 7 Apr 1994 01:48:51 +0000 (01:48 +0000)]
* targets.c (bfd_target): Add fields
_bfd_get_dynamic_symtab_upper_bound,
_bfd_canonicalize_dynamic_symtab,
_bfd_get_dynamic_reloc_upper_bound,
_bfd_canonicalize_dynamic_reloc.
(BFD_JUMP_TABLE_DYNAMIC): Define.
* libbfd-in.h (_bfd_nodynamic_get_dynamic_symtab_upper_bound):
Define.
(_bfd_nodynamic_canonicalize_dynamic_symtab): Define.
(_bfd_nodynamic_get_dynamic_reloc_upper_bound): Define.
(_bfd_nodynamic_canonicalize_dynamic_reloc): Define.
* bfd.c (bfd_get_dynamic_symtab_upper_bound): Define.
(bfd_canonicalize_dynamic_symtab): Define.
(bfd_get_dynamic_reloc_upper_bound): Define.
(bfd_canonicalize_dynamic_reloc): Define.
* bfd-in2.h: Rebuilt.
* libbfd.h: Rebuilt.
Ian Lance Taylor [Thu, 7 Apr 1994 01:47:16 +0000 (01:47 +0000)]
* cf-m68klynx.c: Include sysdep.h.
Ian Lance Taylor [Thu, 7 Apr 1994 01:40:54 +0000 (01:40 +0000)]
Updated copyright (bfd-in2.h check in coming soon).
Ian Lance Taylor [Wed, 6 Apr 1994 22:00:40 +0000 (22:00 +0000)]
* targets.c (bfd_target): Rearranged fields in target vector.
Removed _bfd_debug_info_start, _bfd_debug_info_end and
_bfd_debug_info_accumulate, which were never used.
(BFD_JUMP_TABLE_GENERIC, BFD_JUMP_TABLE_COPY): Defined.
(BFD_JUMP_TABLE_CORE, BFD_JUMP_TABLE_ARCHIVE): Defined.
(BFD_JUMP_TABLE_SYMBOLS, BFD_JUMP_TABLE_RELOCS): Defined.
(BFD_JUMP_TABLE_WRITE, BFD_JUMP_TABLE_LINK): Defined.
* All backends: Changed to use the new BFD_JUMP_TABLE_* macros
rather than the single JUMP_TABLE macro. Removed many of the
weird macro definitions needed to support the monolithic
JUMP_TABLE.
* bfd-in.h (JUMP_TABLE): Removed.
* libbfd-in.h: Define a bunch of macros, and declare a few
functions, for use with the new BFD_JUMP_TABLE_* macros.
* libbfd.c (_bfd_dummy_new_section_hook): Removed.
(bfd_false): Set bfd_error_invalid_operation.
(bfd_nullvoidptr): Likewise.
(bfd_n1): New function.
(_bfd_nocore_core_file_matches_executable_p): Renamed from
_bfd_dummy_core_file_matches_executable_p.
(_bfd_nocore_core_file_failing_command): Similar rename. Set
bfd_error_invalid_operation.
(_bfd_nocore_core_file_failing_signal): Likewise.
(_bfd_generic_get_section_contents): Renamed from
bfd_generic_get_section_contents. Changed all callers.
(_bfd_generic_set_section_contents): Similar rename.
* ieee.c: #if 0 out ieee_bfd_debug_info_start,
ieee_bfd_debug_info_end, ieee_bfd_debug_info_accumulate. They
were never called.
* bfd-in2.h: Rebuilt.
* libbfd.h: Rebuilt.
Ian Lance Taylor [Wed, 6 Apr 1994 21:12:40 +0000 (21:12 +0000)]
* mips-opc.c (mips_opcodes): Correct operands of "nor" with an
immediate argument.
Jeff Law [Wed, 6 Apr 1994 07:10:09 +0000 (07:10 +0000)]
* emultempl/hppaelf.em (hppaelf_finish): Only resize sections
if building a final executable.
Jeff Law [Wed, 6 Apr 1994 05:11:31 +0000 (05:11 +0000)]
* Crude support for examining dynamic libraries.
* som.c (som_object_setup): Set DYNAMIC flag for SHL_MAGIC and
DL_MAGIC objects.
(som_prep_headers): Preserve the system_id for DYNAMIC objects.
Use SHL_MAGIC as the magic number of the DYNAMIC flag is set.
Write exec headers for DYNAMIC objects.
(som_begin_writing): DYNAMIC objects have the same alignment
restrictions as D_PAGED objects.
(bfd_section_from_som_symbol): Treat DYNAMIC objects like EXEC_P
objects.
(object_flags): Add DYNAMIC.
Jeff Law [Wed, 6 Apr 1994 03:35:23 +0000 (03:35 +0000)]
* gdb.disasm/hppa.exp (fcmp_tests): Break up into two halves
to avoid expect lossage.
(fmem_LRbug_tests): Likewise.
* gdb.disasm/hppa.s: Corresponding changes.
Jeff Law [Wed, 6 Apr 1994 03:06:25 +0000 (03:06 +0000)]
* gdb.disasm/hppa.exp: Rework escape sequences and end-of-line
conditions to work with latest dejagnu/expect.
Jeff Law [Wed, 6 Apr 1994 01:11:08 +0000 (01:11 +0000)]
Fix typo in last change.
Jeff Law [Wed, 6 Apr 1994 00:56:36 +0000 (00:56 +0000)]
* hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
then gets its real address into FUN and its GOT/DP value into %r19.
* tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
Stan Shebs [Wed, 6 Apr 1994 00:55:51 +0000 (00:55 +0000)]
Tue Apr 5 17:54:07 1994 Stan Shebs (shebs@andros.cygnus.com)
* hosts/mpw.h (CLOSE_BEFORE_UNLINK): Define.
Stan Shebs [Wed, 6 Apr 1994 00:53:20 +0000 (00:53 +0000)]
Tue Apr 5 17:48:52 1994 Stan Shebs (shebs@andros.cygnus.com)
* i386lynx.c, sparclynx.c (NAME): Remove embedded whitespace in
macro uses, confuses some non-ANSI compilers.
Jeff Law [Wed, 6 Apr 1994 00:53:00 +0000 (00:53 +0000)]
* gdb.t15/funcargs.exp (finish from indirect call): No longer
expected to fail on the PA.
(backtrace in call with trampolines): Explicitly require main
to be frame #1 (no trampolines should show up in backtrace).
Jeff Law [Wed, 6 Apr 1994 00:51:50 +0000 (00:51 +0000)]
* hppa-tdep.c (frameless_function_invocation): If no unwind
descriptor was found, then assume this was not a frameless
function invocation.
(frame_saved_pc): If the saved PC is in a linker stub, then
return the return address which the linker stub will return to.
Stan Shebs [Wed, 6 Apr 1994 00:13:43 +0000 (00:13 +0000)]
Tue Apr 5 16:22:19 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-configure (BFD_MACHINES): Insert into Makefile if set.
Jeff Law [Tue, 5 Apr 1994 22:50:42 +0000 (22:50 +0000)]
* som.c (som_bfd_free_cached_info): Add missing PARAMS decl.
Don't free anything if we don't have a bfd_object.
(som_close_and_cleanup): Call som_bfd_free_cached_info.
Jeff Law [Tue, 5 Apr 1994 22:31:21 +0000 (22:31 +0000)]
* xm-hppab.h: Never define USG.
* xm-hppah.h: Always define USG.
Jeff Law [Tue, 5 Apr 1994 22:28:21 +0000 (22:28 +0000)]
* gdb.t00/default.exp: Use "exp_continue" rather than obsolete
"continue -expect".
* gdb.t06/break.exp: Likewise.
* gdb.t07/watchpoint.exp: Likewise.
* gdb.t13/bitfields.exp: Likewise.
* gdb.t15/{funcargs,return}.exp: Likewise.
* gdb.stabs/weird.exp: Likewise.
* config/{mips,udi}-gdb.exp: Likewise.
Jeff Law [Tue, 5 Apr 1994 22:21:55 +0000 (22:21 +0000)]
* gdb.t00/default.exp: Use "exp_continue" rather than obsolete
"continue -expect".
* gdb.t06/break.exp: Likewise.
* gdb.t07/watchpoint.exp: Likewise.
* gdb.t13/bitfields.exp: Likewise.
* gdb.t15/{funcargs,return}.exp: Likewise.
* gdb.stabs/weird.exp: Likewise.
* config/{mips,udi}-gdb.exp: Likewise.
Jeff Law [Tue, 5 Apr 1994 22:17:03 +0000 (22:17 +0000)]
* hppa.sed: Enclose comments within a sed command to avoid
losing with the old OSF1 sed.
Per Bothner [Tue, 5 Apr 1994 20:10:31 +0000 (20:10 +0000)]
* values.c (unpack_long, value_from_longest),
valarith.c (value_binop): Allow TYPE_CODE_RANGE.