deliverable/binutils-gdb.git
28 years ago(arc_files): Add cfg-ml-com.in.
David Edelsohn [Sun, 23 Jul 1995 06:12:31 +0000 (06:12 +0000)] 
(arc_files): Add cfg-ml-com.in.

28 years ago * defs.h (ATTR_FORMAT): Disable if ANSI_PROTOTYPES is not defined.
Jeff Law [Sun, 23 Jul 1995 05:47:32 +0000 (05:47 +0000)] 
* defs.h (ATTR_FORMAT): Disable if ANSI_PROTOTYPES is not defined.

28 years agoAdd R_PPC_SDAREL relocation.
Michael Meissner [Sat, 22 Jul 1995 02:59:48 +0000 (02:59 +0000)] 
Add R_PPC_SDAREL relocation.

28 years ago(multi-do, multi-clean): Add comment regarding @-signs.
David Edelsohn [Sat, 22 Jul 1995 01:27:06 +0000 (01:27 +0000)] 
(multi-do, multi-clean): Add comment regarding @-signs.

28 years ago * lynx-nat.c (child_thread_alive): New function. Somehow I
Jeff Law [Fri, 21 Jul 1995 23:52:45 +0000 (23:52 +0000)] 
    * lynx-nat.c (child_thread_alive): New function.  Somehow I
        forgot to check this in with all the other thread_alive changes.

28 years agoRewrite so Makefiles do not reference undefined variables.
David Edelsohn [Fri, 21 Jul 1995 23:31:44 +0000 (23:31 +0000)] 
Rewrite so Makefiles do not reference undefined variables.

28 years agoDelete extra semi-colons.
David Edelsohn [Fri, 21 Jul 1995 21:12:18 +0000 (21:12 +0000)] 
Delete extra semi-colons.

28 years agoAdd some comments.
David Edelsohn [Fri, 21 Jul 1995 19:03:53 +0000 (19:03 +0000)] 
Add some comments.

28 years agoRename config-{com,pos}.multi to cfg-ml-{com,pos}.in.
David Edelsohn [Fri, 21 Jul 1995 18:17:42 +0000 (18:17 +0000)] 
Rename config-{com,pos}.multi to cfg-ml-{com,pos}.in.

28 years ago * config-com.multi: New file.
David Edelsohn [Fri, 21 Jul 1995 17:42:32 +0000 (17:42 +0000)] 
* config-com.multi: New file.
* config-pos.multi: New file.

28 years ago * gdb.base/gdbvars.exp: Expect zero or more additional cr-lf
Jeff Law [Fri, 21 Jul 1995 17:42:14 +0000 (17:42 +0000)] 
* gdb.base/gdbvars.exp: Expect zero or more additional cr-lf
sequences to be echo'd by gdb when using gdb_test.
* gdb.chill/chexp.exp: Likewise.
* gdb.fortran/exprs.exp: Likewise

28 years ago * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new (ignored)
Jeff Law [Fri, 21 Jul 1995 04:49:23 +0000 (04:49 +0000)] 
    * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new (ignored)
        argument.
        * elf32-hppa.h: Corresponding change.

28 years ago * somread.c (som_symtab_read): Add unsatisfied common symbols to
Jeff Law [Fri, 21 Jul 1995 04:26:39 +0000 (04:26 +0000)] 
* somread.c (som_symtab_read): Add unsatisfied common symbols to
the minimal symbol table.  All common symbols are "unsatisfied"
when -E is passed to the linker.

mentor-7462

28 years agofix some compilation problems
Ken Raeburn [Thu, 20 Jul 1995 23:11:44 +0000 (23:11 +0000)] 
fix some compilation problems

28 years ago * core.c (get_src_info): Cast arg 7 of bfd_find_nearest_line
Fred Fish [Thu, 20 Jul 1995 22:13:40 +0000 (22:13 +0000)] 
* core.c (get_src_info): Cast arg 7 of bfd_find_nearest_line
to proper type of "unsigned int *".

28 years ago * top.c (show_endian): Cast first arg of printf_unfiltered to
Fred Fish [Thu, 20 Jul 1995 22:04:37 +0000 (22:04 +0000)] 
* top.c (show_endian): Cast first arg of printf_unfiltered to
correct type of "char *".

28 years ago * lynx-nat.c (child_wait): A thread_id of zero from wait apparently
Jeff Law [Thu, 20 Jul 1995 21:25:12 +0000 (21:25 +0000)] 
    * lynx-nat.c (child_wait): A thread_id of zero from wait apparently
        means the process is single threaded, so there's no need to add
        it to the thread list.  Handle case where multi-threaded process
        reverts back to a single-threaded process.

28 years ago * gdbserver/low-hppabsd.c: Remove error declaration.
Jeff Law [Thu, 20 Jul 1995 21:04:29 +0000 (21:04 +0000)] 
* gdbserver/low-hppabsd.c: Remove error declaration.
* gdbserver/low-sparc.c: Likewise.
* gdbserver/low-sun3.c: Likewise.
* gdbserver/server.h: Remove error and fatal declaration.
* gdbserver/utils.c (error): Update to be compatable with recent
changes in defs.h.
(fatal): Likewise.

28 years agoldmain.c (constructor_callback): Allocate set_name in stack frame, rather than
Ken Raeburn [Thu, 20 Jul 1995 20:35:03 +0000 (20:35 +0000)] 
ldmain.c (constructor_callback): Allocate set_name in stack frame, rather than
always calling alloca with a fixed size.

28 years ago * gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
Jeff Law [Thu, 20 Jul 1995 20:33:39 +0000 (20:33 +0000)] 
    * gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
        after the inferior gdb has started.
'cuz lynx may take a couple minutes to start the inferior gdb...

        * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf
        after each command.
        * gdb.base/funcargs.exp: Likewise.
        * gdb.base/gdbvars.exp: Likewise.
        * gdb.base/interrupt.exp: Likewise.
        * gdb.base/list.exp: Likewise.
        * gdb.base/watchpoint.exp: Likewise.
        * gdb.c++/demangle.exp: Likewise.
        * gdb.c++/inherit.exp: Likewise.
        * gdb.chill/chexp.exp: Likewise.
        * gdb.fortran/exprs.exp: Likewise.
Just in case we can't get a version of expect that sets the tty modes
right on lynx to avoid this problem.

28 years ago * hosts/i386v4.h (getgid, getuid): Change prototypes to be
Fred Fish [Thu, 20 Jul 1995 19:57:07 +0000 (19:57 +0000)] 
* hosts/i386v4.h (getgid, getuid):  Change prototypes to be
compatible with Unixware 1.x and Unixware 2.x, and probably other
i386 svr4 versions as well.

28 years ago * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscall
Jeff Law [Thu, 20 Jul 1995 19:21:28 +0000 (19:21 +0000)] 
* gdb.base/watchpoint.exp: Disable watchpoint triggered in syscall
test if we can't handle IO to/from the inferior.

28 years ago * gdb.c++/misc.exp: Always check for a program already being
Jeff Law [Thu, 20 Jul 1995 19:03:51 +0000 (19:03 +0000)] 
* gdb.c++/misc.exp: Always check for a program already being
started after sending a "run" command to gdb.

28 years ago * gdb.base/twice.exp: Start with a fresh gdb.
Jeff Law [Thu, 20 Jul 1995 18:52:10 +0000 (18:52 +0000)] 
* gdb.base/twice.exp: Start with a fresh gdb.

28 years ago * gdb.chill/chexp.exp: Remove skip_chill_tests check; these tests
Jeff Law [Thu, 20 Jul 1995 18:50:31 +0000 (18:50 +0000)] 
* gdb.chill/chexp.exp: Remove skip_chill_tests check; these tests
only depend on gdb's expression code, not the chill runtime.

28 years ago * gdb.base/return.c: Put return values into variables so we
Jeff Law [Thu, 20 Jul 1995 18:43:53 +0000 (18:43 +0000)] 
* gdb.base/return.c: Put return values into variables so we
can have gdb print them rather than depending on the program
to print them.
* gdb.base/return.exp: Corresponding changes.

28 years ago * lib/gdb.exp: Provide default value for noinferiorio.
Jeff Law [Thu, 20 Jul 1995 18:27:55 +0000 (18:27 +0000)] 
* lib/gdb.exp: Provide default value for noinferiorio.
* gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
the inferior.

28 years ago* targets.c (bfd_target_vector): Since armpe and armpei have been split into
Ken Raeburn [Thu, 20 Jul 1995 17:56:18 +0000 (17:56 +0000)] 
* targets.c (bfd_target_vector): Since armpe and armpei have been split into
big- and little-endian variants, list all of them, instead of the
now-nonexistant armpe[i]_vec.

28 years ago * gdb.base/break.exp: Always check for a program already being
Jeff Law [Thu, 20 Jul 1995 17:50:05 +0000 (17:50 +0000)] 
* gdb.base/break.exp: Always check for a program already being
started after sending a "run" command to gdb.
(text_next_with_recursion): Don't check the output from the
program's printf statement.  Instead just make sure the program
exited.

28 years ago * gdb.base/commands.exp: Protect tests which need arguments with
Jeff Law [Thu, 20 Jul 1995 17:41:18 +0000 (17:41 +0000)] 
* gdb.base/commands.exp: Protect tests which need arguments with
$noargs conditionals.

28 years ago* configure.in (arm-*-riscix*): Don't set emulation.
Ken Raeburn [Thu, 20 Jul 1995 17:38:59 +0000 (17:38 +0000)] 
* configure.in (arm-*-riscix*): Don't set emulation.

28 years ago* config/tc-m68k.c (md_convert_frag): Rename argument seg to sec, since seg is
Ken Raeburn [Thu, 20 Jul 1995 17:17:32 +0000 (17:17 +0000)] 
* config/tc-m68k.c (md_convert_frag): Rename argument seg to sec, since seg is
a macro name in this file.

28 years ago * gdb.base/printcmds.exp: Adjust expect patterns for addresses
Peter Schauer [Thu, 20 Jul 1995 05:54:31 +0000 (05:54 +0000)] 
* gdb.base/printcmds.exp:  Adjust expect patterns for addresses
of structure member arrays to match gdb/valops.c:value_addr change.

28 years ago * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to
Peter Schauer [Thu, 20 Jul 1995 05:53:28 +0000 (05:53 +0000)] 
* config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM):  Define to
correctly map floating point registers numbers.

28 years ago * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to
Peter Schauer [Thu, 20 Jul 1995 05:52:42 +0000 (05:52 +0000)] 
* config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM):  Define to
correctly map floating point registers numbers.

* dwarfread.c (locval, new_symbol):  Handle variables that are
optimized out.

* mdebugread.c:  Replace all uses of builtin_type_* with
mdebug_type_*. Define and initialize mdebug_type_*.

* serial.h (serial_close):  Add additional argument `really_close'.
(SERIAL_CLOSE):  Update serial_close call accordingly.
(SERIAL_UN_FDOPEN):  Use serial_close to handle refcnt properly.
* serial.c (serial_close):  Handle `really_close'.
* serial.h (scb_base):  Moved to serial.c, made static.

* valops.c (value_addr):  Don't coerce arrays.
(typecmp):  Coerce arrays instead of calling value_addr if necessary.

28 years ago * elf.c (bfd_section_from_phdr): Set lma based on p_paddr.
Ian Lance Taylor [Thu, 20 Jul 1995 04:10:18 +0000 (04:10 +0000)] 
* elf.c (bfd_section_from_phdr): Set lma based on p_paddr.
(elf_fake_sections): Set sh_addr based on lma, not vma.
PR 7478.

28 years ago From Richard Earnshaw (rearnsha@armltd.co.uk):
Stan Shebs [Thu, 20 Jul 1995 02:12:09 +0000 (02:12 +0000)] 
From Richard Earnshaw (rearnsha@armltd.co.uk):
* gdb.texinfo (convenience variables): Document $_exitcode.
(quit): Document optional expression to use as exit code.

28 years ago From Richard Earnshaw (rearnsha@armltd.co.uk):
Stan Shebs [Thu, 20 Jul 1995 02:09:30 +0000 (02:09 +0000)] 
From Richard Earnshaw (rearnsha@armltd.co.uk):
* infrun.c (wait_for_inferior): Set the convenience variable
$_exitcode to the termination code of the inferior.
* top.c (quit_command): Accept optional expression to use
as parameter to exit().

28 years ago * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
David Edelsohn [Wed, 19 Jul 1995 23:23:31 +0000 (23:23 +0000)] 
* emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
(LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.

28 years ago * config/obj-coff.h (TE_PE): Delete.
David Edelsohn [Wed, 19 Jul 1995 23:18:57 +0000 (23:18 +0000)] 
* config/obj-coff.h (TE_PE): Delete.
* config/tc-arm.h (BYTE_ORDER): Delete.
(TARGET_FORMAT): Provide value for OBJ_COFF and TE_PE.
(ARM_BI_ENDIAN): Define if OBJ_COFF and TE_PE.
* config/tc-arm.c (byte_order): Delete.
(md_number_to_chars): Reference target_big_endian, not byte_order.
(md_chars_to_number): Likewise.
(md_longopts): Add -EB/-EL if ARM_BI_ENDIAN.
(md_parse_options): Recognize -EB/-EL.
(md_show_usage): List -EB/-EL.

28 years ago * coff-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.
David Edelsohn [Wed, 19 Jul 1995 23:02:21 +0000 (23:02 +0000)] 
* coff-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.
* configure.in (armpe_vec, armpei_vec): Add bi-endian support.
* configure: "regenerated".
* pe-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.
(TARGET_LITTLE_NAME, TARGET_BIG_NAME): Replaces TARGET_NAME.
* pei-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.
(TARGET_LITTLE_NAME, TARGET_BIG_NAME): Replaces TARGET_NAME.
* targets.c (armpe_vec, armpei_vec): Deleted.
(armpe_little_vec, armpe_big_vec, armpei_little_vec, armpei_big_vec):
Added.
* config/arm-pe.mt (DEFAULT_VECTOR): Default is armpe_little_vec.
(SELECT_VECS): Add bi-endian support.

28 years ago * remote.c (remote_wait): When getting registers, check endianess and
Kung Hsu [Wed, 19 Jul 1995 21:45:45 +0000 (21:45 +0000)] 
    * remote.c (remote_wait): When getting registers, check endianess and
        do conversion if necessary.

28 years ago * gasp.c (process_assigns): Use toupper before comparing against
Ian Lance Taylor [Wed, 19 Jul 1995 16:22:14 +0000 (16:22 +0000)] 
* gasp.c (process_assigns): Use toupper before comparing against
upper case letter.
(whatcond): Likewise.
PR 7281.

28 years ago * config/tc-sh.c (sh_relax): Rename from relax, and make global.
Ian Lance Taylor [Wed, 19 Jul 1995 16:14:49 +0000 (16:14 +0000)] 
* config/tc-sh.c (sh_relax): Rename from relax, and make global.
Renamed all uses.
(insert): Pass a size of 2, not 4.
(build_relax): Remove unused len variable.
(md_show_usage): Mention -little option.
(md_convert_frag): Add segT argument.  Rewrite to generate relocs
rather than to generate complete instructions here.
(md_apply_fix): Adjust and clarify R_SH_PCRELIMM8BY4 case for
changes in insert and md_pcrel_from.  Add cases for R_SH_PCDISP
and R_SH_PCDISP8BY2.
(md_pcrel_from): Don't subtract 1, add 2.
(tc_coff_fix2rtype): Remove.
(sh_coff_reloc_mangle): New function.
* config/tc-sh.h (TC_COFF_FIX2RTYPE): Just return fx_r_type.
(sh_relax): Declare.
(TC_COUNT_RELOC): If relaxing, count PC relative relocs.
(TC_RELOC_MANGLE): Define.
(sh_coff_reloc_mangle): Declare.
(tc_coff_sizemachdep): Declare.
* tc.h (md_convert_frag): Add segT parameter to non BFD_ASSEMBLER
declaration.
* write.c (cvt_frag_to_fill): Add sec argument to non
BFD_ASSEMBLER version.  Pass it to md_convert_frag.
(write_object_file): Pass SEG_TEXT to cvs_frag_to_fill.
* config/obj-coff.c (do_relocs_for): Pass segment info to
TC_RELOC_MANGLE.
(fixup_mdeps): Pass segment type to md_convert_frag.
* config/tc-a29k.c (md_convert_frag): Add segT argument.
* config/tc-h8300.c (md_convert_frag): Likewise.
* config/tc-h8500.c (md_convert_frag): Likewise.
* config/tc-i386.c (md_convert_frag): Likewise.
* config/tc-i860.c (md_convert_frag): Likewise.
* config/tc-i960.c (md_convert_frag): Likewise.
* config/tc-m68k.c (md_convert_frag): Likewise.
* config/tc-m88k.h (md_convert_frag): Likewise.
* config/tc-ns32k.c (md_convert_frag): Likewise.
* config/tc-rce.c (md_convert_frag): Likewise.
* config/tc-tahoe.c (md_convert_frag): Likewise.
* config/tc-vax.c (md_convert_frag): Likewise.
* config/tc-w65.c (md_convert_frag): Likewise.
* config/tc-z8k.c (md_convert_frag): Likewise.
* config/tc-h8300.h (TC_RELOC_MANGLE): Add segment argument.
* config/tc-h8500.h (TC_RELOC_MANGLE): Likewise.
* config/tc-rce.h (TC_RELOC_MANGLE): Likewise.
* config/tc-w65.h (TC_RELOC_MANGLE): Likewise.
* config/tc-z8k.h (TC_RELOC_MANGLE): Likewise.

28 years agovms fixes from pat rankin
Ken Raeburn [Tue, 18 Jul 1995 21:50:24 +0000 (21:50 +0000)] 
vms fixes from pat rankin

28 years ago * gdbserver/low-hppabsd.c: New file.
Jeff Law [Tue, 18 Jul 1995 06:49:21 +0000 (06:49 +0000)] 
    * gdbserver/low-hppabsd.c: New file.
        * gdbserver/Makefile.in (SFILES): Add low-hppabsd.c.
        * config/hppabsd.mh (XDEPFILES): Add ser-tcp.o
        (GDBSERVER_DEPFILES): Add low-hppabsd.o
        * config/hppaosf.mh: LIkewise.

Needed this for the gdbserver framework development.  Trying to avoid doing
development work on lynx for the obvious reasons.

28 years ago * gdbserver/low-hppabsd.c: New file.
Jeff Law [Tue, 18 Jul 1995 06:46:49 +0000 (06:46 +0000)] 
    * gdbserver/low-hppabsd.c: New file.
        * gdbserver/Makefile.in (SFILES): Add low-hppabsd.c.
        * config/hppabsd.mh (XDEPFILES): Add ser-tcp.o
        (GDBSERVER_DEPFILES): Add low-hppabsd.o
        * config/hppaosf.mh: LIkewise.

Needed this for the gdbserver framework development.  Trying to avoid doing
development work on lynx for the obvious reasons.

28 years ago * dache.c (struct dcache_block): Change data member from unsigned char
Fred Fish [Tue, 18 Jul 1995 04:38:06 +0000 (04:38 +0000)] 
* dache.c (struct dcache_block):  Change data member from unsigned char
to char, since everything passed in and out of dcache is char or casted
to appropriate type anyway.
(dcache_alloc):  Move assignment of db out of test and combine separate
tests into if-else.
(dcache_peek_byte):  Change ptr from unsigned char* to char*.
(dcache_peek_byte):  Remove now unnecessary cast in read_memory call.
(dcache_peek):  Change cast of incoming data arg.
(dcache_poke):  Change cast of addr of incoming data arg.
(dcache_info):  Mask data passed to printf_filtered to lsbyte only.
(dcache_info):  Change printf_filtered arg from "% 2x" to " %2x".
* target.c (debug_to_thread_alive): Change return type to int and
return zero, for type compatibility with other *_thread_alive funcs.
(cleanup_target): Change cast of ignore function to match type of the
to_thread_alive member.
* defs.h (error_hook): Add ATTR_NORETURN.
* defs.h (NORETURN, ATTR_NORETURN):  Switch from volatile to
__attribute__ method with gcc 2.7, to avoid gcc 2.6.3 bug.
* remote.c (remote_wait):  Cast first arg to strtol, strchr, and strncmp
to "const char *" from "unsigned char *".
(remote_wait):  Cast arg to putpkt and strcpy from "unsigned char *" to
"char *".
(remote_wait):  Change printf format for long arg from "%d" to "%ld".
(getpkt):  Remove unused variable "bp".
(remote_fetch_word, remote_store_word):  Ifdef out apparently unused
functions.
* breakpoint.c (watchpoint_check):  Removed unused variables
"saved_level" and "saved_frame".
* valops.c (value_arg_coerce):  Add other enum TYPE_CODE_* and
default cases to switch for completeness.
* infrun.c (wait_for_inferior):  Enclose "have_waited" label
in #ifdef that matches the one in which it is referenced.
* ser-unix.c (hardwire_noflush_set_tty_state):  Enclose otherwise
unused variable "state" in #ifdef that matches one in which it is
referenced.
* eval.c (evaluate_subexp_standard):  Remove unused variable "var".
* eval.c (evaluate_subexp_standard):  Remove unused variable "tmp_symbol".
* valarith.c (value_subscript):  Remove unused variable "lowerbound",
which is redeclared in a nested scope prior to use.
* printcmd.c (print_frame_nameless_args):  Use "%ld" to print long
arg, not "%d".
* {mem-break.c, remote-pa.c, remote.c, saber.suppress}:
Remove unused static var "check_break_insn_size".
* buildsym.c (finish_block):  Add other enum LOC_* and default
cases to switch for completeness.
ch-lang.c (type_lower_upper):  Removed unused label "retry".
Add other enum TYPE_* and default cases to switch for completeness.
* f-typeprint.c (f_type_print_args):  Ifdef out unused function
that may be used someday when Fortran support is complete.
* ch-valprint.c (chill_print_type_scalar):  Add other enum
TYPE_* and default cases to switch for completeness.
(chill_val_print):  Remove unused local var "high_bound" that
is redeclared in a nested scope prior to use.
(chill_var_print):  Use "%ld" to print long arg, not "%d".
* regex.c (re_compile_fastmap, re_match_2):  Add remaining enum types
and default to switches for completeness.
* minsyms.c (lookup_minimal_symbol_text): Delete unused variable
"trampoline_symbol".
(prim_record_minimal_symbol_and_info):  Return NULL rather than trash.
* elfread.c (elf_symtab_read):  Don't dereference NULL returns from
record_minimal_symbol_and_info.
* f-lang.c (saved_function_list_end):  Ifdef out unused variable
that may be used someday.
* f-valprint.c (f_val_print):  Remove unused local variable "straddr".

28 years ago * ldwrite.c (split_sections): Don't split the first input section
Ian Lance Taylor [Mon, 17 Jul 1995 17:59:27 +0000 (17:59 +0000)] 
* ldwrite.c (split_sections): Don't split the first input section
into a new output section.

28 years ago * stabsread.h (struct stab_section_list): Define.
Ian Lance Taylor [Mon, 17 Jul 1995 17:33:37 +0000 (17:33 +0000)] 
* stabsread.h (struct stab_section_list): Define.
(coffstab_build_psymtabs): Remove staboff and stabsize parameters.
Add textaddr, textsize, and stabs parameters.
* gdb-stabs.h (struct dbx_symfile_info): Remove text_sect field.
Add text_addr and text_size fields.
(DBX_TEXT_SECT): Don't define.
(DBX_TEXT_ADDR, DBX_TEXT_SIZE): Define.
* coffread.c: Include <ctype.h>.
(struct coff_symfile_info): Remove stabsect and stabindexsect
fields.  Add textaddr, textsize, and stabsects fields.
(coff_locate_sections): Record the address of the .text section,
and total the sizes of all sections with names beginning with
".text".  Don't bother to record a .stab.index section (COFF
doesn't use them).  Make a linked list of all sections with names
beginning with ".stab".
(coff_symfile_read): Adjust call to coffstab_build_psymtabs for
new parameters.
* dbxread.c (dbx_symfile_read): Use DBX_TEXT_ADDR and
DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
(dbx_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
DBX_TEXT_SECT.
(elfstab_build_psymtabs): Likewise.
(stabsect_build_psymtabs): Likewise.
(symbuf_sections, symbuf_left, symbuf_read): New static variables.
(fill_symbuf): If symbuf_sections is not NULL, read symbols from
multiple sections.
(coffstab_build_psymtabs): Remove staboffset and stabsize
parameters.  Add textaddr, textsize, and stabsects parameters.
Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT.  Handle
multiple stabs sections.
* os9kread.c (os9k_symfile_read):  Use DBX_TEXT_ADDR and
DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
(os9k_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
DBX_TEXT_SECT.
PR 7241.

28 years ago * remote-vx.c (vx_ops, vx_run_ops): Initialize new to_thread_alive
Ian Lance Taylor [Mon, 17 Jul 1995 17:09:48 +0000 (17:09 +0000)] 
* remote-vx.c (vx_ops, vx_run_ops): Initialize new to_thread_alive
field.

28 years ago * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeout
Jeff Law [Mon, 17 Jul 1995 16:14:48 +0000 (16:14 +0000)] 
* gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeout
cases.

28 years ago * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New files
Peter Schauer [Sat, 15 Jul 1995 08:59:36 +0000 (08:59 +0000)] 
* config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h:  New files
for OSF/1-3.x procfs support.

28 years ago * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New files
Peter Schauer [Sat, 15 Jul 1995 08:57:59 +0000 (08:57 +0000)] 
* config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h:  New files
for OSF/1-3.x procfs support.
* configure.in (alpha-dec-osf):  Use them when configuring
for OSF/1-3.x.
* configure:  Updated.
* target.c:  Include <string.h>.

28 years agoUse elf config file.
Michael Meissner [Sat, 15 Jul 1995 04:35:17 +0000 (04:35 +0000)] 
Use elf config file.

28 years agoAllow compiler to mark relocs that are ok for -mrelocatable.
Michael Meissner [Sat, 15 Jul 1995 04:10:31 +0000 (04:10 +0000)] 
Allow compiler to mark relocs that are ok for -mrelocatable.

28 years ago Add support for SPARC SunOS PIC:
Ian Lance Taylor [Sat, 15 Jul 1995 00:00:32 +0000 (00:00 +0000)] 
Add support for SPARC SunOS PIC:
* config/tc-sparc.h (sparc_pic_code): Always declare, not just
when OBJ_ELF.
(TC_RELOC_RTSYM_LOC_FIXUP): Define when OBJ_AOUT.
(tc_fix_adjustable): New definition for OBJ_AOUT.
* config/tc-sparc.c (sparc_pic_code): Always define, not just when
OBJ_ELF.
(md_apply_fix): Adjust reloc addend for OBJ_AOUT and PIC.  In
BFD_RELOC_32_PCREL_S2 case, don't increment val for an external
symbol when PIC.
(tc_gen_reloc): Generate different PIC relocs when OBJ_AOUT, as
well as when OBJ_ELF.
(md_shortopts): If OBJ_AOUT, include `k'.
(md_parse_option): If OBJ_AOUT, handle 'k'.
(md_show_usage): Mention -k if OBJ_AOUT, and -KPIC if OBJ_ELF.
(md_pcrel_from): Don't add in size for an external symbol when
PIC.

28 years ago * aoutx.h (KEEPIT): Change definition to udata.i.
Ian Lance Taylor [Fri, 14 Jul 1995 23:52:34 +0000 (23:52 +0000)] 
* aoutx.h (KEEPIT): Change definition to udata.i.
(KEEPITTYPE): Remove.
(NAME(aout,reloc_type_lookup)): Add cases to the
extended reloc type switch: SPARC_GOT10, SPARC_GOT13, SPARC_GOT22,
SPARC_PC10, SPARC_PC22, SPARC_WPLT30.
(NAME(aout,swap_std_reloc_out)): Don't bother to use stoi when
retrieving KEEPIT value.
(NAME(aout,swap_ext_reloc_out)): Likewise.  Also, only add in
output section VMA for section symbols, and check BSF_SECTION_SYM
to control whether to set r_extern to 1.

28 years ago* Makefile.in, configure.in: Use one variable, frags, to hold
J.T. Conklin [Fri, 14 Jul 1995 23:28:13 +0000 (23:28 +0000)] 
* Makefile.in, configure.in: Use one variable, frags, to hold
pathnames of makefile fragments.
* configure: regenerated.

28 years ago* sysdump.c (dh): Changed format of output to be 16 hex digits
J.T. Conklin [Fri, 14 Jul 1995 20:47:19 +0000 (20:47 +0000)] 
* sysdump.c (dh): Changed format of output to be 16 hex digits
followed by 16 ascii characters, similar to Emacs' hexl-mode,
to make it easier to read.

28 years ago * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
Ian Lance Taylor [Fri, 14 Jul 1995 20:11:43 +0000 (20:11 +0000)] 
* emultempl/mipsecoff.em (check_sections): Use %P, not %F.

28 years ago* config/tc-arc.c (byte_order): Provide explicit initial value.
David Edelsohn [Fri, 14 Jul 1995 17:31:30 +0000 (17:31 +0000)] 
* config/tc-arc.c (byte_order): Provide explicit initial value.

28 years ago* config/tc-arc.c (byte_order): Provide explicit initial value.
David Edelsohn [Fri, 14 Jul 1995 17:30:38 +0000 (17:30 +0000)] 
* config/tc-arc.c (byte_order): Provide explicit initial value.

Also delete entry for reverted -m{big,little}-endian patch.

28 years ago * syms.c: Fix comments so that `make info' works.
Ian Lance Taylor [Fri, 14 Jul 1995 17:23:07 +0000 (17:23 +0000)] 
* syms.c: Fix comments so that `make info' works.

28 years ago * elf32-mips.c (mips_elf_find_nearest_line): Set SEC_HAS_CONTENTS
Ian Lance Taylor [Fri, 14 Jul 1995 17:15:07 +0000 (17:15 +0000)] 
* elf32-mips.c (mips_elf_find_nearest_line): Set SEC_HAS_CONTENTS
in .mdebug section, in case backend linker has cleared it.

28 years ago * ld-undefined/undefined.exp: New test, to check reporting of
Ian Lance Taylor [Fri, 14 Jul 1995 17:11:53 +0000 (17:11 +0000)] 
* ld-undefined/undefined.exp: New test, to check reporting of
undefined symbols.
* ld-undefined/undefined.c: New file.

28 years ago * ldver.c (help): Update list of options to match currently
Ian Lance Taylor [Fri, 14 Jul 1995 16:12:26 +0000 (16:12 +0000)] 
* ldver.c (help): Update list of options to match currently
supported list.

28 years agoFix PPC_ADDR16_HA relocations
Michael Meissner [Fri, 14 Jul 1995 16:01:44 +0000 (16:01 +0000)] 
Fix PPC_ADDR16_HA relocations

28 years ago * procfs.c (procfs_ops): Fix typo in last change.
Jeff Law [Fri, 14 Jul 1995 15:51:51 +0000 (15:51 +0000)] 
* procfs.c (procfs_ops): Fix typo in last change.

28 years ago * config/tc-hppa.h (UNDEFINED_DIFFERENCE_OK): Define for SOM.
Jeff Law [Fri, 14 Jul 1995 03:19:38 +0000 (03:19 +0000)] 
    * config/tc-hppa.h (UNDEFINED_DIFFERENCE_OK): Define for SOM.
        * write.c (adjust_reloc_syms): Set sy_used_in_reloc for both
        symbols in a fixup where a defined symbol is subtracted from an
        undefined symbol (when UNDEFINED_DIFFERENCE_OK is defined).
        (fixup_segment): Do nothing for the difference of two symbols if
        UNDEFINED_DIFFERENCE_OK is defined.

28 years ago * som.c (hppa_som_gen_reloc_type): Choose a reasonable field
Jeff Law [Fri, 14 Jul 1995 03:15:15 +0000 (03:15 +0000)] 
    * som.c (hppa_som_gen_reloc_type): Choose a reasonable field
        selector relocation for the difference of two symbols.

28 years ago* srconv.c (wr_tr): Write out handcrafted tr block.
J.T. Conklin [Thu, 13 Jul 1995 22:43:48 +0000 (22:43 +0000)] 
* srconv.c (wr_tr): Write out handcrafted tr block.
(walk_tree_symbol): Use evallen and evalue instead of
vallen & value because of corresponding changes in
sysroff.info.

* sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
functions.

* sysroff.info (tr): the tr block is a special case --- a block
without contents --- which can't be handled by generated code.
(den, dpp): only first byte is present for DENend, DPPend.
(dsy): describe a conditional portion of block, rename some fields.
(dps): describe a conditional portion of block.
(dfl): removed.

* sysinfo.y (yyerror): write error message to standard error.

28 years agoUse "&" instead of "#" for immediate operands.
Ken Raeburn [Thu, 13 Jul 1995 22:39:38 +0000 (22:39 +0000)] 
Use "&" instead of "#" for immediate operands.

28 years ago * inftarg.c (child_thread_alive): New function to see if a
Jeff Law [Thu, 13 Jul 1995 21:40:22 +0000 (21:40 +0000)] 
    * inftarg.c (child_thread_alive): New function to see if a
        particular thread is still running.
        (child_ops): Add child_thread_alive entry.
        * remote.c (remote_thread_alive): New function to see if a
        particular thread is still alive.
        (remote_ops): Add remote_thread_alive.
        * target.c (dummy_target): Add dummy entry for thread_alive.
        (cleanup_target): de_fault thread_alive too.
        (update_current_target): INHERIT thread_alive too.
        (debug_to_thread_alive): New function.
        (setup_target_debug): Add debug_to_thread_alive.
        * target.h (struct target_ops): Add to_thread_alive.
        (target_thread_alive): Define.
        * thread.c (info_threads_command): Don't call kill; use
        target_thread_alive instead.
        * config/nm-lynx.h (CHILD_THREAD_ALIVE): Define.
        * gdbserver/low-lynx.c (mythread_alive): New function.
        (mywait): Don't restart any threads after a new thread notification,
        let the generic code handle it.
        * gdbserver/low-sparc.c (mythread_alive): Dummy version.
        * gdbserver/low-sun3.c (mythread_alive): Likewise.
        * gdbserver/server.c (main): Handle thread_alive requests.
        * gdbserver/server.h (mythread_alive): Declare.
        * corelow.c (core_ops): Add dummy entry for thread_alive.
        * exec.c (exec_ops): Likewise.
        * m3-nat.c (m3_ops): Likewise.
        * monitor.c (monitor_ops): Likewise.
        * procfs.c (procfs_ops): Likewise.
        * remote-arc.c (arc_ops): Likewise.
        * remote-array.c (array_ops): Likewise.
        * remote-e7000.c (e7000_ops): Likewise.
        * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
        * remote-mips.c (mips_ops): Likewise.
        * remote-pa.c (remote_hppro_ops): Likewise.
        * remote-sim.c (gdbsim_ops): Likewise.
        * sparcl-tdep.c (sparclite_ops): Likewise.

More lynx-6100 work

28 years agoFix debug info bugs for SGI
Jim Wilson [Thu, 13 Jul 1995 19:00:19 +0000 (19:00 +0000)] 
Fix debug info bugs for SGI
* ecoff.c (add_file): Don't collapse multiple .file commands into
a single file structure.
(ecoff_build_lineno): Set ilineBase to sum of previous file's
ilineBase and cline.

28 years ago * aoutx.h (NAME(aout,slurp_reloc_table)): Cast argument to size_t
Ian Lance Taylor [Thu, 13 Jul 1995 18:14:45 +0000 (18:14 +0000)] 
* aoutx.h (NAME(aout,slurp_reloc_table)): Cast argument to size_t
for malloc.
* coff-mips.c (mips_relocate_section): Likewise, for memmove.
(mips_relax_section): Likewise, for malloc.
* cofflink.c (process_embedded_commands): Likewise.
(_bfd_coff_final_link): Likewise.
* ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
(ecoff_final_link_debug_accumulate): Likewise.
(ecoff_indirect_link_order): Likewise, for memcpy and malloc.
(ecoff_reloc_link_order): Likewise, for malloc.
* ecofflink.c (ecoff_align_debug): Likewise, for memset.
(ecoff_write_symhdr): Likewise, for malloc.
* elf32-hppa.c (elf32_hppa_read_symext_info): Likewise.
* elf.c (assign_file_positions_except_relocs): Likewise, for
qsort.
* elf32-mips.c (mips_elf_read_ecoff_info): Likewise, for malloc.
* elfcode.h (elf_slurp_reloc_table): Likewise.
* elfcore.h (elf_corefile_note): Likewise.
* elflink.h (elf_link_add_object_symbols): Likewise.
(elf_link_read_relocs): Likewise.
(NAME(bfd_elf,size_dynamic_sections)): Likewise, for memset.
* i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
* ieee.c (do_with_relocs): Likewise.
* linker.c (default_indirect_link_order): Likewise, for malloc.
* nlmcode.h (nlm_object_p): Likewise.
(nlm_write_object_contents): Likewise.
* oasys.c (oasys_set_section_contents): Likewise, for memcpy.
* reloc.c (bfd_generic_get_relocated_section_contents): Likewise,
for malloc.
* section.c (bfd_get_section_contents): Likewise, for memcpy.
* srec.c (srec_get_section_contents): Likewise.
(srec_set_section_contents): Likewise.
* sunos.c (bfd_sunos_size_dynamic_sections): Likewise, for
realloc and memset.
(sunos_scan_relocs): Likewise, for malloc.
(sunos_scan_dynamic_symbol): Likewise, for realloc.
* syms.c (_bfd_generic_read_minisymbols): Likewise, for malloc.
* versados.c (versados_get_section_contents): Likewise, for
memcpy.

28 years ago * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
Ian Lance Taylor [Thu, 13 Jul 1995 17:57:53 +0000 (17:57 +0000)] 
* ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
it takes a size_t anyhow.
(exp_binop): Likewise.
(exp_trinop): Likewise.
(exp_unop): Likewise.
(exp_nameop): Likewise.
(exp_assop): Likewise.
* ldlang.c (lang_memory_region_lookup): Likewise.
(init_os): Likewise.
(ldlang_add_undef): Likewise.
(insert_pad): Likewise.
* ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
bfd_size_type.

28 years ago * Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
Ian Lance Taylor [Thu, 13 Jul 1995 17:50:55 +0000 (17:50 +0000)] 
* Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
(mostlyclean): Remove y.output.
(clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.

* nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
* objcopy.c (copy_object): Likewise.

28 years ago * nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
Ian Lance Taylor [Thu, 13 Jul 1995 14:50:08 +0000 (14:50 +0000)] 
* nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
(struct size_sym): Define.
(show_stats): New static variable.
(long_options): Add undocumented option "stats".
(main): Print memory stats if requested.
(sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
(numeric_forward): Use minisymbols rather than asymbols.
(non_numeric_forward): Likewise.
(size_forward1): Rename from size_forward.  Use minisymbols.
(size_forward2): New static function.
(sort_symbols_by_size): Take new arguments dynamic, size, and
symsizep.  Use minisymbols.  Don't store the size back in the
symbol; store in a newly allocate struct size_sym array.
(display_rel_file): Read minisymbols rather than asymbols.  Set
sort_* variables.  Call print_size_symbols if sorting by size.
(filter_symbols): Take new arguments dynamic and size.  Use
minisymbols.
(print_symbols): Likewise.  Call print_symbol for actual printing.
(print_size_symbols): New static function.
(print_symbol): New static function.
PR 5332.

28 years ago * targets.c (bfd_target): Add fields _read_minisymbols and
Ian Lance Taylor [Thu, 13 Jul 1995 14:46:06 +0000 (14:46 +0000)] 
* targets.c (bfd_target): Add fields _read_minisymbols and
_minisymbol_to_symbol.
(BFD_JUMP_TABLE_SYMBOLS): Add _read_minisymbols and
_minisymbol_to_symbol.
(bfd_read_minisymbols): Define.
(bfd_minisymbol_to_symbol): Define.
* syms.c (_bfd_generic_read_minisymbols): Define.
(_bfd_generic_minisymbol_to_symbol): Define.
* libbfd-in.h (_bfd_nosymbols_read_minisymbols): Define.
(_bfd_nosymbols_minisymbol_to_symbol): Define.
(_bfd_generic_read_minisymbols): Declare.
(_bfd_generic_minisymbol_to_symbol): Declare.
* bfd-in2.h: Rebuild.
* libbfd.h: Rebuild.
* aoutx.h (MINISYM_THRESHOLD): Define.
(NAME(aout,read_minisymbols)): New function.
(NAME(aout,minisymbol_to_symbol)): New function.
* libaout.h (NAME(aout,read_minisymbols)): Declare.
(NAME(aout,minisymbol_to_symbol)): Declare.
* aout-target.h (MY_read_minisymbols): Define.
(MY_minisymbol_to_symbol): Define.
* All targets: Define read_minisymbols and minisymbol_to_symbol.
PR 5332.

28 years ago * config/obj-coff.c (fixup_segment): Support MD_APPLY_FIX3.
Ian Lance Taylor [Thu, 13 Jul 1995 03:34:38 +0000 (03:34 +0000)] 
* config/obj-coff.c (fixup_segment): Support MD_APPLY_FIX3.

28 years ago * configure.in (configdirs): Remove gdb.chill from default list
Fred Fish [Wed, 12 Jul 1995 22:47:39 +0000 (22:47 +0000)] 
* configure.in (configdirs):  Remove gdb.chill from default list
of subdirs and then add it back in only if doing a native build.
The current chill compiler does not yet work in any cross build.

28 years agofix some compilation warnings from sun cc
Ken Raeburn [Wed, 12 Jul 1995 22:00:57 +0000 (22:00 +0000)] 
fix some compilation warnings from sun cc

28 years agofix more compilation bugs
Ken Raeburn [Wed, 12 Jul 1995 20:45:57 +0000 (20:45 +0000)] 
fix more compilation bugs

28 years ago * Revert all signal changes from Jul 6.
Fred Fish [Wed, 12 Jul 1995 17:27:40 +0000 (17:27 +0000)] 
* Revert all signal changes from Jul 6.
* gdb.base/{sigall.c signals.c}:  Define away signal() and alarm()
for sh-hms targets, allowing these tests to link, with no other
changes.  Testing is suppressed by setting "nosignals" in site.exp.

28 years ago * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
Ian Lance Taylor [Wed, 12 Jul 1995 15:37:12 +0000 (15:37 +0000)] 
* ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
declaration.
(ld_emulation_xfer_type): Add search parameter to
open_dynamic_archive entry point.
* ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
* ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
make non-static.  Change all callers to use new name.
(ldfile_open_file_search): Make static.  If entry is dynamic, call
ldemul_open_dynamic_archive.
(ldfile_open_file): Don't call ldemul_open_dynamic_archive.
* ldfile.h (ldfile_open_file_search): Don't declare.
(ldfile_try_open_bfd): Declare.
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Accept search parameter.  Don't search for a library, just look in
a single place.
* emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
Likewise.

28 years ago * objdump.c (dump_section_stabs): Only print each stabs section
Ian Lance Taylor [Wed, 12 Jul 1995 14:44:46 +0000 (14:44 +0000)] 
* objdump.c (dump_section_stabs): Only print each stabs section
once.
(compare_relocs): Make it clear to gcc that this always returns a
value.

28 years agoWed Jul 12 10:40:23 1995 H.J. Lu <hjl@nynexst.com>
Ian Lance Taylor [Wed, 12 Jul 1995 14:42:08 +0000 (14:42 +0000)] 
Wed Jul 12 10:40:23 1995  H.J. Lu  <hjl@nynexst.com>

* objcopy.c (simple_copy): Preserve errno on failure.
(smart_rename): Print error mesage if simple_copy fails.

28 years agoInitial autoconfiscation; attempting also to remove use of bfd's sysdep.h file.
Ken Raeburn [Wed, 12 Jul 1995 05:07:49 +0000 (05:07 +0000)] 
Initial autoconfiscation; attempting also to remove use of bfd's sysdep.h file.

28 years ago* libelf.h (elf_backend_data): Use unsigned, not unsigned char, for bitfields.
Ken Raeburn [Wed, 12 Jul 1995 04:29:47 +0000 (04:29 +0000)] 
* libelf.h (elf_backend_data): Use unsigned, not unsigned char, for bitfields.

28 years ago * elf.c (bfd_section_from_shdr): In case SHT_REL[A], only get the
Ian Lance Taylor [Wed, 12 Jul 1995 01:23:10 +0000 (01:23 +0000)] 
* elf.c (bfd_section_from_shdr): In case SHT_REL[A], only get the
        BFD section for the sh_link section if it is a SYMTAB section.
PR 7392.

28 years ago * aoutx.h (NAME(aout,link_add_symbols)): Don't bother to check
Ian Lance Taylor [Tue, 11 Jul 1995 21:22:17 +0000 (21:22 +0000)] 
* aoutx.h (NAME(aout,link_add_symbols)): Don't bother to check
that archives hold a.out objects.
* cf-i386lynx.c (coff_bfd_link_add_symbols): Don't define.
(lynx_link_add_symbols): Remove.
* cf-m68klynx.c (coff_bfd_link_add_symbols): Don't define.
(lynx_link_add_symbols): Remove.
* elflink.h (elf_bfd_link_add_symbols): Don't bother to check that
archives hold ELF objects.

28 years ago * archive.c (bfd_generic_archive_p): If the archive has a map, and
Ian Lance Taylor [Tue, 11 Jul 1995 21:12:41 +0000 (21:12 +0000)] 
* archive.c (bfd_generic_archive_p): If the archive has a map, and
the target was defaulted, but the first object in the archive can
not be matched with that target, then return a bad format error.

28 years ago * elf64-sparc.c (elf_sparc_howto_table): Set howto for WDISP16 to
Ian Lance Taylor [Tue, 11 Jul 1995 20:16:48 +0000 (20:16 +0000)] 
* elf64-sparc.c (elf_sparc_howto_table): Set howto for WDISP16 to
elf64_wdisp16_reloc.
(elf64_wdisp16_reloc): New static function.
(elf64_sparc_relocate_section): New static function.
(elf_backend_relocate_section): Define.
PR 7333.

28 years ago * libelf.h (struct elf_size_info): Change type of last argument to
Ian Lance Taylor [Tue, 11 Jul 1995 19:24:46 +0000 (19:24 +0000)] 
* libelf.h (struct elf_size_info): Change type of last argument to
swap_symbol_out from char * to PTR.
(bfd_elf32_swap_symbol_out): Update declaration.
(bfd_elf64_swap_symbol_out): Likewise.
* elfcode.h (elf_swap_symbol_out): Change type of cdst from char *
to PTR.
* elf.c (swap_out_syms): Cast to PTR, not char *, when calling
swap_symbol_out routine.
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Likewise.
(elf_link_output_sym): Likewise.
(elf_link_output_extsym): Likewise.
* elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Likewise.

28 years ago * doc/c-mips.texi: Document -m4010 and -mno-4010.
Ian Lance Taylor [Tue, 11 Jul 1995 18:32:16 +0000 (18:32 +0000)] 
* doc/c-mips.texi: Document -m4010 and -mno-4010.

28 years agoTue Jul 11 14:28:55 1995 Jeff Spiegel <jeffs@lsil.com>
Ian Lance Taylor [Tue, 11 Jul 1995 18:30:25 +0000 (18:30 +0000)] 
Tue Jul 11 14:28:55 1995  Jeff Spiegel  <jeffs@lsil.com>

* config/tc-mips.c (mips_4010): New static variable.
(interlocks): New static variable.
(md_begin): Check for a cpu of "r4010".  Set mips_4010 correctly.
If mips_4650 or mips_4010, set interlocks.
(append_insn): Check interlocks, not mips_4650.
(mips_emit_delays): Likewise.
(mips_ip): Only permit INSN_4010 instructions if mips_4010.
(md_longopts): Add "m4010" and "no-m4010".
(md_parse_option): Accept -mcpu=r4010.  Handle -m4010 and
-no-m4010.
(md_show_usage): Document -m4010 and -no-m4010.

28 years agoTue Jul 11 14:23:37 1995 Jeff Spiegel <jeffs@lsil.com>
Ian Lance Taylor [Tue, 11 Jul 1995 18:25:27 +0000 (18:25 +0000)] 
Tue Jul 11 14:23:37 1995  Jeff Spiegel  <jeffs@lsil.com>

* mips-opc.c (L1): Define.
(mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
and wb.

Tue Jul 11 11:49:49 1995  Ian Lance Taylor  <ian@cygnus.com>

* mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
if ISA 3 and addu otherwise, replacing or, since some MIPS chips
have multiple add units but only a single logical unit.

28 years ago * ecoff.c (struct efdr): Add new field fake.
Ian Lance Taylor [Tue, 11 Jul 1995 17:26:08 +0000 (17:26 +0000)] 
* ecoff.c (struct efdr): Add new field fake.
(init_file): Initialize fake.
(add_file): Add new parameter fake.  Change all callers.
(ecoff_build_debug): Don't warn about a missing .end for a fake
file.
PR 6509.

28 years agoTue Jul 11 12:29:49 1995 Rick Sladkey <jrs@world.std.com>
Ian Lance Taylor [Tue, 11 Jul 1995 16:31:39 +0000 (16:31 +0000)] 
Tue Jul 11 12:29:49 1995  Rick Sladkey  <jrs@world.std.com>

* elf.c (_bfd_elf_find_nearest_line): Handle the simple case where
there is no debugging information.

This page took 0.045271 seconds and 4 git commands to generate.