platform/upstream/binutils.git
30 years ago * as.h: Replace flagseen with separate variables.
David MacKenzie [Fri, 3 Jun 1994 20:59:20 +0000 (20:59 +0000)]
* as.h: Replace flagseen with separate variables.
* as.c (parse_args): Set them.  Don't accept -1 option, or -v
explicitly (it's a synonym for --version).
* as.c, input-scrub.c, messages.c, read.c, symbols.c, write.c,
config/obj-aout.c, config/obj-aout.h, config/obj-bout.c,
config/obj-bout.h, config/obj-coff.c, config/obj-coff.h,
config/obj-vms.c, config/tc-hppa.c, config/tc-i386.c,
config/tc-i960.c, config/tc-m68k.c, config/tc-mips.c,
config/tc-vax.c: Use the new flag variables instead of flagseen.
* config/tc-vax.c [OBJ_VMS]: Recognize -+, -1, -v, and document in
usage.

30 years agodon't sanitize out v9 stuff any more
Ken Raeburn [Fri, 3 Jun 1994 20:00:13 +0000 (20:00 +0000)]
don't sanitize out v9 stuff any more

30 years ago * som.c (som_write_object_contents): Don't compute the file header's
Jeff Law [Fri, 3 Jun 1994 18:14:59 +0000 (18:14 +0000)]
* som.c (som_write_object_contents): Don't compute the file header's
checksum here.
(som_write_headers): Instead do it here.

30 years ago * as.c (show_usage): Remove target specific messages;
David MacKenzie [Fri, 3 Jun 1994 17:42:27 +0000 (17:42 +0000)]
* as.c (show_usage): Remove target specific messages;
instead, call md_show_usage.
(parse_args): Use getopt_long_only.  Take pointers to argc and
argv.
(main): Pass parse_args pointers.
* as.h: Remove 3 variables that are redundant with flagseen.
* as.c, messages.c: Change their users to use flagseen.
Define getopt stuff.
* tc.h: Update md_parse_option decl.  Add md_show_usage decl.
* config/tc-*.c: Add md_shortopts, md_longopts,
md_longopts_size, md_show_usage.  Change calling convention for
md_parse_option.  Remove md_parse_long_option.
* config/tc-ns32k.c: Rename `struct option' to `struct ns32k_option'.
* config/tc-i386.h: Don't define md_parse_option.

30 years ago * main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
Jim Kingdon [Fri, 3 Jun 1994 17:25:08 +0000 (17:25 +0000)]
* main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
to new file top.c.  Make things extern instead of static and
similar rearrangements to deal with this.
* top.h: New file.
* utils.c: Move fputs_unfiltered to main.c.  Remove
FPUTS_UNFILTERED_OVERRIDE ifndef.
* Makefile.in: Change so that gdb uses main.c, utils.c, and top.c,
and libgdb uses utils.c and top.c.

30 years ago * libbfd.h (bfd_realloc): Change last arg to "size_t size".
Jeff Law [Fri, 3 Jun 1994 17:01:17 +0000 (17:01 +0000)]
    * libbfd.h (bfd_realloc): Change last arg to "size_t size".

30 years ago * objdump.c (display_target_list): Remove unused local ok.
Ian Lance Taylor [Fri, 3 Jun 1994 15:00:55 +0000 (15:00 +0000)]
* objdump.c (display_target_list): Remove unused local ok.

30 years ago * hppa-tdep.c (skip_trampoline_code): Fix typo.
Jeff Law [Fri, 3 Jun 1994 05:21:30 +0000 (05:21 +0000)]
* hppa-tdep.c (skip_trampoline_code): Fix typo.

30 years ago * ch-valprint.c (chill_val_print_array_elements): New function.
Per Bothner [Fri, 3 Jun 1994 01:19:21 +0000 (01:19 +0000)]
* ch-valprint.c (chill_val_print_array_elements):  New function.
A Chill version of val_print_array_elements, it prints the
array index labels, in additions ot the array element values.
(chill_val_print):  Use the new function.

30 years agoRebuilt dependencies.
Ian Lance Taylor [Fri, 3 Jun 1994 00:09:21 +0000 (00:09 +0000)]
Rebuilt dependencies.

30 years agoUse SunOS shared libraries on a Sun 3.
Ian Lance Taylor [Thu, 2 Jun 1994 23:55:50 +0000 (23:55 +0000)]
Use SunOS shared libraries on a Sun 3.

30 years agoCorrect handling of .sa file.
Ian Lance Taylor [Thu, 2 Jun 1994 23:54:37 +0000 (23:54 +0000)]
Correct handling of .sa file.

30 years agoGet the address of Sun3 dynamic relocs right.
Ian Lance Taylor [Thu, 2 Jun 1994 23:51:26 +0000 (23:51 +0000)]
Get the address of Sun3 dynamic relocs right.

30 years agonote new i386 test
Ken Raeburn [Thu, 2 Jun 1994 23:47:38 +0000 (23:47 +0000)]
note new i386 test

30 years agonew test for "pushw"
Ken Raeburn [Thu, 2 Jun 1994 23:46:51 +0000 (23:46 +0000)]
new test for "pushw"

30 years agowhitespace
Ken Raeburn [Thu, 2 Jun 1994 23:46:41 +0000 (23:46 +0000)]
whitespace

30 years agooops, left out var decl
Ken Raeburn [Thu, 2 Jun 1994 23:37:45 +0000 (23:37 +0000)]
oops, left out var decl

30 years ago * configure: Set program_transform_nameoption correctly.
Ian Lance Taylor [Thu, 2 Jun 1994 23:03:52 +0000 (23:03 +0000)]
* configure: Set program_transform_nameoption correctly.

30 years ago * Makefile.in (CHILL_LIB): Remove bogus redundant definitions.
Per Bothner [Thu, 2 Jun 1994 23:03:35 +0000 (23:03 +0000)]
* Makefile.in (CHILL_LIB):  Remove bogus redundant definitions.

30 years ago * lib/gdb.exp (string_to_regexp, gdb_test_exact): New procedures.
Per Bothner [Thu, 2 Jun 1994 23:02:00 +0000 (23:02 +0000)]
* lib/gdb.exp (string_to_regexp, gdb_test_exact):  New procedures.

30 years agoAdd casts to pacify SunOS linker.
Ian Lance Taylor [Thu, 2 Jun 1994 22:44:54 +0000 (22:44 +0000)]
Add casts to pacify SunOS linker.

30 years ago * hosts/sun3.h: Include <stdlib.h>. Don't declare free, exit or
Ian Lance Taylor [Thu, 2 Jun 1994 22:39:31 +0000 (22:39 +0000)]
* hosts/sun3.h: Include <stdlib.h>.  Don't declare free, exit or
getenv.

30 years ago Add linker support for SunOS shared libraries.
Ian Lance Taylor [Thu, 2 Jun 1994 22:07:27 +0000 (22:07 +0000)]
Add linker support for SunOS shared libraries.
* sunos.c: Include bfdlink.h.  Add many new functions and
definitions for SunOS shared library support.
* bfd-in.h (bfd_sunos_record_link_assignment): Declare.
(bfd_sunos_size_dynamic_sections): Declare.
* bfd-in2.h: Rebuilt.
* aoutx.h (struct aout_link_hash_entry): Move to libaout.h.
(struct aout_link_hash_table): Likewise.
(aout_link_hash_lookup, aout_link_hash_traverse): Likewise.
(aout_hash_table): Likewise.
(NAME(aout,link_hash_newfunc)): Rename from aout_link_hash_newfunc
and make externally visible.
(NAME(aout,link_hash_table_init)): New function.
(NAME(aout,link_hash_table_create)): Call
NAME(aout,link_hash_table_init), not _bfd_link_hash_table_init.
(aout_link_add_symbols): Don't fail if no symbols.  If it exists,
call add_dynamic_symbols backend entry point for dynamic objects.
Use add_one_symbol backend entry point if it exists.
(NAME(aout,final_link)): Call finish_dynamic_link backend entry
point, if it exists.
(aout_link_input_bfd): For a dynamic object, call
link_dynamic_object backend entry point, if it exists.
(aout_link_write_other_symbol): Call write_dynamic_symbol backend
entry point, if it exists.
(aout_link_input_section): Don't read the relocs if they have
already been read.
(aout_link_input_section_std): When doing a final link, for a
reloc against an external symbol, call check_dynamic_reloc backend
entry point, if it exists.
(aout_link_input_section_ext): Likewise.
* libaout.h: Protect against multiple inclusion.  Include
bfdlink.h.
(struct aout_link_hash_entry): Move in from aoutx.h.
(struct aout_link_hash_table): Likewise.
(aout_link_hash_lookup, aout_link_hash_traverse): Likewise.
(aout_hash_table): Likewise.
(struct aout_backend_data): Add fields add_dynamic_symbols,
add_one_symbol, link_dynamic_object, write_dynamic_symbol,
check_dynamic_reloc, and finish_dynamic_link.
(struct aout_section_data_struct): Define new structure.
(aout_section_data): Define new accessor macro.
(NAME(aout,link_hash_newfunc)): Declare.
(NAME(aout,link_hash_table_init)): Declare.
* aoutf1.h (sunos4_aout_backend): Initialize new aout_backend_data
fields.
* aout-target.h (MY(backend_data)): Likewise.
* i386aout.c (MY(backend_data)): Likewise.
* i386mach3.c (MY(backend_data)): Likewise.
* mipsbsd.c (MY(backend_data)): Likewise.
* sparclynx.c (sparclynx_aout_backend): Likewise.

30 years ago Add support for SunOS shared libraries.
Ian Lance Taylor [Thu, 2 Jun 1994 22:01:53 +0000 (22:01 +0000)]
Add support for SunOS shared libraries.
* aout.sc: Don't define __DYNAMIC here.  Add new sections used by
shared library support code.
* emultempl/sunos.em: New file.
* emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
* Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.

30 years ago * ldlang.c: Minor formatting cleanups.
Ian Lance Taylor [Thu, 2 Jun 1994 21:31:40 +0000 (21:31 +0000)]
* ldlang.c: Minor formatting cleanups.
(lang_for_each_input_file): New function.
* ldlang.h (lang_for_each_input_file): Declare.

30 years ago * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
Ian Lance Taylor [Thu, 2 Jun 1994 21:30:57 +0000 (21:30 +0000)]
* ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
field.
(search_head): Declare.
(ldfile_add_library_path): Add new cmdline argument in prototype.
* ldfile.c (search_head): Make non-static.
(search_dirs_type): Move to ldfile.h.
(ldfile_add_library_path): Accept cmdline argument, and save it.
* lexsup.c (parse_args): Pass true for new cmdline argument of
ldfile_add_library_path.
(set_default_dirlist): Likewise.
* ldmain.c (check_for_scripts_dir): Pass false for new cmdline
argument of ldfile_add_library_path.
* ldgram.y (ifile_p1): Likewise.

30 years ago * as.c (show_usage): New function.
David MacKenzie [Thu, 2 Jun 1994 21:00:19 +0000 (21:00 +0000)]
* as.c (show_usage): New function.
(parse_args): Code moved from main.
Recognize --help and --version.
* config/tc-ns32k.h: Define TC_NS32K.
* doc/as.texinfo: Document all of the target-independent command
line options.

30 years ago* Makefile.in (distclean): Remove site config files and gas.sum.
Ken Raeburn [Thu, 2 Jun 1994 19:09:30 +0000 (19:09 +0000)]
* Makefile.in (distclean): Remove site config files and gas.sum.

30 years agoupdated with new targets for 94q2 and hppa info
Karen Christiansen [Thu, 2 Jun 1994 18:02:28 +0000 (18:02 +0000)]
updated with new targets for 94q2 and hppa info

30 years ago * configure.in: Add nlm subdir to configdirs for alpha-*-netware
Stu Grossman [Thu, 2 Jun 1994 16:58:48 +0000 (16:58 +0000)]
* configure.in:  Add nlm subdir to configdirs for alpha-*-netware
target.
* defs.h (enum language):  Add language_asm.
* findvar.c (read_register_bytes read_register_gen
write_register_bytes read_register read_register_pid
write_register write_register_pid supply_register):  Move multi-
thread handling down into these routines.  Create XXX_pid routines
that allow register references to specify the pid.
* findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
read_sp write_sp read_fp write_fp):  Move these routines from
infcmd to findvar to centralize the whole mess.
* i386-nlmstub.c:  Portability fixes.
* infptrace.c (child_resume):  Conditionalize to allow other natives
to override it.  Remove PIDGET gubbish, it's no longer necessary.
* infrun.c (wait_for_inferior):  Put registers_changed() before
target_wait() to speed up remote debugging.
* Replace code that reads registers from other threads with much
nicer looking new function calls (see changes to findvar.c).
* Don't skip prologues if debugging assembly source.
* lynx-nat.c (child_resume):  Lynx now needs it's own version of
child_resume to handle multi-thread debugging properly.
* remote.c:  Add O response to get console output from target.
* (readchar): Add timeout parameter.  Handle SERIAL_EOF and
SERIAL_ERROR here to simplify callers.
* Change static var timeout to remote_timeout.
* (fromhex):  Remove unnecessary return -1 at end of routine.
* (remote_wait):  Turn this into a big switch statement.  Add
support for O response.
* (putpkt):  Remove unnecessary handling of SERIAL_EOF/ERROR.
* (getpkt):  Split getpkt into two parts.  read_frame deals with
all formatting issues, run-length encoding, and framing.  getpkt
now handles error recovery, and frame detection.
* ser-tcp.c (tcp_readchar):  Handle EINTR from read().
* ser-unix.c (hardwire_raw):  Set CLOCAL so that we ignore modem
control.  (hardwire_readchar):  Handle EINTR from read().
* symfile.c (deduce_language_from_filename):  Add support for .s
files.
* config/nm-lynx.h:  Define CHILD_WAIT so that lynx-nat.c can
override infptrace's child_wait.
* config/rs6000/rs6000lynx.mh:  Use xm-rs6000ly.h & nm-rs6000ly.h
instead of XXXlynx.h.
* config/rs6000/rs6000lynx.mt:  Use tm-rs6000ly.h instead of
tm-rs6000lynx.h.
* nlm/gdbserve.c:  Portability fixes.

30 years agoVarious changes..
Ken Raeburn [Thu, 2 Jun 1994 16:38:54 +0000 (16:38 +0000)]
Various changes..

30 years ago(hash_new_table): Clear newly allocated table.
Ken Raeburn [Thu, 2 Jun 1994 16:37:55 +0000 (16:37 +0000)]
(hash_new_table): Clear newly allocated table.

30 years ago68060 support
Ken Raeburn [Thu, 2 Jun 1994 16:35:41 +0000 (16:35 +0000)]
68060 support

30 years agom68060 changes
Ken Raeburn [Thu, 2 Jun 1994 16:23:55 +0000 (16:23 +0000)]
m68060 changes

30 years ago(fixup_segment) [!BFD_ASSEMBLER] [DIFF_EXPR_OK]: Do conversion to pc-relative
Ken Raeburn [Thu, 2 Jun 1994 16:18:33 +0000 (16:18 +0000)]
(fixup_segment) [!BFD_ASSEMBLER] [DIFF_EXPR_OK]: Do conversion to pc-relative
for difference, even if pcrel is already set.

30 years ago(potable): Add this_gcc_requires_the_gnu_assembler in all lower-case, in case
Ken Raeburn [Thu, 2 Jun 1994 16:15:56 +0000 (16:15 +0000)]
(potable): Add this_gcc_requires_the_gnu_assembler in all lower-case, in case
we're ignoring case of opcodes in the input file.

30 years ago(target i386-*-netbsd0.8): Use 386bsd emulation.
Ken Raeburn [Thu, 2 Jun 1994 16:07:16 +0000 (16:07 +0000)]
(target i386-*-netbsd0.8): Use 386bsd emulation.

30 years agoHandle EV5 (21164/66/68) PALcode support.
Ken Raeburn [Thu, 2 Jun 1994 16:06:43 +0000 (16:06 +0000)]
Handle EV5 (21164/66/68) PALcode support.

* config/tc-alpha.c (machine): New variable.
(load_insn): New macro.
(load_insn_table): New function.
(md_begin): Call load_insn_table, once for basic instructions and
once for appropriate PAL instruction table.
(md_parse_option): Set `machine' based on -m##### arguments.

* config/alpha-opcode.h (alpha_pal21064_opcodes): Split out from alpha_opcodes.
(alpha_pal21164_opcodes): New table.
(NUM21064OPCODES, NUM21164OPCODES): New macros.

30 years ago(.section): Document as unavailable for a.out type formats.
Ken Raeburn [Thu, 2 Jun 1994 16:03:41 +0000 (16:03 +0000)]
(.section): Document as unavailable for a.out type formats.

30 years ago(install-info-gasp): Use $$dir when installing file.
Ken Raeburn [Thu, 2 Jun 1994 16:01:18 +0000 (16:01 +0000)]
(install-info-gasp): Use $$dir when installing file.

30 years ago * configure: If config.guess result is a prefix of the user
Ian Lance Taylor [Thu, 2 Jun 1994 04:40:34 +0000 (04:40 +0000)]
* configure: If config.guess result is a prefix of the user
specified target, assume a native build and use the user specified
target as the host alias.  Remove SunOS patch suffix removal hack.
* configure.in: Remove SunOS patch suffix removal hack.

30 years ago * Makefile.in (CROSS_CHECK_MODULES): Remove check-flex, since it's
Ian Lance Taylor [Thu, 2 Jun 1994 04:14:05 +0000 (04:14 +0000)]
* Makefile.in (CROSS_CHECK_MODULES): Remove check-flex, since it's
in NATIVE_CHECK_MODULES.

30 years ago * stabs.texinfo (Statics): Value of xcoff C_BSTAT points to
Jim Kingdon [Wed, 1 Jun 1994 23:14:45 +0000 (23:14 +0000)]
* stabs.texinfo (Statics): Value of xcoff C_BSTAT points to
another symbol, it is not the address itself.

30 years ago * Makefile.in: Rename HOST_ONLY to NATIVE.
Bill Cox [Wed, 1 Jun 1994 21:38:29 +0000 (21:38 +0000)]
* Makefile.in: Rename HOST_ONLY to NATIVE.
* configure: Delete SunOs patch suffix from host_canonical
  and build_canonical variables that are prepended to Makefiles.
* configure.in: Add comments to patch suffix removal for easier
          maintenance.

30 years agoUnneeded.
Rob Savoye [Wed, 1 Jun 1994 20:40:53 +0000 (20:40 +0000)]
Unneeded.

30 years agoRenamed.
Rob Savoye [Wed, 1 Jun 1994 20:30:19 +0000 (20:30 +0000)]
Renamed.

30 years ago* Makefile.in: Add all-libproc target similar to all-gui.
Jim Kingdon [Wed, 1 Jun 1994 19:35:51 +0000 (19:35 +0000)]
* Makefile.in: Add all-libproc target similar to all-gui.

30 years ago * inftarg.c (child_wait): Call proc_wait, not wait.
Jim Kingdon [Wed, 1 Jun 1994 19:28:24 +0000 (19:28 +0000)]
* inftarg.c (child_wait): Call proc_wait, not wait.
(child_mourn_inferior): Call proc_remove_foreign.
* main.c (gdb_init): Call init_proc.
* main.c: Provide dummy versions of init_proc, proc_wait, and
proc_remove_foreign for the gdb case (the libgdb case provides its
own versions of these functions).
* Makefile.in (libgdb-files): Add libproc.a.

30 years ago * hosts/sun3.h: Don't declare qsort, malloc or realloc.
Ian Lance Taylor [Wed, 1 Jun 1994 18:39:43 +0000 (18:39 +0000)]
* hosts/sun3.h: Don't declare qsort, malloc or realloc.

30 years ago * ldlang.h (lang_input_statement_type): Remove fields subfiles,
Ian Lance Taylor [Wed, 1 Jun 1994 18:28:26 +0000 (18:28 +0000)]
* ldlang.h (lang_input_statement_type): Remove fields subfiles,
total_size, superfile and chain.
* ldfile.c (open_a): Don't clear search_dirs_flag.
(ldfile_open_file): Don't try to open superfile.  Assert that file
has not already been opened.
* ldlang.c (new_afile): Don't initialize superfile.
* ldmain.c (add_archive_element): Don't initialize subfiles or
chain or superfile.  Initialize search_dirs_flag to false.

30 years agoWed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 1 Jun 1994 18:26:16 +0000 (18:26 +0000)]
Wed Jun  1 11:08:52 1994  Stan Shebs  (shebs@andros.cygnus.com)

Hardware watchpoints for Linux, from Rick Sladkey
(jrs@world.std.com).
* infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
new hardware breakpoint recovery method.
* i386v-nat.c (i386_insert_watchpoint,
i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
New functions to support the 386 hardware debugging registers.
* config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
target_insert_watchpoint, target_remove_watchpoint): Define these
macros to use the hardware debugging functions in i386v-nat.c.

30 years ago * config/tc-mips.c (mips_ip): Force floating point values to be
Ian Lance Taylor [Wed, 1 Jun 1994 14:56:21 +0000 (14:56 +0000)]
* config/tc-mips.c (mips_ip): Force floating point values to be
aligned correctly.

30 years agoTue May 31 17:16:33 1994 Tom Lord (lord@cygnus.com)
Thomas Lord [Wed, 1 Jun 1994 00:18:40 +0000 (00:18 +0000)]
Tue May 31 17:16:33 1994  Tom Lord  (lord@cygnus.com)

* Makefile.in (CHECK_MODULES): split into
HOST_ONLY_CHECK_MODULES and CROSS_CHECK_MODULES.

30 years agoDon't check flex when cross building.
Thomas Lord [Wed, 1 Jun 1994 00:16:26 +0000 (00:16 +0000)]
Don't check flex when cross building.

30 years ago * Makefile.in: Fix bit-rot in definitions of CHILL,
Per Bothner [Mon, 30 May 1994 05:34:32 +0000 (05:34 +0000)]
* Makefile.in:  Fix bit-rot in definitions of CHILL,
CHILL_FOR_TARGET and Chill_LIB.

30 years agoput current timestamp on merge log
Ken Raeburn [Fri, 27 May 1994 17:06:21 +0000 (17:06 +0000)]
put current timestamp on merge log

30 years agochanges from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs)
Ken Raeburn [Fri, 27 May 1994 16:58:05 +0000 (16:58 +0000)]
changes from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs)

30 years ago * ldlang.c (entry_symbol): Make static.
Ian Lance Taylor [Fri, 27 May 1994 15:39:11 +0000 (15:39 +0000)]
* ldlang.c (entry_symbol): Make static.
(lang_add_entry): Add cmdline argument.
* ldlang.h (lang_add_entry): Change prototype.
* ldgram.y (statement_anywhere): Change lang_add_entry call.
* lexsup.c (parse_args): Likewise.

30 years ago * ldlang.c (lang_add_entry): Only set the entry symbol if it has
Ian Lance Taylor [Fri, 27 May 1994 05:09:31 +0000 (05:09 +0000)]
* ldlang.c (lang_add_entry): Only set the entry symbol if it has
not been set already.

30 years ago * interp.c (trap): Fix irix incompatibility.
Steve Chamberlain [Fri, 27 May 1994 02:06:14 +0000 (02:06 +0000)]
* interp.c (trap): Fix irix incompatibility.
* run.c (main): open without specifying file type.

30 years ago* Makefile.in: Add all-gui target (but not yet build by "all").
Jim Kingdon [Thu, 26 May 1994 23:55:34 +0000 (23:55 +0000)]
* Makefile.in: Add all-gui target (but not yet build by "all").

30 years ago * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
Jim Kingdon [Thu, 26 May 1994 23:46:00 +0000 (23:46 +0000)]
* Makefile.in: Replace libgdb.a with libgdb-files.  Make "all"
build it.

30 years ago * som.c (som_prep_headers): Do not set the system_id here, private
Jeff Law [Thu, 26 May 1994 16:13:47 +0000 (16:13 +0000)]
* som.c (som_prep_headers): Do not set the system_id here, private
bfd data has not been copied yet.
(som_write_headers): Instead do it here.

30 years ago * config.sub: Move deletion of patch suffix from here...
Bill Cox [Thu, 26 May 1994 15:59:22 +0000 (15:59 +0000)]
* config.sub: Move deletion of patch suffix from here...
* configure.in: To here, at Ian's suggestion.  The top-
  level scripts might need to know of a patch level.

30 years ago * Makefile.in (TARGET_FLAGS_TO_PASS): Fix syntax of
Per Bothner [Thu, 26 May 1994 00:12:21 +0000 (00:12 +0000)]
* Makefile.in (TARGET_FLAGS_TO_PASS): Fix syntax of
sanitize-chill comments.

30 years ago * config.sub: Strip off patch suffix so rtl is recognized
Bill Cox [Wed, 25 May 1994 16:23:13 +0000 (16:23 +0000)]
* config.sub: Strip off patch suffix so rtl is recognized
  as a sunos4.1.3 machine, even though it's been patched.

30 years agoMake all the libgdb objects even when building gdb. This is because
Thomas Lord [Wed, 25 May 1994 15:39:12 +0000 (15:39 +0000)]
Make all the libgdb objects even when building gdb.  This is because
cyscm links against ../../gdb/{...}.o

Added a new target: libgdb-files.  It creates a file of that name
containing a list of files for libgdb.  If the variable LIBGDBPREFIX
is set, each file name has that prepended.

30 years agoMention gdb-testers-request as well as gdb-testers. (not in ChangeLog
Jim Kingdon [Tue, 24 May 1994 23:56:30 +0000 (23:56 +0000)]
Mention gdb-testers-request as well as gdb-testers.  (not in ChangeLog
because gdb distributions should not contain references to snapshots).

30 years ago Make MIPS ELF use new ELF backend linker. No shared library
Ian Lance Taylor [Tue, 24 May 1994 20:44:50 +0000 (20:44 +0000)]
Make MIPS ELF use new ELF backend linker.  No shared library
support yet.
* elf32-mips.c (bfd_mips_elf32_swap_gptab_in): New function.
(bfd_mips_elf32_swap_gptab_out): New function.
(mips_elf_object_p): If last symbol is LOCAL, set elf_bad_symtab.
(mips_elf_final_write_processing): Set sh_info field for .gptab.*
sections.
(mips_elf_fake_sections): Set sh_entsize for .gptab.* sections.
(mips_elf_read_ecoff_info): Read and free external symbols last,
not first, for clarity.
(struct mips_elf_link_hash_entry): Define new structure.
(struct mips_elf_link_hash_table): Define new structure.
(mips_elf_link_hash_lookup): Define new macro.
(mips_elf_link_hash_traverse): Define new macro.
(mips_elf_hash_table): Define new macro.
(mips_elf_link_hash_newfunc): New static function.
(mips_elf_link_hash_table_create): New static function.
(mips_elf_add_symbol_hook): New static function.
(struct extsym_info): Define new structure.
(mips_elf_get_extr, mips_elf_set_index): Remove.
(mips_elf_output_extsym): New static function.
(gptab_compare): New static function.
(mips_elf_final_link): Rewrite to use ELF backend linker, and to
merge gptab information in input files.
(mips_elf_relocate_hi16): New static function.
(mips_elf_relocate_section): New static function.
(bfd_elf32_bfd_link_hash_table_create): Define as macro before
including elf32-target.h.
(elf_backend_relocate_section): Likewise.
(elf_backend_add_symbol_hook): Likewise.
* elf.c (_bfd_elf_link_hash_newfunc): Rename from
elf_link_hash_newfunc and make globally visible.  Change caller.
(_bfd_elf_link_hash_table_init): New function, broken out of
_bfd_elf_link_hash_table_create.
(_bfd_elf_link_hash_table_create): Use
_bfd_elf_link_hash_table_init.
* libelf.h (struct elf_obj_tdata): Add new field bad_symtab.
(elf_bad_symtab): Define new accessor macro.
(_bfd_elf_link_hash_newfunc): Declare.
(_bew_elf_link_hash_table_init): Declare.
* elfcode.h (elf_object_p): Call backend object_p hook after
swapping in all the section headers.
(map_program_segments): Correct typo: Internal for External.
(elf_link_add_object_symbols): If elf_bad_symtab is set, read all
the symbols.  Skip STB_LOCAL symbols rather than giving an error.
(elf_bfd_final_link): If elf_bad_symtab is set, allocate space for
all symbols, not just locals.
(elf_link_output_extsym): Only skip a symbol not mentioned by a
regular file if it is mentioned by a dynamic object.
(elf_link_input_bfd): If elf_bad_symtab is set, read all the
symbols.

30 years ago * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
Ian Lance Taylor [Tue, 24 May 1994 20:21:27 +0000 (20:21 +0000)]
* emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
.reginfo an address.
(OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
(OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
* scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.

30 years ago * Revert the previous changes. Please see Rob's directory
Bill Cox [Sat, 21 May 1994 17:24:22 +0000 (17:24 +0000)]
* Revert the previous changes.  Please see Rob's directory
  /lisa/test/rob/progressive/gdb/testsuite for these fixes.

30 years ago * as.h: Don't declare parameters for strstr.
Ian Lance Taylor [Fri, 20 May 1994 22:02:39 +0000 (22:02 +0000)]
* as.h: Don't declare parameters for strstr.

30 years ago * coff-mips.c (mips_relocate_section): Add MIPS_R_JMPADDR overflow
Ian Lance Taylor [Fri, 20 May 1994 20:17:50 +0000 (20:17 +0000)]
* coff-mips.c (mips_relocate_section): Add MIPS_R_JMPADDR overflow
checking.

30 years ago * som.c (som_set_reloc_info): Do not set any relocation info
Jeff Law [Fri, 20 May 1994 19:43:18 +0000 (19:43 +0000)]
* som.c (som_set_reloc_info): Do not set any relocation info
for SOM fixups which are never passed to BFD.

30 years agoRemove mention of keep-powerpc-netware: PowerPC NetWare is no longer
Ian Lance Taylor [Fri, 20 May 1994 18:26:18 +0000 (18:26 +0000)]
Remove mention of keep-powerpc-netware: PowerPC NetWare is no longer
sanitized.

30 years agoRemove sanitization of PowerPC NetWare
Ian Lance Taylor [Fri, 20 May 1994 18:25:30 +0000 (18:25 +0000)]
Remove sanitization of PowerPC NetWare

30 years agoRemove sanitization of PowerPC NetWare.
Ian Lance Taylor [Fri, 20 May 1994 18:25:02 +0000 (18:25 +0000)]
Remove sanitization of PowerPC NetWare.

30 years agoRemoved sanitization of PowerPC NetWare. Also rebuilt Makefile
Ian Lance Taylor [Fri, 20 May 1994 18:22:45 +0000 (18:22 +0000)]
Removed sanitization of PowerPC NetWare.  Also rebuilt Makefile
dependencies.

30 years agoRemove sanitization of PowerPC NetWare.
Ian Lance Taylor [Fri, 20 May 1994 18:09:48 +0000 (18:09 +0000)]
Remove sanitization of PowerPC NetWare.

30 years ago * elf32-i386.c (elf_i386_size_dynamic_sections): Add DT_DEBUG to
Ian Lance Taylor [Fri, 20 May 1994 16:14:35 +0000 (16:14 +0000)]
* elf32-i386.c (elf_i386_size_dynamic_sections): Add DT_DEBUG to
the dynamic linking information for the benefit of the debugger.
From Peter Schauer.
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.

30 years ago * elf.c (_bfd_elf_make_section_from_shdr): New function, based on
Ian Lance Taylor [Fri, 20 May 1994 16:04:59 +0000 (16:04 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): New function, based on
code repeated three times in bfd_section_from_shdr in elfcode.h.
* libelf.h (_bfd_elf_make_section_from_shdr): Declare.
* elfcode.h (bfd_section_from_shdr): Use new function
_bfd_elf_make_section_from_shdr to create BFD sections.  If a
reloc section does not use the main symbol table, or it is part of
the process image, treat it as a normal section, not relocs.
* elf32-mips.c (mips_elf_section_from_shdr): Use new function
_bfd_elf_make_section_from_shdr.

30 years agoReally fix INSTALL_LAST this time..
Steve Chamberlain [Fri, 20 May 1994 15:28:26 +0000 (15:28 +0000)]
Really fix INSTALL_LAST this time..

30 years ago * target.c, target.h: New variables target_activity_function and
Jim Kingdon [Fri, 20 May 1994 03:43:39 +0000 (03:43 +0000)]
* target.c, target.h: New variables target_activity_function and
target_activity_fd.
* inflow.c, inferior.h: New functions set_sigio_trap and
clear_sigio_trap.
* inftarg.c (child_wait), procfs.c (wait_fd): Call them.

30 years agoMake map_program_segments tend to call abort rather than trash the
Ian Lance Taylor [Thu, 19 May 1994 21:58:45 +0000 (21:58 +0000)]
Make map_program_segments tend to call abort rather than trash the
stack in unhandled cases.  Still covered by previous ChangeLog entry.

30 years ago * elf32-target.h, elf64-target.h: Change ar_max_namelen value from
Ian Lance Taylor [Thu, 19 May 1994 21:39:15 +0000 (21:39 +0000)]
* elf32-target.h, elf64-target.h: Change ar_max_namelen value from
15 to 14 to match SVR4 ar.

30 years ago * configure.in: Use ld for i[34]86-*-sysv4* and sparc-*-solaris2*.
Ian Lance Taylor [Thu, 19 May 1994 21:16:30 +0000 (21:16 +0000)]
* configure.in: Use ld for i[34]86-*-sysv4* and sparc-*-solaris2*.
Don't set use_gnu_ld to no for *-*-sysv4; that only controls
whether we pass down --with-gnu-ld anyhow.

30 years ago * Makefile.in, configure.in, config/mips-gdb.exp,
Bill Cox [Thu, 19 May 1994 19:58:04 +0000 (19:58 +0000)]
* Makefile.in, configure.in, config/mips-gdb.exp,
          config/mt-a29k-udi, config/mt-i386-aout, config/mt-i960-nindy,
          config/mt-sparc-aout, config/udi-gdb.exp, config/unix-gdb.exp,
          config/unknown.exp, gdb.t00/default.exp, gdb.t00/help.exp,,
  gdb.t00/teststrategy.exp, gdb.t01/Makefile.in, gdb.t02/Makefile.in,
  gdb.t02/whatis.exp, gdb.t03/Makefile.in, gdb.t03/gdbme.c,
  gdb.t04/Makefile.in, gdb.t05/Makefile.in, gdb.t06/Makefile.in,
  gdb.t06/break.exp, gdb.t06/signals.c, gdb.t06/signals.exp,
  gdb.t08/Makefile.in, gdb.t08/opaque.exp, gdb.t09/Makefile.in,
  gdb.t10/Makefile.in, gdb.t11/Makefile.in, gdb.t12/Makefile.in,
  gdb.t13/Makefile.in, gdb.t15/Makefile.in, gdb.t15/funcargs.exp,
  gdb.t15/gdbme.c, gdb.t15/return.exp, gdb.t16/Makefile.in,
  gdb.t17/Makefile.in, gdb.t17/callfuncs.exp, gdb.t17/gdbme.c,
  gdb.t20/Makefile.in, gdb.t21/Makefile.in, gdb.t21/cplusfuncs.exp,
  gdb.t22/Makefile.in, gdb.t22/virtfunc.exp, gdb.t23/Makefile.in,
  gdb.t24/demangle.exp, lib/gdb.exp:  Check in Rob's testing
  changes from 94Q1.

30 years ago * config/tc-sparc.c (md_section_align): Don't change the size if
Ian Lance Taylor [Thu, 19 May 1994 19:44:02 +0000 (19:44 +0000)]
* config/tc-sparc.c (md_section_align): Don't change the size if
OBJ_ELF.

30 years ago Add support for ELF shared libraries.
Ian Lance Taylor [Thu, 19 May 1994 18:25:10 +0000 (18:25 +0000)]
Add support for ELF shared libraries.
* ld.h (ld_config_type): Add field dynamic_link.
* ldmain.c (main): Initialize config.dynamic_link to false.  Warn
on attempts to use -r with -relax, -call_shared or -s.
* lexsup.c (longopts): Separate OPTION_CALL_SHARED from
OPTION_NON_SHARED.  Add OPTION_IGNORE.  Adjust macro values
accordingly.  Add "dy" and "non_shared" options.  Change "Qy" to
OPTION_IGNORE for now.  Handle OPTION_CALL_SHARED and
OPTION_NON_SHARED by setting dynamic_link field accordingly.
Handle OPTION_IGNORE by ignoring it.  Clear dynamic_link field for
-r and -Ur.
* ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
opening a file with a .so extension first.
* emultempl/elf32.em: New file.
* emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
(NONPAGED_TEXT_START_ADDR): Likewise.
(TEMPLATE_NAME): Define as elf32.
(DATA_PLT): Define.
* emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
* scripttempl/elf.sc: Add placement for new dynamic sections.
Don't use CREATE_OBJECT_SYMBOLS.  Define _etext, _edata and _end
outside of any section.  Don't use ALIGN(8); just let one section
VMA follow another.  Put .dynbss in .bss.  Don't mention debugging
sections; they'll be handled correctly anyhow.
* Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.

30 years ago Add support for ELF shared libraries. Loosely based on work by
Ian Lance Taylor [Thu, 19 May 1994 18:23:40 +0000 (18:23 +0000)]
Add support for ELF shared libraries.  Loosely based on work by
Eric Youngdale <ericy@cais.com>.
* libelf.h (struct elf_backend_data): Add new fields for dynamic
linking: elf_backend_create_dynamic_sections,
elf_backend_adjust_dynamic_symbol,
elf_backend_size_dynamic_sections,
elf_backend_finish_dynamic_symbol,
elf_backend_finish_dynamic_sections.
(struct elf_link_hash_entry): Change type of align field to
bfd_size_type.  Add fields dynindx, dynstr_index, weakdef,
elf_link_hash_flags.
(struct elf_link_hash_table): Add fields dynobj, dynsymcount,
dynstr, bucketcount.
(bfd_elf32_swap_reloc_in, bfd_elf32_swap_reloc_out): Declare.
(bfd_elf32_swap_reloca_in, bfd_elf32_swap_reloca_out): Declare.
(bfd_elf32_swap_dyn_in, bfd_elf32_swap_dyn_out): Declare.
(bfd_elf32_add_dynamic_entry): Declare.
(bfd_elf64_swap_reloc_in, bfd_elf64_swap_reloc_out): Declare.
(bfd_elf64_swap_reloca_in, bfd_elf64_swap_reloca_out): Declare.
(bfd_elf64_swap_dyn_in, bfd_elf64_swap_dyn_out): Declare.
(bfd_elf64_add_dynamic_entry): Declare.
* elfcode.h (Elf_External_Dyn): Define.
(elf_swap_reloc_in): Define as macro using NAME.  Make externally
visible.
(elf_swap_reloc_out): Likewise.
(elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
(elf_swap_dyn_in, elf_swap_dyn_out): Define as macro using NAME
and as new externally visible function.
(elf_fake_sections): Set section type of dynamic sections based on
section names.
(elf_write_phdrs): Remove.
(assign_file_position_for_section): Add new align argument.
Change all callers.
(get_program_header_size): New static function.
(struct seg_info): Remove.
(map_program_segments): Completely rewrite.
(assign_file_positions_except_relocs): Completely rewrite.
(assign_file_positions_for_relocs): Don't set a file position for
sections which already have one.  Don't bother to align the file
position here.
(section_from_elf_index): Handle SHT_HASH and SHT_DYNAMIC
section types.
(elf_section_from_bfd_section): Likewise.
(elf_slurp_symbol_table): If section_from_elf_index fails, just
use bfd_abs_section rather than returning an error.
(elf_sizeof_headers): Make useful.
(elf_link_record_dynamic_symbol): New static function.
(elf_link_add_object_symbols): Handle dynamic objects.
(elf_link_create_dynamic_sections): New static function.
(elf_add_dynamic_entry): Define as macro using NAME and as new
externally visible function.
(NAME(bfd_elf,record_link_assignment)): New function.
(elf_buckets): New static variable.
(NAME(bfd_elf,size_dynamic_sections)): New function.
(struct elf_final_link_info): Add dynsym_sec and hash_sec fields.
(elf_bfd_final_link): Handle dynamic linking.  Create a section
symbol for all ELF sections, not all BFD sections.  Store section
symbol index in target_index field, not index field.  Traverse
over global symbols even if stripping.
(elf_link_output_extsym): Output dynamic symbols.  Mark symbols
defined by dynamic objects as undefined.
(elf_link_input_bfd): Ignore dynamic objects.  Use target_index
field for section relocs, and make sure it is set.
(elf_reloc_link_order): Use target_index field for section relocs,
and make sure it is set.
* elf.c (elf_link_hash_newfunc): Initialize dynindx, dynstr_index,
weakdef and elf_link_hash_flags fields.
(_bfd_elf_link_hash_table_create): Initialize dynobj, dynsymcount,
dynstr and bucketcount fields.
* elf32-target.h: Initialize new dynamic linking fields.
* elf64-target.h: Likewise.
* elf32-i386.c: New functions for dynamic linking support.
* elf32-sparc.c: Likewise.
* bfd-in.h (bfd_elf32_record_link_assignment): Declare.
(bfd_elf64_record_link_assignment): Declare.
(bfd_elf32_size_dynamic_sections): Declare.
(bfd_elf64_size_dynamic_sections): Declare.
* bfd-in2.h: Rebuilt.

30 years agoChange INSTALL_LASTness.
Steve Chamberlain [Thu, 19 May 1994 16:31:33 +0000 (16:31 +0000)]
Change INSTALL_LASTness.

30 years agoThu May 19 09:29:12 1994 Steve Chamberlain (sac@cygnus.com)
Steve Chamberlain [Thu, 19 May 1994 16:31:06 +0000 (16:31 +0000)]
Thu May 19 09:29:12 1994  Steve Chamberlain  (sac@cygnus.com)

* Makefile.in (INSTALL_LAST): Change operation so it works
on more flavors of make.
* configure.in (go32): Don't build libg++ or libio.

30 years ago * mh-hpux (CC): Add -Wp,-H256000 to avoid "too much defining"
Jeff Law [Thu, 19 May 1994 06:35:55 +0000 (06:35 +0000)]
    * mh-hpux (CC): Add -Wp,-H256000 to avoid "too much defining"
        errors from the HPUX 8 compilers.

30 years ago * config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
Bill Cox [Thu, 19 May 1994 00:06:29 +0000 (00:06 +0000)]
* config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
  config/mt-slite, config/mt-unix, config/mt-vxworks: Add
  Rob's new testing fragments.

30 years ago * interp.c (sim_*): Make result void where there isn't one.
David Edelsohn [Wed, 18 May 1994 21:37:08 +0000 (21:37 +0000)]
* interp.c (sim_*): Make result void where there isn't one.
(sim_set_pc): Delete.
(sim_info): Delete printf_fn arg, all callers changed.
Call printf_filtered instead.
(sim_close): New function.
(sim_load): New function.
(sim_create_inferior): Renamed from sim_set_args, all callers changed.
* run.c: #include <varargs.h>, "remote-sim.h".
(printf_filtered): New function.

30 years ago * compile.c: #include "bfd.h".
David Edelsohn [Wed, 18 May 1994 20:55:12 +0000 (20:55 +0000)]
* compile.c: #include "bfd.h".
(sim_*): Set result type to void where there isn't one.
(sim_resume, default case): Set cpu.exception to SIGILL.
(sim_trace): Delete.
(sim_set_pc): Delete.
(sim_info): Delete printf_fn arg, all callers changed.
Call printf_filtered.
(set_h8300h): New arg `flag', all callers changed.
(sim_close): New function.
(sim_load): New function.
(sim_create_inferior): Renamed from sim_set_args, all callers changed.
* run.c: #include <varargs.h>, "remote-sim.h".
(printf_filtered): New function.

30 years ago * remote-sim.h (sim_verbose): Delete.
David Edelsohn [Wed, 18 May 1994 20:42:06 +0000 (20:42 +0000)]
* remote-sim.h (sim_verbose): Delete.
Document callbacks needed.
(sim_*): Change result to void where there isn't one.
(sim_open): Clarify argument and error response.
(sim_close): Declare.
(sim_load): Change bfd_handle argument to file name.  Clarify result.
(sim_create_inferior): Renamed from sim_set_args.
(sim_set_pc): Delete.
(sim_info): Delete printf_fn argument.
* remote-sim.c (gdbsim_kill): Add comment describing purpose.
(gdbsim_load): Try sim_load first.
(gdbsim_create_inferior): Call sim_create_inferior.
(gdbsim_open): Handle args == NULL.  Update call to sim_open.
(gdbsim_close): Call sim_close.
(gdbsim_files_info): Update call to sim_info.
(gdbsim_ops): Realign comments.

30 years ago(decode_format): Allow TARGET_PTR_BIT to be non-constant.
David Edelsohn [Wed, 18 May 1994 20:04:23 +0000 (20:04 +0000)]
(decode_format): Allow TARGET_PTR_BIT to be non-constant.

30 years agoExpand my entry a bit.
Ian Lance Taylor [Wed, 18 May 1994 17:32:52 +0000 (17:32 +0000)]
Expand my entry a bit.

30 years ago * Makefile.in (install): Redirect output of ln to /dev/null.
Ian Lance Taylor [Wed, 18 May 1994 17:18:23 +0000 (17:18 +0000)]
* Makefile.in (install): Redirect output of ln to /dev/null.