binutils-gdb.git
31 years ago * symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,
Jim Kingdon [Sun, 31 Oct 1993 18:54:28 +0000 (18:54 +0000)]
* symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,
coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c:
Change from using bfd target name to using the flavour.

31 years ago * config/tc-hppa.c (subspace_dictionary_chain): Add new ssd_defined
Jeff Law [Sun, 31 Oct 1993 18:49:26 +0000 (18:49 +0000)]
* config/tc-hppa.c (subspace_dictionary_chain): Add new ssd_defined
field.  Define SUBSPACE_DEFINED accessor macro.
(pa_subspace): Allow user to override subspace attributes for
built-in subspaces.  Set ssd_defined at the end of fcn -- that
way the attributes can only be changed once.  Pass newly allocated
name to is_defined_subspace, not a pointer to the input line.
Fix typo in space/subspace rework.
(is_defined_subspace): Delete unused 2nd arg.  All callers changed.

* config/tc-hppa.c (pa_import): If currently in the text segment
and a symbol is imported without type information, set BSF_FUNCTION
for the symbol.

31 years ago * paread.c: Remove comment about how we should use an "ordinary"
Jim Kingdon [Sun, 31 Oct 1993 15:56:44 +0000 (15:56 +0000)]
* paread.c: Remove comment about how we should use an "ordinary"
file format with an hppa suffix.  There is nothing ordinary about SOM.

31 years ago * objfiles.h, infcmd.c, symfile.c: Add comments about how various
Jim Kingdon [Sun, 31 Oct 1993 15:46:34 +0000 (15:46 +0000)]
* objfiles.h, infcmd.c, symfile.c: Add comments about how various
objfiles get created and when we should blow them away.

31 years ago* som.c: Add comment about how abort() on corrupt executable is evil.
Jim Kingdon [Sun, 31 Oct 1993 15:40:58 +0000 (15:40 +0000)]
* som.c: Add comment about how abort() on corrupt executable is evil.

31 years ago * write.c (relax_and_size_seg): Correct test to determine
Jeff Law [Sun, 31 Oct 1993 08:06:11 +0000 (08:06 +0000)]
* write.c (relax_and_size_seg): Correct test to determine
if the section's size was rounded up.

31 years ago * config/obj-som.h (obj_set_symbol_type): Define a hook so GAS
Jeff Law [Sun, 31 Oct 1993 07:48:41 +0000 (07:48 +0000)]
* config/obj-som.h (obj_set_symbol_type): Define a hook so GAS
can properly set all the SOM symbol types.
* config/tc-hppa.c (pa_symbol_type): New enum to represent the
symbol types which can be set from an IMPORT/EXPORT statement.
(pa_export_args): Set the pa_symbol_type type based on arguments.
If defined, call obj_set_symbol_type to pass this information on
to the BFD backend.

31 years ago * read.c (get_stab_string_offset): Set SEC_DEBUGGING for any
Jeff Law [Sun, 31 Oct 1993 07:38:33 +0000 (07:38 +0000)]
    * read.c (get_stab_string_offset): Set SEC_DEBUGGING for any
        stab section we make.
        (s_stab_generic): Likewise.

31 years agoAllow backends to override the value of the "fake" label.
Jeff Law [Sun, 31 Oct 1993 02:19:05 +0000 (02:19 +0000)]
Allow backends to override the value of the "fake" label.
See ChangeLog for the details.

31 years ago * config/tc-i386.h (DOT_LABEL_PREFIX): Delete.
Jeff Law [Sun, 31 Oct 1993 02:18:17 +0000 (02:18 +0000)]
    * config/tc-i386.h (DOT_LABEL_PREFIX): Delete.
        (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
        * config/tc-m68k.h (DOT_LABEL_PREFIX): Delete.
        (LOCAL_LABEL, FAKE_LABEL_NAME): Define.
        * config/te-sco386.h (DOT_LABEL_PREFIX): Delete.
        (LOCAL_LABEL, FAKE_LABEL_NAME): Define.

31 years ago * config/tc-hppa.h (FAKE_LABEL_NAME): Define as L$0\001 so it's
Jeff Law [Sun, 31 Oct 1993 02:13:49 +0000 (02:13 +0000)]
    * config/tc-hppa.h (FAKE_LABEL_NAME): Define as L$0\001 so it's
        known to be a local label.

31 years ago * expr.c (make_expr_symbol): Delete DOT_LABEL_PREFIX code
Jeff Law [Sun, 31 Oct 1993 02:13:34 +0000 (02:13 +0000)]
    * expr.c (make_expr_symbol): Delete DOT_LABEL_PREFIX code
        and instead simply use the string defined by FAKE_LABEL_NAME.
        (operand): Likewise.
        * read.c (s_stab_generic): Likewise.

31 years ago Rework space/subspace handling in PA code to fully support
Jeff Law [Sun, 31 Oct 1993 01:54:01 +0000 (01:54 +0000)]
Rework space/subspace handling in PA code to fully support
SOM spaces/subspaces.
* tc-hppa.c (USE_ALIASES): New object-format dependent define
to control the use of space/subspace name aliases.
(update_subspace): Accept space chain entry for containing space
as a new parameter.  All callers changed.
(pa_get_label): Use current_space rather than pa_segment_to_space.
(pa_define_label): Likewise.
(pa_undefine_label): Likewise.
(md_begin): Change into the (possibly modified) text_section.
(pa_parse_space_stmt): Create a new segment/space if create_flag
is true, and the space name is not one of the two predefined spaces.
(pa_subspace): Use current_space rather than a lookup via
pa_segment_to_space.  Reset BFD section flags as required by
the .subspace directive.  Likewise for the section alignment.
Pass the current space to update_subspace and create_new_subspace.
(pa_spaces_begin): Only use space/subspace aliases if USE_ALIASES
is true.  When not using aliases, create a BFD section for each
subspace encountered.  When not using aliases replace the default
text, data, and bss segments with new ones.
(create_new_subspace): When not using aliases each subspace has a
section/segment and subsegments are not needed, so set the subsegment
to zero.

31 years ago Rework space/subspace handling in PA code to fully support
Jeff Law [Sun, 31 Oct 1993 01:53:01 +0000 (01:53 +0000)]
Rework space/subspace handling in PA code to fully support
SOM spaces/subspaces.
* config/tc-hppa.c (USE_ALIASES): New object-format dependent define
to control the use of space/subspace name aliases.
(update_subspace): Accept space chain entry for containing space
as a new parameter.  All callers changed.
(pa_get_label): Use current_space rather than pa_segment_to_space.
(pa_define_label): Likewise.
(pa_undefine_label): Likewise.
(md_begin): Change into the (possibly modified) text_section.
(pa_parse_space_stmt): Create a new segment/space if create_flag
is true, and the space name is not one of the two predefined spaces.
(pa_subspace): Use current_space rather than a lookup via
pa_segment_to_space.  Reset BFD section flags as required by
the .subspace directive.  Likewise for the section alignment.
Pass the current space to update_subspace and create_new_subspace.
(pa_spaces_begin): Only use space/subspace aliases if USE_ALIASES
is true.  When not using aliases, create a BFD section for each
subspace encountered.  When not using aliases replace the default
text, data, and bss segments with new ones.
(create_new_subspace): When not using aliases each subspace has a
section/segment and subsegments are not needed, so set the subsegment
to zero.

31 years ago * gas/hppa/unsorted/unsorted.exp (ss_align): Remove OSF xfail.
Jeff Law [Sun, 31 Oct 1993 01:45:52 +0000 (01:45 +0000)]
    * gas/hppa/unsorted/unsorted.exp (ss_align): Remove OSF xfail.

        * gas/hppa/more.parse/parse.exp: Add new test.
        * gas/hppa/more.parse/ssbug.s: New test to make sure non-default
        * sections are handled correctly.

31 years ago * gas/hppa/more.parse/parse.exp: Add new test.
Jeff Law [Sun, 31 Oct 1993 01:41:59 +0000 (01:41 +0000)]
* gas/hppa/more.parse/parse.exp: Add new test.
* gas/hppa/more.parse/ssbug.s: New test to make sure non-default
sections are handled correctly.

31 years ago * config/tc-hppa.c (pa_parse_space_stmt): If needed, call
Jeff Law [Sat, 30 Oct 1993 23:11:31 +0000 (23:11 +0000)]
    * config/tc-hppa.c (pa_parse_space_stmt): If needed, call
        obj_set_section_attributes to pass space attributes to the
        BFD backend.
        (create_new_space): Likewise.
        (create_new_subspace): Likewise for subspace attributes using
        obj_set_subsection_attributes.
        (update_subspace): Likewise for subspace attributes using
        obj_set_subsection_attributes.

31 years ago * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
Jeff Law [Sat, 30 Oct 1993 23:00:34 +0000 (23:00 +0000)]
    * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
        for $TEXT$ and $PRIVATE$ from the default space structure.

31 years ago * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION
Jeff Law [Sat, 30 Oct 1993 22:55:19 +0000 (22:55 +0000)]
    * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION
        as appropriate for the given type.

31 years ago * config/tc-hppa.c (tc_gen_reloc): Preliminary stab at handling
Jeff Law [Sat, 30 Oct 1993 22:35:49 +0000 (22:35 +0000)]
    * config/tc-hppa.c (tc_gen_reloc): Preliminary stab at handling
        SOM relocations.

31 years ago * config/tc-hppa.c (pa_comm): Delete incorrect check for symbol
Jeff Law [Sat, 30 Oct 1993 22:02:53 +0000 (22:02 +0000)]
    * config/tc-hppa.c (pa_comm): Delete incorrect check for symbol
        redefinition.

31 years ago * config/obj-som.[ch]: New files for SOM support. Note SOM
Jeff Law [Sat, 30 Oct 1993 21:57:16 +0000 (21:57 +0000)]
    * config/obj-som.[ch]: New files for SOM support.  Note SOM
        support is not yet complete in GAS or BFD.

31 years ago * config/obj-som.[ch]: New files for SOM support in GAS.
Jeff Law [Sat, 30 Oct 1993 21:55:00 +0000 (21:55 +0000)]
* config/obj-som.[ch]: New files for SOM support in GAS.

31 years ago * config/ho-hppabsd.h: Delete IO* macros, they are defined in
Jeff Law [Sat, 30 Oct 1993 21:29:29 +0000 (21:29 +0000)]
    * config/ho-hppabsd.h:  Delete IO* macros, they are defined in
        stdio.h.  Delete declaration of free.  Include stdlib.h, unistd.h,
        and string.h.

31 years ago * gas/all/gas.exp: Disable (and fail) p1480.s for all PA targets.
Jeff Law [Sat, 30 Oct 1993 21:14:53 +0000 (21:14 +0000)]
    * gas/all/gas.exp: Disable (and fail) p1480.s for all PA targets.

31 years ago * symfile.c (reread_symbols): When re-reading symbols, do all the
Jim Kingdon [Sat, 30 Oct 1993 20:21:19 +0000 (20:21 +0000)]
* symfile.c (reread_symbols): When re-reading symbols, do all the
right operations ourself, rather than calling symbol_file_command.
If we re-read something, call clear_symtab_users not just
breakpoint_re_set.
* objfiles.h, objfiles.c (build_objfile_section_table): No longer
static.
* symfile.c (clear_symtab_users): Call clear_pc_function_cache.
* coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c
(*_symfile_offsets): Set objfile->num_sections.
* remote.c (remote_wait), symfile.c (syms_from_objfile):
Don't muck with objfile->num_sections now that all the symbol
readers set it.
* elfread.c: Clean up obsolete comment about handling only DWARF.
* paread.c: Remove comment about how we should use an "ordinary"
file format with an hppa suffix.  There is nothing ordinary about SOM.

31 years ago * config/i386/{i386m3.mh,i386mk.mh}, config/mips/mipsm3.mh,
Jim Kingdon [Sat, 30 Oct 1993 13:42:43 +0000 (13:42 +0000)]
* config/i386/{i386m3.mh,i386mk.mh}, config/mips/mipsm3.mh,
config/ns32k/ns32km3.mh: Change MMALLOC_LIB to MMALLOC.
* TODO: Update Mach stuff.

31 years ago * config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str"
Jeff Law [Sat, 30 Oct 1993 07:15:46 +0000 (07:15 +0000)]
    * config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str"
        to stab section name to get the stab string section name.  Pass
        the full name of the stab string section to get_stab_string_offset.
        * config/obj-elf.c (obj_elf_init_stab_section): Likewise.

31 years agoput objcopy in alphabetical order
David MacKenzie [Sat, 30 Oct 1993 02:24:39 +0000 (02:24 +0000)]
put objcopy in alphabetical order

31 years agoMore LynxOS support
Stan Shebs [Sat, 30 Oct 1993 00:16:25 +0000 (00:16 +0000)]
More LynxOS support

31 years ago * gas/hppa/more.parse/parse.exp: Fix typos.
Jeff Law [Fri, 29 Oct 1993 23:34:37 +0000 (23:34 +0000)]
* gas/hppa/more.parse/parse.exp: Fix typos.

31 years ago * gas/hppa/more.parse/calldatabug.s: Colonize.
Jeff Law [Fri, 29 Oct 1993 23:28:16 +0000 (23:28 +0000)]
* gas/hppa/more.parse/calldatabug.s: Colonize.

31 years agouse xmalloc instead of malloc
David MacKenzie [Fri, 29 Oct 1993 23:13:10 +0000 (23:13 +0000)]
use xmalloc instead of malloc

31 years ago * config/tc-hppa.c (md_begin): Disable "-R" option to fold
Jeff Law [Fri, 29 Oct 1993 21:09:43 +0000 (21:09 +0000)]
    * config/tc-hppa.c (md_begin): Disable "-R" option to fold
        text and data segments.  Warn user "-R" is unsupported on the
        PA.

31 years agoBack out of last change. Instead:
Jeff Law [Fri, 29 Oct 1993 21:08:19 +0000 (21:08 +0000)]
Back out of last change.  Instead:

        * config/tc-hppa.c (md_begin): Disable "-R" option to fold
        text and data segments.  Warn user "-R" is unsupported on the
        PA.

31 years ago * as.c (main): Disable "-R" option if NO_FOLD_DATA_AND_TEXT
Jeff Law [Fri, 29 Oct 1993 20:36:07 +0000 (20:36 +0000)]
    * as.c (main): Disable "-R" option if NO_FOLD_DATA_AND_TEXT
        is defined.
        * config/tc-hppa.h (NO_FOLD_DATA_AND_TEXT): Define.  Folding
        of text and data segments fails miserably on the PA.

31 years ago * config/tc-hppa.h (NO_FOLD_DATA_AND_TEXT): Define. Folding
Jeff Law [Fri, 29 Oct 1993 20:35:44 +0000 (20:35 +0000)]
    * config/tc-hppa.h (NO_FOLD_DATA_AND_TEXT): Define.  Folding
        of text and data segments fails miserably on the PA.

31 years ago * as.c (main): Disable "-R" option if NO_FOLD_DATA_AND_TEXT
Jeff Law [Fri, 29 Oct 1993 20:35:26 +0000 (20:35 +0000)]
    * as.c (main): Disable "-R" option if NO_FOLD_DATA_AND_TEXT
        is defined.

31 years ago* TODO: Add idea for "disassemble" with source.
Jim Kingdon [Fri, 29 Oct 1993 19:36:32 +0000 (19:36 +0000)]
* TODO: Add idea for "disassemble" with source.

31 years agomach 386 changes
David MacKenzie [Fri, 29 Oct 1993 19:30:11 +0000 (19:30 +0000)]
mach 386 changes

31 years agotest
David MacKenzie [Fri, 29 Oct 1993 19:15:57 +0000 (19:15 +0000)]
test

31 years agotest
David MacKenzie [Fri, 29 Oct 1993 19:05:11 +0000 (19:05 +0000)]
test

31 years ago * ld.h (flag_is_*): Removed macros.
Ian Lance Taylor [Fri, 29 Oct 1993 19:02:26 +0000 (19:02 +0000)]
* ld.h (flag_is_*): Removed macros.
* ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
Consistently check the BFD symbol flags directly, rather than
using file_is_* macros.

31 years ago * defs.h, findvar.c (extract_floating, store_floating): New functions.
Jim Kingdon [Fri, 29 Oct 1993 18:16:33 +0000 (18:16 +0000)]
* defs.h, findvar.c (extract_floating, store_floating): New functions.
* Move SWAP_TARGET_AND_HOST from defs.h to findvar.c because it is
now used only by extract_floating and store_floating.
* valprint.c (print_floating): Use unsigned arithmetic.  Use
extract_unsigned_integer instead of SWAP_TARGET_AND_HOST.
Change sizeof (float) to 4 and sizeof (double) to 8 (those are always
the relevant sizes for this code, which is in #ifdef IEEE_FLOAT).
* values.c (unpack_long, unpack_double, value_from_double),
valarith.c (value_binop), stabsread.c (define_symbol):
Use extract_floating and store_floating instead of
SWAP_TARGET_AND_HOST.
* config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*):
Use extract_floating and store_floating.
* config/m88k/tm-m88k.h: Add comments (it should be doing the same).
* i386-tdep.c (i386_extract_return_value),
* remote-nindy.c (nindy_store_registers): Use store_floating.

31 years agoRename a variable that conflicts with Lynx
Stan Shebs [Fri, 29 Oct 1993 18:15:01 +0000 (18:15 +0000)]
Rename a variable that conflicts with Lynx

31 years ago * bfd-in.h: Added commands for object file flag values.
Ian Lance Taylor [Fri, 29 Oct 1993 18:04:58 +0000 (18:04 +0000)]
* bfd-in.h: Added commands for object file flag values.
* bfd-in2.h: Rebuilt.
* elfcode.h (elf_object_p): If type is ET_DYN, set DYNAMIC flag,
not EXEC_P.
* bout.c, coff-h8300.c, coff-sh.c: Add BFD_IS_RELAXABLE to
object_flags field for target vector.
* aix386-core.c, aout-adobe.c, aout-target.h, bout.c, coff-a29k.c,
coff-alpha.c, coff-apollo.c, coff-h8300.c, coff-h8500.c,
coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c, coff-mips.c,
coff-rs6000.c, coff-sh.c, coff-we32k.c, coff-z8k.c, hpux-core.c,
ieee.c, mipsbsd.c, nlm-target.h, oasys.c, osf-core.c, som.c,
srec.c, tekhex.c, trad-core.c: Remove DYNAMIC from object_flags
field for target vector.

31 years ago * remote-sim.c (gdbsim_store_register): Change var name so
Steve Chamberlain [Fri, 29 Oct 1993 16:35:22 +0000 (16:35 +0000)]
* remote-sim.c (gdbsim_store_register):  Change var name so
it compiles with non-ANSI compilers.

31 years agoinitial mach3 386 support (not working yet)
David MacKenzie [Fri, 29 Oct 1993 15:28:30 +0000 (15:28 +0000)]
initial mach3 386 support (not working yet)

31 years ago* TODO: Add idea for "disassemble" with source.
Jim Kingdon [Fri, 29 Oct 1993 13:16:56 +0000 (13:16 +0000)]
* TODO: Add idea for "disassemble" with source.

31 years ago * Makefile.in (VERSION): Bump to 4.11.1 after release and cvs
Fred Fish [Fri, 29 Oct 1993 07:42:30 +0000 (07:42 +0000)]
* Makefile.in (VERSION):  Bump to 4.11.1 after release and cvs
tagging.

31 years ago * gas/hppa/{basic, more.parse, reloc, unsorted}: New directories.
Jeff Law [Fri, 29 Oct 1993 05:22:27 +0000 (05:22 +0000)]
    * gas/hppa/{basic, more.parse, reloc, unsorted}: New directories.
        * gas/hppa/*/*.exp: New test drivers.
        * gas/hppa/*/*.s: New test files.

31 years agoUnsorted PA tests.
Jeff Law [Fri, 29 Oct 1993 05:21:18 +0000 (05:21 +0000)]
Unsorted PA tests.

31 years agoQuick description of test directory contents.
Jeff Law [Fri, 29 Oct 1993 05:20:11 +0000 (05:20 +0000)]
Quick description of test directory contents.

31 years agoRelocation tests for the PA.
Jeff Law [Fri, 29 Oct 1993 05:14:07 +0000 (05:14 +0000)]
Relocation tests for the PA.

31 years agoAdditional parsing tests for PA gas.
Jeff Law [Fri, 29 Oct 1993 05:06:18 +0000 (05:06 +0000)]
Additional parsing tests for PA gas.

31 years ago * gas/hppa/basic: New directory.
Jeff Law [Fri, 29 Oct 1993 04:58:03 +0000 (04:58 +0000)]
    * gas/hppa/basic: New directory.
        * gas/hppa/basic/basic.exp: New test driver.
        * gas/hppa/basic/*.s: New test files.

31 years agoKeep hppa test directory.
Jeff Law [Fri, 29 Oct 1993 04:56:45 +0000 (04:56 +0000)]
Keep hppa test directory.

31 years agoBasic hppa GAS testsuite.
Jeff Law [Fri, 29 Oct 1993 04:55:51 +0000 (04:55 +0000)]
Basic hppa GAS testsuite.

31 years agoAdd new hppa directory.
Jeff Law [Fri, 29 Oct 1993 04:54:51 +0000 (04:54 +0000)]
Add new hppa directory.

31 years ago * ar.c (main): Always create the archive when quick appending,
Stan Shebs [Fri, 29 Oct 1993 02:48:19 +0000 (02:48 +0000)]
  * ar.c (main): Always create the archive when quick appending,
  even if no input files have been given.

31 years agoSparc COFF support
Stan Shebs [Fri, 29 Oct 1993 02:39:41 +0000 (02:39 +0000)]
Sparc COFF support

31 years agoSparc Lynx support
Stan Shebs [Fri, 29 Oct 1993 02:39:07 +0000 (02:39 +0000)]
Sparc Lynx support

31 years agoMinor changes, plus definitions for Sparc Lynx host.
Stan Shebs [Fri, 29 Oct 1993 02:03:32 +0000 (02:03 +0000)]
Minor changes, plus definitions for Sparc Lynx host.

31 years agoA number of minor Lynx-related changes, plus basic Sparc Lynx support.
Stan Shebs [Fri, 29 Oct 1993 02:01:43 +0000 (02:01 +0000)]
A number of minor Lynx-related changes, plus basic Sparc Lynx support.

31 years ago * TODO: Add section on Mach. Stop calling it a "bug list".
Jim Kingdon [Fri, 29 Oct 1993 01:29:21 +0000 (01:29 +0000)]
* TODO: Add section on Mach.  Stop calling it a "bug list".
Remove John's name and email address.  Remove item on "always"
("hook-stop" takes care of this).  Remove item on executables with
no symbols (this works on some machines, at least).  Remove item
about calling error() during symbol reading (I think all the important
ones have been cleaned up).  Revise items about signals and remote
systems.  Remove section on ^Z requiring several continues to make
it go (this now works.  Perhaps the item is based on confusion over
programs (like GDB itself) which catch SIGTSTP and then re-send
themselves the signal.  PR 2575 might contain relevant info).

31 years agoFirst cut at Sparc coff definition.
Stan Shebs [Fri, 29 Oct 1993 01:03:08 +0000 (01:03 +0000)]
First cut at Sparc coff definition.

31 years ago * config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
Jeff Law [Fri, 29 Oct 1993 01:01:35 +0000 (01:01 +0000)]
* config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
.align and .ALIGN directives.

31 years ago * NEWS: Note improvements in C++ support, preliminary thread
Fred Fish [Fri, 29 Oct 1993 00:52:25 +0000 (00:52 +0000)]
* NEWS:  Note improvements in C++ support, preliminary thread
implementation, and LynxOS native and target support for 386.

31 years agoclarify reason for -sort-common
David MacKenzie [Fri, 29 Oct 1993 00:30:51 +0000 (00:30 +0000)]
clarify reason for -sort-common

31 years ago * README: Add note from Peter Schauer about OSF/1 shared
Fred Fish [Fri, 29 Oct 1993 00:24:56 +0000 (00:24 +0000)]
* README:  Add note from Peter Schauer about OSF/1 shared
libraries.  Add note from Pace Willisson about configuring on BSDI
BSD/386 release 1.0.  Update gdb references to gdb 4.11.

31 years ago * config/tc-hppa.c (pa_parse_space_stmt): Advance
Jeff Law [Thu, 28 Oct 1993 23:14:33 +0000 (23:14 +0000)]
* config/tc-hppa.c (pa_parse_space_stmt): Advance
input_line_pointer when an invalid argument is encountered.

31 years agorun make check on stage 3 after *all* trees are built
Mark Eichin [Thu, 28 Oct 1993 21:54:44 +0000 (21:54 +0000)]
run make check on stage 3 after *all* trees are built

31 years ago * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
Ian Lance Taylor [Thu, 28 Oct 1993 21:43:14 +0000 (21:43 +0000)]
* a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.

31 years ago* NEWS: Add notes about Alpha and "set remotedebug" for UDI.
Jim Kingdon [Thu, 28 Oct 1993 21:25:31 +0000 (21:25 +0000)]
* NEWS: Add notes about Alpha and "set remotedebug" for UDI.

31 years ago * config/tc-hppa.c (pa_space): Do not report an error for a .space
Jeff Law [Thu, 28 Oct 1993 20:49:19 +0000 (20:49 +0000)]
* config/tc-hppa.c (pa_space): Do not report an error for a .space
directive which does not define a "well-known" space and does
not include a space number as an argument.

* config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
"defined", "loadable", "code_only" and "space_index" fields.
(pa_def_spaces): Correct initialization of the "spnum", "defined",
and "private" fields.

* write.h (struct fix): Add new tc_fix_data field for the various
backends to attach machine dependent fixup information to.
* write.c (fix_new_internal): Initialize new tc_fix_data field.
* config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
fx_next fields.
(hppa_find_hppa_fix): Delete unnecessary function.  Fix all
callers to get HPPA fixup information from the tc_fix_data field
in the GAS fixup.
(hppa_fix_root): Delete unnecessary variable.
(fix_new_hppa): Attach HPPA fixup data to the GAS fixup.

* config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
function.  Fix all callers.
(subspace_dictionary_chain): Delete unused ssd_start_sym field.

* config/tc-hppa.c (hppa_fix_adjustable): New function to determine
if a particular fixup is adjustable.
* config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
perform the real work.

* config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
of OBJ_XXX conditionals.
(MAX_RELOC_EXPANSION): Likewise.

* config/tc-hppa.c (log2): Renamed from is_power_of_2.  Fix all
callers. Now returns log2 (N) for positive N which are an exact
power of two or -1 for an error.

* config/tc-hppa.c (pa_callinfo): Range check values provided for
ENTRY_GR, ENTRY_FR and ENTRY_SR.  Properly adjust vaues before
inserting them into the unwind table.

* config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
(hppa_gen_reloc_type): New object format dependent macro.
(pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
conditional.  The code can (and will) be shared between SOM & ELF
formats in the near future.
(cons_fix_new_hppa, md_apply_fix_1): Likewise.
(pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
(tc_gen_reloc): Use hppa_gen_reloc rather than an object format
specific call.

* config/tc-hppa.c (pa_comm): Set the segment for a common symbol
to bfd_und_section.

* config/obj-elf.h (obj_elf_version): Add extern prototype.

* configure.in (hppa-*-bsd*): New configuration.
BFD is always used for GAS generating SOM objects.

* write.c (adjust_reloc_syms): Set sy_used_in_reloc if an
adjustment is rejected by the target machine.

* config/tc-hppa.c (pa_big_cons): Delete function and its
declaration.  All callers changed to use pa_cons.

* write.c (fixup_segment): Fix indention and open/close brace
problem.

From Pete Hoogenboom:
* config/tc-hppa.c (md_atof): Return a NULL on success rather than
an empty string.

31 years ago Merge with current Utah code:
Jeff Law [Thu, 28 Oct 1993 20:43:13 +0000 (20:43 +0000)]
Merge with current Utah code:
        * config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
        perform the real work.

        * config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
        of OBJ_XXX conditionals.
        (MAX_RELOC_EXPANSION): Likewise.

31 years ago Merge with current Utah code:
Jeff Law [Thu, 28 Oct 1993 20:41:49 +0000 (20:41 +0000)]
Merge with current Utah code:
        * config/tc-hppa.c (pa_space): Do not report an error for a .space
        directive which does not define a "well-known" space and does
        not include a space number as an argument.

        * config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
        "defined", "loadable", "code_only" and "space_index" fields.
        (pa_def_spaces): Correct initialization of the "spnum", "defined",
        and "private" fields.

* config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
        fx_next fields.
        (hppa_find_hppa_fix): Delete unnecessary function.  Fix all
        callers to get HPPA fixup information from the tc_fix_data field
        in the GAS fixup.
        (hppa_fix_root): Delete unnecessary variable.
        (fix_new_hppa): Attach HPPA fixup data to the GAS fixup.

        * config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
        function.  Fix all callers.
        (subspace_dictionary_chain): Delete unused ssd_start_sym field.

        * config/tc-hppa.c (hppa_fix_adjustable): New function to determine
        if a particular fixup is adjustable.

        * config/tc-hppa.c (log2): Renamed from is_power_of_2.  Fix all
        callers. Now returns log2 (N) for positive N which are an exact
        power of two or -1 for an error.

        * config/tc-hppa.c (pa_callinfo): Range check values provided for
        ENTRY_GR, ENTRY_FR and ENTRY_SR.  Properly adjust vaues before
        inserting them into the unwind table.

        * config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
        (hppa_gen_reloc_type): New object format dependent macro.
        (pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
        conditional.  The code can (and will) be shared between SOM & ELF
        formats in the near future.
        (cons_fix_new_hppa, md_apply_fix_1): Likewise.
        (pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
        (tc_gen_reloc): Use hppa_gen_reloc rather than an object format
        specific call.

        * config/tc-hppa.c (pa_comm): Set the segment for a common symbol
        to bfd_und_section.

        * config/tc-hppa.c (pa_big_cons): Delete function and its
        declaration.  All callers changed to use pa_cons.

        From Pete Hoogenboom:
        * config/tc-hppa.c (md_atof): Return a NULL on success rather than
        an empty string.

31 years ago gcc -Wall lint:
Ian Lance Taylor [Thu, 28 Oct 1993 20:36:48 +0000 (20:36 +0000)]
gcc -Wall lint:
* coff-h8300.c (h8300_reloc16_estimate): Declare return type.
Remove useless statement probably left by code copy.
* cpu-i960.c (compatible): Fully bracket matrix initializer.
* elf32-hppa.c (hppa_elf_build_arg_reloc_stub): Use bfd_xmalloc
rather than xmalloc.  Use realloc and check the return value
rather than xrealloc.
(hppa_elf_get_section_contents): Add some casts.
* elf32-i386.c (elf_i386_reloc_type_lookup): Remove unused
variable.  Add default case to switch.
* hp300hpux.c: Declare aout_32_write_syms.
* i386bsd.c, i386linux.c, netbsd386.c (N_SHARED_LIB): Define as 0
(definition from aout/aout64.h is always 0 anyhow).
* i386lynx.c (swap_std_reloc_in): Remove unused variable.
* ieee.c (ieee_write_id): length can never be negative.
(read_id): Likewise.
(ieee_archive_p): Remove unused variable.
* libcoff-in.h (bfd_perform_slip): Declare.
* libcoff.h: Rebuilt.
* oasys.c (oasys_write_sections): Remove zero initialization of
static structure.
* reloc16.c: Indentation change.

31 years ago * Makefile.in: Add dependency for $(EMULATION_OFILES).
Ian Lance Taylor [Thu, 28 Oct 1993 18:09:20 +0000 (18:09 +0000)]
* Makefile.in: Add dependency for $(EMULATION_OFILES).

31 years ago * config/tc-a29k.c (md_begin): When opcodes are mashed together in
Ian Lance Taylor [Thu, 28 Oct 1993 17:14:16 +0000 (17:14 +0000)]
* config/tc-a29k.c (md_begin): When opcodes are mashed together in
the table, require that the one without bit 0x1000000 set come
first.  Require further that it be case 'b' or 'P'.  The a29k
opcode table already meets these constraints.
(machine_ip): When handling case 'i' or 'A', make sure that the
appropriate opcode really exists by looking at the next entry in
the opcode table.

31 years ago * config/i386/{i386m3.mt,i386m3.mh},
Jim Kingdon [Thu, 28 Oct 1993 15:04:40 +0000 (15:04 +0000)]
* config/i386/{i386m3.mt,i386m3.mh},
config/mips/{mipsm3.mt,mipsm3.mh},
config/ns32k/{ns32km3.mt,ns32km3.mh}: Use correct names for TM_FILE
and XM_FILE.  Replace host files *mach3-xdep.o with native
files *m3-nat.o.  Replace host file os-mach3.o with native
file m3-nat.o.

31 years ago * valops.c (value_assign): Change bitfield code to use a buffer of
Jim Kingdon [Thu, 28 Oct 1993 14:27:39 +0000 (14:27 +0000)]
* valops.c (value_assign): Change bitfield code to use a buffer of
the correct size, rather than an int.

31 years ago * configure.in, config/i386-mach3.mt: Update for new configuration
Jim Kingdon [Thu, 28 Oct 1993 04:05:28 +0000 (04:05 +0000)]
* configure.in, config/i386-mach3.mt: Update for new configuration
(--with-targets and so on).
* hosts/i386mach3.h: Declare errno.
* targets.c: Declare i386mach3_vec.

31 years ago * config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
Ian Lance Taylor [Wed, 27 Oct 1993 22:23:16 +0000 (22:23 +0000)]
* config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
fixups.  Add 6 for long 7.3 case, 2 for short 7.2 case.

31 years ago * config/i386/{i386m3.mt,i386m3.mh}: Use correct names for TM_FILE
Jim Kingdon [Wed, 27 Oct 1993 22:06:52 +0000 (22:06 +0000)]
* config/i386/{i386m3.mt,i386m3.mh}: Use correct names for TM_FILE
and XM_FILE.  Replace host file i386mach3-xdep.o with native file
i386m3-nat.o.

31 years ago* stabs.texinfo (Class Names): New node.
Jim Kingdon [Wed, 27 Oct 1993 21:40:36 +0000 (21:40 +0000)]
* stabs.texinfo (Class Names): New node.

31 years ago * remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".
Jim Kingdon [Wed, 27 Oct 1993 20:35:25 +0000 (20:35 +0000)]
* remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".
* remote-mon.c: Remove commented out "set remotedebug" command.
* remote-nindy.c: Clean up comment about wanting alternative to
options specified on the GDB command line.

31 years ago * fork-child.c (fork_inferior): Set inferior_pid before calling
Jim Kingdon [Wed, 27 Oct 1993 19:30:27 +0000 (19:30 +0000)]
* fork-child.c (fork_inferior): Set inferior_pid before calling
init_trace_fun.  Move the code which gets us through the shell
to new function startup_inferior.
* inferior.h: Declare startup_inferior.
* procfs.c (procfs_init_inferior), inftarg.c (ptrace_him):
Call startup_inferior.
* m3-nat.c (m3_trace_him): Call intercept_exec_calls.
* config/nm-m3.h: Don't define STARTUP_INFERIOR.
* config/i386/tm-i386m3.h, config/ns32k/tm-ns32k.h,
config/mips/tm-mipsm3.h: Don't define START_INFERIOR_TRAPS_EXPECTED.

31 years ago* m68k-stub.c: Change vector 13 from SIGFPE to SIGBUS.
Jim Kingdon [Wed, 27 Oct 1993 18:48:50 +0000 (18:48 +0000)]
* m68k-stub.c: Change vector 13 from SIGFPE to SIGBUS.

31 years ago * config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
Ian Lance Taylor [Wed, 27 Oct 1993 18:47:40 +0000 (18:47 +0000)]
* config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
after a .ent directive.

31 years ago* gdb.texinfo (Command Files): Explain order of init file reading.
Jim Kingdon [Wed, 27 Oct 1993 18:26:40 +0000 (18:26 +0000)]
* gdb.texinfo (Command Files): Explain order of init file reading.

31 years agoadd support for aviion
David D. Zuhn [Wed, 27 Oct 1993 17:46:16 +0000 (17:46 +0000)]
add support for aviion

31 years agoTook case '>' out of macro_build again to avoid confusion. Use & 0x1f
Ian Lance Taylor [Wed, 27 Oct 1993 16:54:54 +0000 (16:54 +0000)]
Took case '>' out of macro_build again to avoid confusion.  Use & 0x1f
on the shift count rather than % 32.

31 years ago * nlmcode.h (nlm_swap_auxiliary_headers_in,
Ian Lance Taylor [Wed, 27 Oct 1993 16:21:30 +0000 (16:21 +0000)]
* nlmcode.h (nlm_swap_auxiliary_headers_in,
nlm_swap_auxiliary_headers_out): Handle sharedDebugRecordOffset
and sharedDebugRecordCount fields.

31 years ago * nlmconv.c (main): Set sharedDebugRecordOffset and
Ian Lance Taylor [Wed, 27 Oct 1993 16:21:14 +0000 (16:21 +0000)]
* nlmconv.c (main): Set sharedDebugRecordOffset and
sharedDebugRecordCount fields in extended header.

31 years ago* gdb.texinfo (Command Files): Explain order of init file reading.
Jim Kingdon [Wed, 27 Oct 1993 16:20:51 +0000 (16:20 +0000)]
* gdb.texinfo (Command Files): Explain order of init file reading.

31 years ago * nlmconv.c (main): Force moduleName field to upper case.
Ian Lance Taylor [Wed, 27 Oct 1993 16:06:56 +0000 (16:06 +0000)]
* nlmconv.c (main): Force moduleName field to upper case.

31 years ago * config/tc-mips.c (macro_build): Handle '>' case (shift amount
Ian Lance Taylor [Wed, 27 Oct 1993 15:52:03 +0000 (15:52 +0000)]
* config/tc-mips.c (macro_build): Handle '>' case (shift amount
between 32 and 63 for double shift instruction).
(mips_ip): Likewise.
(printInsn): Likewise.

31 years ago * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
Ian Lance Taylor [Wed, 27 Oct 1993 15:52:00 +0000 (15:52 +0000)]
* mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
larger than 32.  Moved dsxx32 variants first for disassembler.

31 years ago * common.h (NLM_SIGNATURE): Do not define (it's different for each
Ian Lance Taylor [Wed, 27 Oct 1993 15:46:57 +0000 (15:46 +0000)]
* common.h (NLM_SIGNATURE): Do not define (it's different for each
backend).

Also minor comment changes to internal.h and external.h.