binutils-gdb.git
29 years ago * top.c (build_command_line): Demand arguments for if/while
Jeff Law [Tue, 3 Oct 1995 03:48:32 +0000 (03:48 +0000)]
* top.c (build_command_line): Demand arguments for if/while
commands.

29 years agoNo ChangeLog to keep.
Stan Shebs [Tue, 3 Oct 1995 01:50:49 +0000 (01:50 +0000)]
No ChangeLog to keep.

29 years ago * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
Ian Lance Taylor [Mon, 2 Oct 1995 21:00:22 +0000 (21:00 +0000)]
* config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
periods in register names.

29 years ago * Makefile.in (X11_CFLAGS): Set only to @X_INCDIR@.
Jason Molenda [Mon, 2 Oct 1995 20:12:04 +0000 (20:12 +0000)]
   * Makefile.in (X11_CFLAGS): Set only to @X_INCDIR@.

29 years ago * binutils-all/ar.exp: New file.
Ian Lance Taylor [Mon, 2 Oct 1995 19:58:43 +0000 (19:58 +0000)]
* binutils-all/ar.exp: New file.
* binutils-all/bintest.s: Make text_symbol and data_symbol global.
Add new static symbols static_text_symbol and static_data_symbol.
* binutils-all/nm.exp: Adjust accordingly.
* config/default.exp (AR): Set if not set.
(binutils_remove): New procedure.
* lib/utils-lib.exp (default_binutils_run): Call
prune_system_crud on program output.  Use verbose -log instead of
both verbose and send_log.
(default_binutils_remove): New procedure.

29 years agoAdd # in front of CPU number
Michael Meissner [Mon, 2 Oct 1995 18:33:17 +0000 (18:33 +0000)]
Add # in front of CPU number

29 years agoupdate usage message
Michael Meissner [Mon, 2 Oct 1995 18:21:46 +0000 (18:21 +0000)]
update usage message

29 years agofix typo
Michael Meissner [Mon, 2 Oct 1995 18:20:04 +0000 (18:20 +0000)]
fix typo

29 years agoAdd support to count the number of instructions issued.
Michael Meissner [Mon, 2 Oct 1995 18:19:17 +0000 (18:19 +0000)]
Add support to count the number of instructions issued.

29 years ago * elflink.h (elf_link_add_object_symbols): Don't let a weak
Ian Lance Taylor [Mon, 2 Oct 1995 18:11:12 +0000 (18:11 +0000)]
* elflink.h (elf_link_add_object_symbols): Don't let a weak
dynamic symbol override a common symbol.  Don't change the size or
type if they have been set and the new symbol is not a definition.
Warn if the size or type changes.

29 years ago * emultempl/elf32.em (global_stat): New file static variable.
Ian Lance Taylor [Mon, 2 Oct 1995 17:59:14 +0000 (17:59 +0000)]
* emultempl/elf32.em (global_stat): New file static variable.
(gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
that the file has not already been included under another name.
(gld${EMULATION_NAME}_stat_needed): New static function.

29 years ago * lib/utils-lib.exp (default_binutils_assemble): Call
Ian Lance Taylor [Mon, 2 Oct 1995 16:42:47 +0000 (16:42 +0000)]
* lib/utils-lib.exp (default_binutils_assemble): Call
prune_system_crud on assembler output.

29 years ago * strings.c (main): Exit with zero status if no files are given
Ian Lance Taylor [Mon, 2 Oct 1995 16:11:07 +0000 (16:11 +0000)]
* strings.c (main): Exit with zero status if no files are given
and standard input is read.

29 years agoAdd switch processing in gdb.
Michael Meissner [Mon, 2 Oct 1995 15:47:57 +0000 (15:47 +0000)]
Add switch processing in gdb.

29 years agoMatch standalone printf_filtered to gdb prototype.
Michael Meissner [Sun, 1 Oct 1995 17:54:45 +0000 (17:54 +0000)]
Match standalone printf_filtered to gdb prototype.

29 years ago * som.c (som_begin_writing): Don't write the symbol table or
Jeff Law [Sun, 1 Oct 1995 07:38:03 +0000 (07:38 +0000)]
    * som.c (som_begin_writing): Don't write the symbol table or
symbol strings.
(som_finish_writing): Write them here.  Place them after the
subspace data, but before the relocs.

Works around a truely stupid bug in the hpux8/hpux9 linker.  Fixes all
known link-time problems with -mlinker-opt.

29 years ago * config/tc-hppa.c (hppa_fix_adjustable): DP relative relocs
Jeff Law [Sun, 1 Oct 1995 05:08:05 +0000 (05:08 +0000)]
* config/tc-hppa.c (hppa_fix_adjustable): DP relative relocs
are not adjustable in SOM to avoid confusing the optimizing
linker.

29 years agoFix prototype.
Michael Meissner [Sun, 1 Oct 1995 00:48:15 +0000 (00:48 +0000)]
Fix prototype.

29 years ago * scm-lang.c: Moved Scheme value printing code to ...
Per Bothner [Sat, 30 Sep 1995 23:36:40 +0000 (23:36 +0000)]
* scm-lang.c:  Moved Scheme value printing code to ...
* scm-valprint.c:  ... this new file.
Also major improvements in support for printing SCM values.
* scm-lang.h:  New file.
* scm-tags.h:  New file.
* Makefile.in:  Note new scm-valprint.{c,o}.

29 years ago * configure.in: X_INCDIR and X_LIBDIR added.
Jason Molenda [Sat, 30 Sep 1995 16:38:16 +0000 (16:38 +0000)]
    * configure.in: X_INCDIR and X_LIBDIR added.
        * Makefile.in: @X_INCDIR@ and @X_LIBDIR@ added.
        * configure: Regnerated.

29 years agokeep vr4300el.mt
Jason Molenda [Sat, 30 Sep 1995 11:46:31 +0000 (11:46 +0000)]
keep vr4300el.mt

29 years ago * configure.in (host i[345]86-*-win32): Expand the
Jason Molenda [Sat, 30 Sep 1995 11:37:55 +0000 (11:37 +0000)]
    * configure.in (host i[345]86-*-win32):  Expand the
        noconfigdirs again.

what you were you thinking sac?

29 years agokeep common directory.
Steve Chamberlain [Sat, 30 Sep 1995 00:44:21 +0000 (00:44 +0000)]
keep common directory.

29 years agoFri Sep 29 02:10:05 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Sat, 30 Sep 1995 00:42:24 +0000 (00:42 +0000)]
Fri Sep 29 02:10:05 1995  steve chamberlain  <sac@slash.cygnus.com>

* config/arm/tm-arm.h (FRAME_CHAIN, FRAME_CHAIN_VALID):
Any pc > LOWESTPC is ok.

29 years ago * remote-rdp.c (rdp_init): Take out variable baud rate stuff.
Steve Chamberlain [Sat, 30 Sep 1995 00:06:55 +0000 (00:06 +0000)]
* remote-rdp.c (rdp_init): Take out variable baud rate stuff.
(remote_rdp_detatch): Delete.
* breakpoint.c (ctype.h): Don't include twice.

29 years ago * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
Ian Lance Taylor [Fri, 29 Sep 1995 22:37:36 +0000 (22:37 +0000)]
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
command_line.rpath is set, use it, rather than the -L options, to
build the rules section.
* ld.texinfo: Document this use of -rpath.

29 years agoFri Sep 29 15:19:23 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Fri, 29 Sep 1995 22:28:44 +0000 (22:28 +0000)]
Fri Sep 29 15:19:23 1995  steve chamberlain  <sac@slash.cygnus.com>

Fixes for when the host WIN32, but not MSC.
* complete.c: Sometimes have pwd.h
* parens.c: WIN32 has similar restrictions to __GO32__.
* readline.c (__GO32__): Some of this moved into rldefs.h
* signals.c (__GO32__): Likewise.
* rldefs.h (MSDOS||WIN32) becomes MSDOS||MSC.
(WIN32&&!WIN32): New definitions.

29 years ago Add some support for i960 MRI compatibility mode.
Ian Lance Taylor [Fri, 29 Sep 1995 19:36:07 +0000 (19:36 +0000)]
Add some support for i960 MRI compatibility mode.
* config/tc-i960.c (md_pseudo_table): Add endian.
(get_args): Don't discard a space between alphanumeric characters.
(get_cdisp): Change text_section to now_seg.
(s_endian): New static function.
* config/tc-i960.h (MRI_MODE_NEEDS_PSEUDO_DOT): Define.
* expr.h (operatorT): Add O_logical_not, O_logical_and, and
O_logical_or.
* expr.c (operand): Treat '!' as logical not operator.  If
TC_I960, in MRI mode permit `sizeof secname' and `startof
secname'.
(op_rank): Bump values by 2 to make room for && and ||.  Add
entries for !, &&, and ||.
(expr_begin): Only do MRI changes if TC_M68K.
(operator): Recognize || and &&.
(expr): Handle new operatorT values.
* symbols.c (resolve_symbol_value): Handle new operatorT values.
(print_expr_1): Likewise.
* read.c (potable): Add debug, err, irep, irepc, print, purgem,
and rep.
(read_a_source_file): Handle MRI_MODE_NEEDS_PSEUDO_DOT.
(mri_comment_field): Only handle weird comments if TC_M68K.
(s_err): New function.
(s_org): Only punt in MRI mode if TC_M68K.
(s_mri_sect): Write TC_I960 version.
(s_print, s_purgem): New functions.
* read.h (s_err, s_print, s_purgem): Declare.
* cond.c (s_ifeqs): Implement.
(ignore_input): Handle MRI_MODE_NEEDS_PSEUDO_DOT.
* macro.c (macro_strip_at): New static variable.
(macro_init): Add strip_at parameter.
(do_formals): If macro_strip_at, change NARG to $NARG.
(define_macro): Skip a comma after the macro name.
(get_apost_token): Skip character if macro_strip_at, even if
macro_mri.
(macro_expand_body): If macro_strip_at, don't recognize parameters
in strings unless they are preceded by an '@'.  If macro_strip_at,
pass '@' as strip character to sub_actual.  If macro_strip_at,
strip '@' characters.
(macro_expand): If macro_strip_at, change NARG to $NARG.
(delete_macro): New function.
(expand_irp): Skip leading and trailing '"' characters if irpc.
* macro.h (macro_init): Mention new strip_at parameter.
(delete_macro): Declare.
* as.c (main): If TC_I960, pass flag_mri to macro_init as
strip_at; otherwise, pass 0.
* gasp.c (process_pseudo_op): Pass 0 to macro_init as strip_at.
(main): Likewise.
* doc/as.texinfo: Document i960 MRI mode.

* as.c (show_usage): Mention --defsym.

29 years ago * lexsup.c (parse_args): Don't set link_info.shared for -assert
Ian Lance Taylor [Fri, 29 Sep 1995 15:33:29 +0000 (15:33 +0000)]
* lexsup.c (parse_args): Don't set link_info.shared for -assert
pure-text.  Pass true, not 1, to lang_add_entry.
* emultempl/sunos.em (find_assign): New static variable.
(found_assign): New static variable.
(gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
If not a relocateable link, and no start symbol was specified on
the command line, and there are any undefined symbols, set
link_info.shared.  If link_info.shared is set, set the address of
the .text section to 0x20.
(gld${EMULATION_NAME}_find_assignment): Rename from
gld${EMULATION_NAME}_find_statement_assignment.  If find_assign is
set, then just set found_assign based on whether an assignment is
found to find_assign.
(gld${EMULATION_NAME}_get_script): Don't use a special script when
producing a shared library.
* emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
* scripttempl/aout.sc: Remove CREATE_SHLIB tests.
* ldlang.c (entry_from_cmdline): New global variable.
(lang_add_entry): Change cmdline parameter from int to boolean.
Use global entry_from_cmdline rather than function static
from_cmdline.
* ldlang.h (entry_from_cmdline): Declare.
(lang_add_entry): Change declaration of second parameter from int
to boolean.
* ldgram.y: Pass false, not 0, to lang_add_entry.

29 years agoFri Sep 29 02:10:05 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Fri, 29 Sep 1995 09:22:29 +0000 (09:22 +0000)]
Fri Sep 29 02:10:05 1995  steve chamberlain  <sac@slash.cygnus.com>

* Makefile.in (remote-rdp.o): Doesn't need remote-rdp.h
* callback.c (os_printf_filtered): fix protos.
* defs.h (puts_filtered, puts_unfiltered
[v|f|]printf_[un]filtered): Make format arg const.
* remote-rdp.c (rdp_init): Attept to sync at different
baudrates.
* utils.c (puts_filtered, puts_unfiltered
[v|f|]printf_[un]filtered): Define prototypes with
const in the right place.

29 years ago * mpw-configure: Fix sed command file name.
Stan Shebs [Fri, 29 Sep 1995 04:21:00 +0000 (04:21 +0000)]
* mpw-configure: Fix sed command file name.

29 years agoComings and goings of Mac-specific files.
Stan Shebs [Fri, 29 Sep 1995 03:11:46 +0000 (03:11 +0000)]
Comings and goings of Mac-specific files.

29 years ago * mpw-config.in: Calculate underscore and put into makefile
Stan Shebs [Fri, 29 Sep 1995 03:07:08 +0000 (03:07 +0000)]
* mpw-config.in: Calculate underscore and put into makefile
fragment, generate config.h.
* mpw-make.sed: New file, sed commands to edit Unix makefile
into MPW syntax.
* mpw-make.in: Remove.
* mac-binutils.r: New file, Mac resources.

29 years agoComings and goings of Mac-specific files.
Stan Shebs [Fri, 29 Sep 1995 02:39:58 +0000 (02:39 +0000)]
Comings and goings of Mac-specific files.

29 years agoChanges to Mac-specific files.
Stan Shebs [Fri, 29 Sep 1995 02:38:28 +0000 (02:38 +0000)]
Changes to Mac-specific files.

29 years ago * mpw-config.in: Translate "powerpc" into "ppc", remove gen of
Stan Shebs [Fri, 29 Sep 1995 02:37:17 +0000 (02:37 +0000)]
* mpw-config.in: Translate "powerpc" into "ppc", remove gen of
VERSION, move gen of "conf" here from makefile.
* mpw-make.sed: New file, sed commands to translate Unix makefile
into MPW syntax.
* mpw-make.in: Remove.
* mac-as.r: New file, Mac resource file.
* as.h (inline): Don't decide about defining if __MWERKS__,
remove redundant conditional and definition.

* stabs.c (s_stab_generic): Fix syntax for OBJ_PROCESS_STAB.

29 years agoDescription of PowerMac changes.
Stan Shebs [Fri, 29 Sep 1995 02:16:05 +0000 (02:16 +0000)]
Description of PowerMac changes.

29 years ago * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
Stan Shebs [Fri, 29 Sep 1995 02:14:51 +0000 (02:14 +0000)]
* config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
* configure, configure.in: Add pmac_xcoff_vec case.
* Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
* coff-pmac.c: New file, PowerMac XCOFF support.
* coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
* targets.c (pmac_xcoff_vec): Declare.

* mpw-config.in: Various changes to be compatible with the
autoconf-based configury.
* mpw-make.sed: New file, sed commands to translate Unix
makefile into MPW syntax.
* mpw-make.in: Remove.
* hosts/mpw.h: Remove.
* bfd-in.h, bfd-in2.h: If MPW, include the file that defines
true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.

29 years ago * defs.h (enum language): Add language_scm.
Per Bothner [Fri, 29 Sep 1995 01:43:54 +0000 (01:43 +0000)]
* defs.h (enum language):  Add language_scm.
* expression.h (enum exp_code):  Added OP_EXPRSTRING.
* scm-lang.c:  Preliminary support for Guile /SCM dialect of Scheme.
* expprint.c (print_subexp):  Add OP_EXPRSTRING support.
* parse.c (length_of_subexp, prefixify_subexp):  Likewise.
* valops.c (find_function_in_inferior):  New function.
(value_allocate_space_in_inferior):  New function.
(allocate_space_in_inferior):  Redefine using previous function.
* Makefile.in (SFILES):  Add scm-lang.c.
(COMMON_OBS):  Add scm-lang.o

29 years agouse bison
Steve Chamberlain [Fri, 29 Sep 1995 00:48:00 +0000 (00:48 +0000)]
use bison
use ar rv.

29 years ago * configure.in (host i[345]86-*-win32): Reduce the
Steve Chamberlain [Fri, 29 Sep 1995 00:41:15 +0000 (00:41 +0000)]
* configure.in (host i[345]86-*-win32): Reduce the
noconfigdirs again.

29 years agoThu Sep 28 14:32:11 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Fri, 29 Sep 1995 00:14:01 +0000 (00:14 +0000)]
Thu Sep 28 14:32:11 1995  steve chamberlain  <sac@slash.cygnus.com>

* callback.[ch]: New files.
* remote-rdp.c: Support for the ARM RDP monitor.
* Makefile: Update.
* arm-tdep.c (arm_othernames): New.
(_initialize_arm_tdep): install 'othernames' command.
(arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New.
* configure.in: Check for termios.h, termio.h and sgtty.h.
(i[345]86-*-win32*): New host.
* configure: Regenerated.
* inflow.c: Clean up inclusions.
* main.c (main): Check for WINGDB, not WIN32.
* printcmd.c (do_examine): Put QUIT test in loop.
* remote-hms.c (e7000_load): Delete.
(hms_ops): Point to generic_load instead.
* remote-hms.c (hms_ops): Point to generic_load.
* remote-sim.c (sim_callback_write_stdout): Becomes
gdbsim_write_stdout.
(gdbsim_load): Call generic_load.
* remote-utils.c (gr_load_image): Delete.
* ser-unix.c (terminal.h): Include instead of havig
own #if tree.
(hardwire_flush_input): Reset input buffer too.
* source.c (openp): If WIN32 then open file in binary mode.
* terminal.h: Configure IO mechanism using autoconf defines if available and
not overriden.
* utils.c (quit, pollquit, notice_quit): WIN32 check becomes WINGDB check.
* config/arm/arm.mt (TDEPFILES): Add remote-rdp.o
* config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes TARGET_BYTE_ORDER_SELECTABLE.
(ADDR_BITS_REMOVE): New.
(ORIGINAL_REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): New.
(INST_xx): New
(FRAME_FIND_SAVED_REGS): Pass the right argument.
(arm_get_next_pc): Declare.
* mswin/prebuilt/*/bfdtarget.h (SELECT_ARCHITECTURES): Need leading &.

29 years agoThu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Fri, 29 Sep 1995 00:09:21 +0000 (00:09 +0000)]
Thu Sep 28 17:06:23 1995  steve chamberlain  <sac@slash.cygnus.com>

* binary.c (binary_get_symtab): Return an empty string on error.
* opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.

29 years ago * dlltool.c: (gen_exp_file): Always emit a .reloc section if relocatable.
Steve Chamberlain [Thu, 28 Sep 1995 22:51:39 +0000 (22:51 +0000)]
* dlltool.c: (gen_exp_file): Always emit a .reloc section if relocatable.
(imp_name_lab): New.
(gen_def_file): New.
(gen_lib_file): Use imp_name_lab.
(main): Initialize imp_name_lab.

29 years agoThu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Thu, 28 Sep 1995 22:42:28 +0000 (22:42 +0000)]
Thu Sep 28 15:40:36 1995  steve chamberlain  <sac@slash.cygnus.com>

* run.c, run.1: From sh directory.

29 years agoThu Sep 28 15:26:59 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Thu, 28 Sep 1995 22:39:36 +0000 (22:39 +0000)]
Thu Sep 28 15:26:59 1995  steve chamberlain  <sac@slash.cygnus.com>

* run.c: Moved to ../common.
* interp.c (trap): Use gdb's callback interface.
* Makefile.in: Updated.

29 years ago * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
Ian Lance Taylor [Thu, 28 Sep 1995 22:27:49 +0000 (22:27 +0000)]
* hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
symbols rather than as indirect symbols.
(MY(slurp_symbol_table)): Don't do anything special about
secondary symbols.

29 years ago * mpw-mh-mpw: Add definitions for various 68K and PowerMac
Stan Shebs [Thu, 28 Sep 1995 20:23:31 +0000 (20:23 +0000)]
* mpw-mh-mpw: Add definitions for various 68K and PowerMac
compilers, add definitions for library and link steps for
PowerMacs.

29 years agoupdated changes
Kim Knuttila [Thu, 28 Sep 1995 20:21:36 +0000 (20:21 +0000)]
updated changes

29 years agoUpdated comments
Kim Knuttila [Thu, 28 Sep 1995 19:40:52 +0000 (19:40 +0000)]
Updated comments

29 years ago * ld.h (parsing_defsym): Declare.
Ian Lance Taylor [Thu, 28 Sep 1995 19:18:07 +0000 (19:18 +0000)]
* ld.h (parsing_defsym): Declare.
* ldlex.h (lex_string): Declare.
* ldlex.l (lex_string): Define.
* lexsup.c (parsing_defsym): Define.
(parse_args): In OPTION_DEFSYM case, set lex_string before calling
lex_redirect, and clear it after calling yyparse.  Set
parsing_defsym around call to yyparse.
* ldmain.c (main): Set lex_string before calling lex_redirect, and
clear it after calling yyparse.
* ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
in linker scripts correctly.
PR 8092.

29 years ago * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
Ian Lance Taylor [Thu, 28 Sep 1995 17:59:51 +0000 (17:59 +0000)]
* scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
COFF targets, allowing for the leading underscore used on SPARC
COFF.
PR 8006.

29 years ago* coffcode.h (coff_new_section_hook): Make sure that the alignment
Ian Lance Taylor [Thu, 28 Sep 1995 17:57:13 +0000 (17:57 +0000)]
* coffcode.h (coff_new_section_hook): Make sure that the alignment
        of .ctors and .dtors sections is no larger than 2.
PR 8086.

29 years ago * coffcode.h (coff_new_section_hook): Make sure that the alignment
Ian Lance Taylor [Thu, 28 Sep 1995 17:57:06 +0000 (17:57 +0000)]
* coffcode.h (coff_new_section_hook): Make sure that the alignment
of .ctors and .dtors sections is no larger than 2.
PR 8006.

29 years ago(arm-*-coff): Fix configuration.
David Edelsohn [Thu, 28 Sep 1995 17:33:04 +0000 (17:33 +0000)]
(arm-*-coff): Fix configuration.

29 years agomention creating SunOS shared libraries
Ian Lance Taylor [Thu, 28 Sep 1995 16:41:31 +0000 (16:41 +0000)]
mention creating SunOS shared libraries

29 years ago * ld-shared/shared.exp: Run the tests on sparc*-*-sunos4*. Add
Ian Lance Taylor [Thu, 28 Sep 1995 16:39:55 +0000 (16:39 +0000)]
* ld-shared/shared.exp: Run the tests on sparc*-*-sunos4*.  Add
appropriate modifications and setup_xfails.
* ld-shared/sun4.dat: New file.

29 years ago * lexsup.c (parse_args): Handle -assert.
Ian Lance Taylor [Thu, 28 Sep 1995 16:36:34 +0000 (16:36 +0000)]
* lexsup.c (parse_args): Handle -assert.
* emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
* emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
shared library script when appropriate.
* scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
section at SIZEOF_HEADERS.

29 years ago * sunos.c (sunos_add_one_symbol): Don't change
Ian Lance Taylor [Thu, 28 Sep 1995 16:30:54 +0000 (16:30 +0000)]
* sunos.c (sunos_add_one_symbol): Don't change
bfd_link_hash_common to bfd_link_hash_new, since it may be on the
undef list.
(bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
dynamic symbols when creating a shared library.
(sunos_scan_ext_relocs): Handle relocs correctly when creating a
shared library.
(sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
written even if it is not defined in a regular object.
(sunos_write_dynamic_symbol): Use plt_offset for the address of
the jump table reloc.  Add an assertion.  Use RELOC_JMP_SLOT
rather than the constant 22.
(sunos_check_dynamic_reloc): Handle creating a shared library.
(sunos_finish_dynamic_link): Set the first entry in the GOT to
zero when creating a shared library.
* aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
write it out at the start of the symbol table.

29 years ago * config/tc-ppc.h (tc_fix_adjustable): Define.
Ian Lance Taylor [Thu, 28 Sep 1995 16:17:53 +0000 (16:17 +0000)]
* config/tc-ppc.h (tc_fix_adjustable): Define.
(ppc_pe_fix_adjustable): Declare.
* config/tc-ppc.c (ppc_pe_fix_adjustable): New function.

29 years ago * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
Ian Lance Taylor [Thu, 28 Sep 1995 15:21:35 +0000 (15:21 +0000)]
* Makefile.in (BFD32_BACKENDS): Add coff-arm.o.

29 years ago * Makefile.in (earmcoff.c): Build.
David Edelsohn [Thu, 28 Sep 1995 08:48:02 +0000 (08:48 +0000)]
* Makefile.in (earmcoff.c): Build.
* configure.tgt (arm-*-coff): New target
* emulparms/armcoff.sh: New file.
* scripttempl/armcoff.sc: New file.

29 years ago * config/tc-arm.h (TARGET_FORMAT): Define for arm-coff.
David Edelsohn [Thu, 28 Sep 1995 08:13:18 +0000 (08:13 +0000)]
* config/tc-arm.h (TARGET_FORMAT): Define for arm-coff.

29 years ago * config.bfd: Add arm-*-coff.
David Edelsohn [Thu, 28 Sep 1995 08:08:49 +0000 (08:08 +0000)]
* config.bfd: Add arm-*-coff.
* configure.in, configure: Add armcoff_{little,big}_vec.
* targets.c (armcoff_{little,big}_vec): Declare.
(bfd_target_vector): Add armcoff_{little,big}_vec.
* coff-arm.c (armcoff_{little,big}_vec): Always define.

29 years ago * symbols.c (S_IS_LOCAL): All symbols in reg_section are local.
Ian Lance Taylor [Wed, 27 Sep 1995 20:21:07 +0000 (20:21 +0000)]
* symbols.c (S_IS_LOCAL): All symbols in reg_section are local.

29 years ago * config/tc-ppc.h (OBJ_XCOFF): Define if OBJ_COFF and not TE_PE.
Ian Lance Taylor [Wed, 27 Sep 1995 19:02:16 +0000 (19:02 +0000)]
* config/tc-ppc.h (OBJ_XCOFF): Define if OBJ_COFF and not TE_PE.
Change OBJ_COFF checks to check OBJ_XCOFF instead.
(TARGET_FORMAT): Fully parenthesize.
(LEX_QM): Define if TE_PE.
* config/tc-ppc.c: Replace OBJ_COFF by OBJ_XCOFF throughout.
Remove checks of TE_PE within #ifdef OBJ_XCOFF sections.
(init_regtable): Make i unsigned.
(ppc_set_current_section): Rename from setCurrentSection.  Change
all callers.
(ppc_arch): Return after as_fatal to avoid gcc warning.
(md_assemble): Only declare reloc if OBJ_ELF.  Add default to
switch on fixups[i].reloc to avoid gcc warning.
(IMAGE_SGN_LNK_OTHER): Fix nested comment.
(ppc_pe_function): Don't call ppc_canonicalize_symbol_name.
(ppc_frob_symbol): Remove TE_PE section checks.
(md_estimate_size_before_relax): Return after abort to avoid gcc
warning.
(md_apply_fix3): Add BFD_RELOC_16_GOT_PCREL to switch.
* read.c (LEX_QM): Define as 0 if not defined.
(lex_type): Use LEX_QM for '?'.

29 years ago * tuples.ch. tuples.exp: Add new test for setting a variant record
Per Bothner [Wed, 27 Sep 1995 18:51:33 +0000 (18:51 +0000)]
* tuples.ch. tuples.exp:  Add new test for setting a variant record
using a tuple, and access the fields.

29 years ago * valops.c (search_struct_field): Also allow "else" as a variant name,
Per Bothner [Wed, 27 Sep 1995 18:47:22 +0000 (18:47 +0000)]
* valops.c (search_struct_field):  Also allow "else" as a variant name,

29 years agocheck powerpc-*-pe* as well as powerpc-*-winnt*
Ian Lance Taylor [Wed, 27 Sep 1995 17:39:16 +0000 (17:39 +0000)]
check powerpc-*-pe* as well as powerpc-*-winnt*

29 years ago * eval.c (evaluate_struct_tuple): New function. Used to evaluate
Per Bothner [Wed, 27 Sep 1995 17:24:45 +0000 (17:24 +0000)]
* eval.c (evaluate_struct_tuple):  New function.  Used to evaluate
structure tuples.  Now also handles Chill variant records.
(get_label):  New function, used by evaluate_struct_tuple.
(evaluate_subexp_standard case OP_ARRAY):  Use evaluate_struct_tuple.
(evaluate_labeled_field_init):  Removed.
* valops.c (search_struct_field):  Generalize to work with Chill
variant records.

29 years ago * configure.in: No need to check whether ${cpu_type} is powerpc;
Ian Lance Taylor [Wed, 27 Sep 1995 16:56:23 +0000 (16:56 +0000)]
* configure.in: No need to check whether ${cpu_type} is powerpc;
it never will be.
* configure: Rebuild.

29 years agoDetails of more fixes to earlier fixes
Kim Knuttila [Wed, 27 Sep 1995 16:33:05 +0000 (16:33 +0000)]
Details of more fixes to earlier fixes

29 years ago * configure.in: Don't configure ld and gdb for powerpc*-*-winnt*,
Ian Lance Taylor [Wed, 27 Sep 1995 16:24:58 +0000 (16:24 +0000)]
* configure.in: Don't configure ld and gdb for powerpc*-*-winnt*,
since they are not yet supported.

29 years agoRemoved an extraneous PPC definition
Kim Knuttila [Wed, 27 Sep 1995 16:23:12 +0000 (16:23 +0000)]
Removed an extraneous PPC definition

29 years agoAdded back some missing code @ diff tc-ppc.c
Kim Knuttila [Wed, 27 Sep 1995 16:03:36 +0000 (16:03 +0000)]
Added back some missing code @ diff tc-ppc.c

29 years agoUndo md_apply_fix3 changes
Michael Meissner [Wed, 27 Sep 1995 15:37:54 +0000 (15:37 +0000)]
Undo md_apply_fix3 changes

29 years agoRemoved inactive bfd entries
Kim Knuttila [Wed, 27 Sep 1995 15:10:28 +0000 (15:10 +0000)]
Removed inactive bfd entries

29 years agoInitial asm support for ppc/PE
Kim Knuttila [Wed, 27 Sep 1995 14:52:16 +0000 (14:52 +0000)]
Initial asm support for ppc/PE

29 years agoConfigure support for ppc/PE
Kim Knuttila [Wed, 27 Sep 1995 14:49:37 +0000 (14:49 +0000)]
Configure support for ppc/PE

29 years agoAdded assembler support for ppc/PE environments
Kim Knuttila [Wed, 27 Sep 1995 14:48:45 +0000 (14:48 +0000)]
Added assembler support for ppc/PE environments

29 years agoAdded TE_PE target environment support
Kim Knuttila [Wed, 27 Sep 1995 14:47:41 +0000 (14:47 +0000)]
Added TE_PE target environment support

29 years ago * targets.c (bfd_find_target): Remove debugging code.
Ian Lance Taylor [Wed, 27 Sep 1995 14:38:03 +0000 (14:38 +0000)]
* targets.c (bfd_find_target): Remove debugging code.

29 years agoadd new coff-ppc files
Ian Lance Taylor [Wed, 27 Sep 1995 14:29:22 +0000 (14:29 +0000)]
add new coff-ppc files

29 years agoadd powerpc.h
Ian Lance Taylor [Wed, 27 Sep 1995 14:24:33 +0000 (14:24 +0000)]
add powerpc.h

29 years agoPPC bfd support
Kim Knuttila [Wed, 27 Sep 1995 11:40:15 +0000 (11:40 +0000)]
PPC bfd support

29 years agoPPC magic and peicode.h
Kim Knuttila [Wed, 27 Sep 1995 11:37:49 +0000 (11:37 +0000)]
PPC magic and peicode.h

29 years agoConfigury for new ppc bfd
Kim Knuttila [Wed, 27 Sep 1995 11:36:47 +0000 (11:36 +0000)]
Configury for new ppc bfd

29 years agoFirst round BFD for PE/PowerPC
Kim Knuttila [Wed, 27 Sep 1995 11:34:10 +0000 (11:34 +0000)]
First round BFD for PE/PowerPC

29 years agoPowerpc and Pe support.
Kim Knuttila [Wed, 27 Sep 1995 11:06:00 +0000 (11:06 +0000)]
Powerpc and Pe support.

29 years agobasic coff for powerpc/PE
Kim Knuttila [Wed, 27 Sep 1995 11:03:15 +0000 (11:03 +0000)]
basic coff for powerpc/PE

29 years agompw-make.in is out, mpw-make.sed is in.
Stan Shebs [Wed, 27 Sep 1995 02:05:39 +0000 (02:05 +0000)]
mpw-make.in is out, mpw-make.sed is in.

29 years ago * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
Stan Shebs [Wed, 27 Sep 1995 01:53:07 +0000 (01:53 +0000)]
* mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
no longer create sysdep.h, sed ppc-opc.c to work around a
serious Metrowerks C bug.
* mpw-make.in: Remove.
* mpw-make.sed: New file, used by mpw-configure to edit
Makefile.in into an MPW makefile.

29 years ago Add PowerMac support and many other enhancements.
Stan Shebs [Tue, 26 Sep 1995 21:51:30 +0000 (21:51 +0000)]
Add PowerMac support and many other enhancements.
* mpw-configure: New option --cc to select compiler to use,
paste options set according to --cc into the generated
Makefile, generate the Makefile by sed'ing the Unix Makefile.in
if mpw-make.sed is present.
* mpw-config.in: Don't test for gC1, test for mpw-touch,
add forward includes for PowerPC include files.
* mpw-build.in: Build using Makefile.PPC if present.
(do-byacc, etc): Remove separate version resource builds.
(do-gas): Build "stamps" before "all".
(do-gcc): Build "stamps-h" and "stamps-c" before "all".
* mpw-README: Update to reflect --cc option, PowerMac support,
and recently-reported compatibility problems.

29 years agoSupport all of the V.4 relocations
Michael Meissner [Tue, 26 Sep 1995 19:17:10 +0000 (19:17 +0000)]
Support all of the V.4 relocations

29 years ago * bfd.c (bfd_assert): Remove \n from string passed to
Ian Lance Taylor [Tue, 26 Sep 1995 18:45:16 +0000 (18:45 +0000)]
* bfd.c (bfd_assert): Remove \n from string passed to
        _bfd_error_handler.

29 years agoFlesh out branch prediction support.
Michael Meissner [Tue, 26 Sep 1995 18:26:32 +0000 (18:26 +0000)]
Flesh out branch prediction support.

29 years ago * scripttempl/i386coff.sc: Remove .data2; no longer needed.
Ian Lance Taylor [Tue, 26 Sep 1995 18:01:34 +0000 (18:01 +0000)]
* scripttempl/i386coff.sc: Remove .data2; no longer needed.

29 years ago * coff-i386.c: (TWO_DATA_SECS): Don't define.
Ian Lance Taylor [Tue, 26 Sep 1995 17:58:38 +0000 (17:58 +0000)]
* coff-i386.c: (TWO_DATA_SECS): Don't define.
* coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
(bfd_coff_make_section_hook): Don't define.
(coff_make_section_hook): Remove.
(sec_to_styp_flags): Remove TWO_DATA_SECS case.
(styp_to_sec_flags): Likewise.
(coff_write_object_contents): Likewise.
(bfd_coff_std_swap_table): Don't initialize make_section_hook
field.
* libcoff.h: Rebuild.
* coffgen.c (make_a_section_from_file): Just call
bfd_make_section_anyway, not bfd_make_section or
bfd_coff_make_section_hook.
* ecoff.c (_bfd_ecoff_make_section_hook): Remove.
* libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
* coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
make_section_hook field.
* coff-mips.c (mips_ecoff_backend_data): Likewise.

29 years ago * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
Ian Lance Taylor [Tue, 26 Sep 1995 16:56:28 +0000 (16:56 +0000)]
* aoutx.h (translate_from_native_sym_flags): Don't try to stuff
pointers into value field for warning and indirect symbols; just
leave the value field alone.
* linker.c (generic_link_add_symbol_list): Use next symbol for
warning and indirect symbols, rather than looking in symbol value.
* ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
parameter.  Change all callers.  Remove support for indirect
symbols; it didn't work anyhow.
(_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
* syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
* bfd-in2.h: Rebuild.

29 years ago * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
Ian Lance Taylor [Mon, 25 Sep 1995 21:31:29 +0000 (21:31 +0000)]
* aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
rather than a direct fprintf.
* archive.c (_bfd_write_archive_contents): Likewise.
* coffcode.h (coff_slurp_symbol_table): Likewise.
* elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
(ppc_elf_unsupported_reloc): Likewise.
(ppc_elf_relocate_section): Likewise.
* i386linux.c (linux_tally_symbols): Likewise.
(linux_finish_dynamic_link): Likewise.
* osf-core.c (osf_core_core_file_p): Likewise.
* rs6000-core.c (rs6000coff_get_section_contents): Likewise.
* som.c (som_sizeof_headers): Likewise.
* srec.c (srec_bad_byte): Likewise.
* bfd.c (bfd_assert): Likewise.  Also change file to be const.
* libbfd-in.h (bfd_assert): Declare first parameter const.
* libbfd.h: Rebuild.
* coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
bfd_reloc_overflow is enough.
* coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
* coff-h8500.c (rtype2howto): Likewise.
* coff-z8k.c (rtype2howto): Likewise.
* coffcode.h (dummy_reloc16_extra_cases): Likewise.
* elf.c (_bfd_elf_get_lineno): Likewise.
(_bfd_elf_no_info_to_howto): Likewise.
(_bfd_elf_no_info_to_howto_rel): Likewise.
* hp300hpux.c (convert_sym_type): Likewise.
(MY(swap_std_reloc_in)): Likewise.
* elf.c (bfd_section_from_shdr): Remove #if 0 sections.