binutils-gdb.git
30 years agounsanitize v9
Ken Raeburn [Fri, 17 Jun 1994 00:51:16 +0000 (00:51 +0000)]
unsanitize v9

30 years agounsanitize v9
Ken Raeburn [Fri, 17 Jun 1994 00:25:18 +0000 (00:25 +0000)]
unsanitize v9

30 years agofolding v9 change log in; stop sanitizing configure.in
Ken Raeburn [Thu, 16 Jun 1994 23:06:58 +0000 (23:06 +0000)]
folding v9 change log in; stop sanitizing configure.in

30 years ago * fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
Stan Shebs [Thu, 16 Jun 1994 23:04:55 +0000 (23:04 +0000)]
* fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
call it instead of doing normal loop.
* infcmd.c (attach_command): Don't call wait_for_inferior if
running Mach 3.
* infrun.c (proceed) [PREPARE_TO_PROCEED]: If defined, call
hook that can decide whether to step over the next breakpoint.
* utils.c (wrap_here): Abort if wrap_buffer not allocated.
(request_quit) [REQUEST_QUIT]: If defined, call it instead of
doing normal quit.

* Makefile.in (stop-gdb): New target.
* stop-gdb.c: New file, utility to get attention of waiting GDBs
in Mach 3.

30 years ago * configure.in: Improve sorting/formatting of hosts and targets.
Stan Shebs [Thu, 16 Jun 1994 22:02:24 +0000 (22:02 +0000)]
* configure.in: Improve sorting/formatting of hosts and targets.
(i[34]86-*-mach3*, i[34]86-*-osf1mk*, mips-*-mach3*,
m88*-*-mach3*, ns32k-*-mach3*): Recognize.
* Makefile.in (gdb-stop): New target.
* gdb-stop.c: New file, utility to gets attention of waiting GDBs
in Mach 3.

30 years ago * configure.in: Set UNDERSCORE in Makefile based on result of
Ian Lance Taylor [Thu, 16 Jun 1994 21:59:41 +0000 (21:59 +0000)]
* configure.in: Set UNDERSCORE in Makefile based on result of
invoking config.bfd with a second argument of ``_''.
* Makefile.in (underscore.c): Depend upon Makefile.  Don't try to
run $(CC) and $(NM), just use $(UNDERSCORE).  Create via temporary
file.
(demangle.o): Remove target.
($(NM_PROG)): Don't depend upon demangle.o, and don't link against
demangle.o.  It's in libiberty anyhow.
(cplus-dem.o): Don't depend upon demangle.o.
* binutils.texi: Mention -n and --no-strip-underscores arguments
to c++filt.

30 years ago * config.bfd: If second argument is ``_'', then, instead of
Ian Lance Taylor [Thu, 16 Jun 1994 21:58:48 +0000 (21:58 +0000)]
* config.bfd: If second argument is ``_'', then, instead of
echoing config file name, echo whether target uses leading
underscores on symbol names.  Add appropriate settings to
different cases.  Used by binutils/configure.in to set default for
c++filt.

30 years agoKeep v9 bits now.
Stan Shebs [Thu, 16 Jun 1994 21:18:05 +0000 (21:18 +0000)]
Keep v9 bits now.

30 years agov9 unsanitization
Ken Raeburn [Thu, 16 Jun 1994 21:04:02 +0000 (21:04 +0000)]
v9 unsanitization

30 years agokeep makefile.dos
Ken Raeburn [Thu, 16 Jun 1994 20:27:39 +0000 (20:27 +0000)]
keep makefile.dos

30 years ago * lexsup.c (parse_args): Add -shared to longopts, and handle it.
Ian Lance Taylor [Thu, 16 Jun 1994 19:32:07 +0000 (19:32 +0000)]
* lexsup.c (parse_args): Add -shared to longopts, and handle it.
* ldmain.c (main): Initialize link_info.shared to false.  Give
error if link_info.relocateable and link_info.shared are both set.

30 years ago * elfcode.h (elf_bfd_final_link): If trying to generate a shared
Ian Lance Taylor [Thu, 16 Jun 1994 19:30:49 +0000 (19:30 +0000)]
* elfcode.h (elf_bfd_final_link): If trying to generate a shared
object, warn and return false.

30 years ago * bfdlink.h (struct bfd_link_info): Add new field shared.
Ian Lance Taylor [Thu, 16 Jun 1994 19:29:26 +0000 (19:29 +0000)]
* bfdlink.h (struct bfd_link_info): Add new field shared.

30 years ago * configure.in: If EMUL_EXTRA* is defined in a config file, treat
Ian Lance Taylor [Thu, 16 Jun 1994 19:11:03 +0000 (19:11 +0000)]
* configure.in: If EMUL_EXTRA* is defined in a config file, treat
it as naming an emulation to be added to EMULATION_OFILES.
* config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.

30 years ago * Makefile.in: Rebuilt dependencies.
Ian Lance Taylor [Thu, 16 Jun 1994 19:01:48 +0000 (19:01 +0000)]
* Makefile.in: Rebuilt dependencies.
(ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
eelf64_sparc.o.  Remove $(OTHER_EMULATIONS).
(ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
* config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
(ei386linux.c): Remove; now in Makefile.in.
* config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
* config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
* config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
* config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
(eelf64_sparc.c): Remove; now in Makefile.in.
* config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
(eelf32_sparc.c): Remove; now in Makefile.in.

30 years agoThu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
Ian Lance Taylor [Thu, 16 Jun 1994 18:36:40 +0000 (18:36 +0000)]
Thu Jun 16 14:25:22 1994  Eric Youngdale  (ericy@cais.cais.com)

* emultempl/linux.em: New file providing support for linking
against Linux shared libraries.
* config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
* emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.

30 years agoThu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
Ian Lance Taylor [Thu, 16 Jun 1994 18:29:21 +0000 (18:29 +0000)]
Thu Jun 16 14:25:22 1994  Eric Youngdale  (ericy@cais.cais.com)

* i386linux.c: Many new functions and definitions for linker
support for Linux shared libraries.
* bfd-in.h (bfd_linux_size_dynamic_sections): Declare.
* bfd-in2.h: Rebuild.

30 years ago * aoutx.h (NAME(aout,some_aout_object_p)): Accept BMAGIC objects
Ian Lance Taylor [Thu, 16 Jun 1994 18:25:00 +0000 (18:25 +0000)]
* aoutx.h (NAME(aout,some_aout_object_p)): Accept BMAGIC objects
and treat them as OMAGIC.

30 years ago * aout64.h (BMAGIC): Define.
Ian Lance Taylor [Thu, 16 Jun 1994 18:24:14 +0000 (18:24 +0000)]
* aout64.h (BMAGIC): Define.

30 years ago * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
Ian Lance Taylor [Thu, 16 Jun 1994 16:32:03 +0000 (16:32 +0000)]
* ldexp.c (exp_print_tree): Don't crash if etree_rel section has
no owner--it might be bfd_abs_section.  From Eric Youngdale
<ericy@cais.cais.com>.

30 years ago * scripttempl/aout.sc: Let sections align to their natural
Ian Lance Taylor [Thu, 16 Jun 1994 16:23:19 +0000 (16:23 +0000)]
* scripttempl/aout.sc: Let sections align to their natural
boundaries.

30 years ago* as.c (parse_args): Cast xmalloc return value.
Ken Raeburn [Thu, 16 Jun 1994 01:08:16 +0000 (01:08 +0000)]
* as.c (parse_args): Cast xmalloc return value.

30 years agov9, vms changes and some stuff i checked in recently but didn't log
Ken Raeburn [Thu, 16 Jun 1994 01:04:00 +0000 (01:04 +0000)]
v9, vms changes and some stuff i checked in recently but didn't log

30 years agoWed Jun 15 17:36:07 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Thu, 16 Jun 1994 01:03:01 +0000 (01:03 +0000)]
Wed Jun 15 17:36:07 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-make.in (.c.o, .gc.o): Prefix segment names with gdb_.
(top.c.o, annotate.c.o): Add build rules.
* macgdb.r (SysTypes.r): Include.
('vers'): New resource, version info.
(mFile, mEdit, mDebug): Enable all menu items.
(mDebug): Add key equivalents for continue, step, next.
(wConsole): Add zoom and close boxes to window.
* mac-xdep.c (new_console_window): New function, code taken from
mac_init.
(mac_command_loop): Use GetCaretTime for wait interval, call
do_idle on null events.
(do_idle): New function.
(zoom_window): Implement zooming.
(v_scroll_proc): New function, handles vertical scrolling.
(activate_window): Do activation of console window.
(do_menu_command): Implement items of file, edit, and debug menus.
(do_keyboard_command): Fix command extraction.
(adjust_console_sizes, adjust_console_text): New functions.
(hacked_fprintf, hacked_vfprintf, hacked_fputs, hacked_fputc,
hacked_putc): Don't call draw_console.
* ser-mac.c (mac_open): Add an error message for invalid ports.
(first_mac_write): New global.
(mac_write): Use first_mac_write to sleep on first several writes.

30 years ago Fri Jun 3 17:25:08 1994 Pat Rankin (rankin@eql.caltech.edu)
Ken Raeburn [Thu, 16 Jun 1994 01:02:18 +0000 (01:02 +0000)]
Fri Jun  3 17:25:08 1994  Pat Rankin  (rankin@eql.caltech.edu)

* config/obj-vms.h (DBG_S_C_COMPLX4, DBG_S_C_COMPLX8): define
these new VMS symbol-type macros for `complex float' and
`complex double' support.  Their values come from the existing
DSC$K_DTYPE_FC and DSC$K_DTYPE_DC macros in <descrip.h>.
(DBG_S_C_REAL8_G, DBG_S_C_COMPLX8_G): G_float versions of
REAL8 and COMPLX8; not used yet, because gcc outputs the same
.stabs for `double' regardless of whether `-mg' is used.
config/obj-vms.c (VMS_typedef_parse) [case 'r']: add entries
for gcc2's predefined types "complex float", "complex double",
and "complex long double" (identical to complex double).

30 years agoFor sparc64 target, use sparc cpu files and add sparcv9 to extra_defs. No
Ken Raeburn [Thu, 16 Jun 1994 00:49:06 +0000 (00:49 +0000)]
For sparc64 target, use sparc cpu files and add sparcv9 to extra_defs.  No
longer treat sparc64-*-aout* specially.

30 years ago(config-stamp): If $(defs) contains multiple words, emit a #define line for
Ken Raeburn [Thu, 16 Jun 1994 00:46:20 +0000 (00:46 +0000)]
(config-stamp): If $(defs) contains multiple words, emit a #define line for
each.

30 years agosparc v9 unsanitization
Ken Raeburn [Thu, 16 Jun 1994 00:36:48 +0000 (00:36 +0000)]
sparc v9 unsanitization

30 years ago * libelf.h (struct elf_obj_tdata): New field dt_needed_name.
Ian Lance Taylor [Thu, 16 Jun 1994 00:01:32 +0000 (00:01 +0000)]
* libelf.h (struct elf_obj_tdata): New field dt_needed_name.
(elf_dt_needed_name): New accessor macro.
* elfcode.h (elf_link_add_object_symbols): If elf_dt_needed_name
is set, use that instead of the filename for the DT_NEEDED dynamic
entry.
* elf.c (bfd_elf_set_dt_needed_name): New function.
* bfd-in.h (bfd_elf_set_dt_needed_name): Declare.
* bfd-in2.h: Rebuilt.

30 years ago * ldemul.h (ldemul_open_dynamic_archive): Declare.
Ian Lance Taylor [Wed, 15 Jun 1994 23:49:01 +0000 (23:49 +0000)]
* ldemul.h (ldemul_open_dynamic_archive): Declare.
(ld_emulation_xfer_type): Add new field open_dynamic_archive.
* ldemul.c: Include ldexp.h and ldlang.h.
(ldemul_open_dynamic_archive): New function.
* ldfile.h (ldfile_open_file_search): Declare.
* ldfile.c: Include ldemul.h.
(try_open_bfd): Rename from cache_bfd_openr.  Return boolean
argument, not bfd *.  Change all callers.
(ldfile_open_file_search): Rename from open_a.  Return boolean
argument, not bfd *.  Clean up.  Change all callers.
(ldfile_open_file): If doing a dynamic link, call
ldemul_open_dynamic_archive rather than assuming the extension of
a dynamic object is ".so".
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
New function.
(ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
field.
* emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.

30 years agocomment on v9 stuff
Ken Raeburn [Wed, 15 Jun 1994 23:27:54 +0000 (23:27 +0000)]
comment on v9 stuff

30 years agoadded elf64-sparc.*
Ken Raeburn [Wed, 15 Jun 1994 22:55:16 +0000 (22:55 +0000)]
added elf64-sparc.*

30 years agounsanitizing v9
Ken Raeburn [Wed, 15 Jun 1994 22:41:46 +0000 (22:41 +0000)]
unsanitizing v9

30 years agoregenerated (unsanitize v9)
Ken Raeburn [Wed, 15 Jun 1994 22:40:59 +0000 (22:40 +0000)]
regenerated (unsanitize v9)

30 years agounsanitize v9
Ken Raeburn [Wed, 15 Jun 1994 22:31:16 +0000 (22:31 +0000)]
unsanitize v9

30 years agounsanitize v9
Ken Raeburn [Wed, 15 Jun 1994 22:10:50 +0000 (22:10 +0000)]
unsanitize v9

30 years agoTweak v9 support to ready it for release.
Ken Raeburn [Wed, 15 Jun 1994 22:05:40 +0000 (22:05 +0000)]
Tweak v9 support to ready it for release.

30 years agoComment fix.
Ian Lance Taylor [Wed, 15 Jun 1994 21:23:28 +0000 (21:23 +0000)]
Comment fix.

30 years ago * lexsup.c (parse_args): Accept -static as a synonym for
Ian Lance Taylor [Wed, 15 Jun 1994 21:22:43 +0000 (21:22 +0000)]
* lexsup.c (parse_args): Accept -static as a synonym for
-non_shared.

30 years ago * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
Ian Lance Taylor [Wed, 15 Jun 1994 21:04:21 +0000 (21:04 +0000)]
* ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
* lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.

30 years ago Let the user change the dynamic linker used by ELF code.
Ian Lance Taylor [Wed, 15 Jun 1994 20:46:43 +0000 (20:46 +0000)]
Let the user change the dynamic linker used by ELF code.
* ld.h (args_type): Add new field interpreter.
* lexsup.c (parse_args): Add dynamic-linker to longopts, and
handle it.
* ldmain.c (main): Initialize command_line.interpreter to NULL.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
the ELF backend to return the .interp section.  If
command_line.interpreter is not NULL, set the contents of .interp
to it.
* ld.texinfo: Mention -dynamic-linker.

30 years ago * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
Ian Lance Taylor [Wed, 15 Jun 1994 20:44:54 +0000 (20:44 +0000)]
* config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
generic.em.

30 years ago * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add sinterpptr
Ian Lance Taylor [Wed, 15 Jun 1994 19:58:59 +0000 (19:58 +0000)]
* elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add sinterpptr
argument, and set it to the .interp section.
* bfd-in.h (bfd_elf32_size_dynamic_sections): Update prototype.
(bfd_elf64_size_dynamic_sections): Likewise.
* bfd-in2.h: Rebuilt.

30 years ago * coff-sparc.c (SWAP_OUT_RELOC_EXTRA): Define to clear the r_spare
Ian Lance Taylor [Wed, 15 Jun 1994 19:54:15 +0000 (19:54 +0000)]
* coff-sparc.c (SWAP_OUT_RELOC_EXTRA): Define to clear the r_spare
field of the reloc rather than letting it be garbage.

30 years ago * config/obj-coff.c (coff_frob_symbol): Use C_STAT for the .text
Ian Lance Taylor [Wed, 15 Jun 1994 19:51:21 +0000 (19:51 +0000)]
* config/obj-coff.c (coff_frob_symbol): Use C_STAT for the .text
section symbol, not C_LABEL.

30 years agoWed Jun 15 12:10:10 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 15 Jun 1994 19:49:41 +0000 (19:49 +0000)]
Wed Jun 15 12:10:10 1994  Stan Shebs  (shebs@andros.cygnus.com)

* config/mt-a29k-udi, config/mt-i960-nindy, config/mt-sparc-aout:
Remove all CC, etc definitions.
* config/mt-hpux: New file.
* config/mt-mips-ecoff (CFLAGS_FOR_TARGET): Remove:
(CFLAGS, LDFLAGS): Define.
* config/mt-slite (CFLAGS_FOR_TARGET): Change to LDFLAGS.

30 years agoWed Jun 15 12:10:10 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 15 Jun 1994 19:31:19 +0000 (19:31 +0000)]
Wed Jun 15 12:10:10 1994  Stan Shebs  (shebs@andros.cygnus.com)

* Makefile.in (site.exp): Don't insert host_os, etc.
(just-check): Just use RUNTEST with RUNTESTFLAGS only.
(distclean): Check existence of subdir.
* gdb.base/configure.in (hppa*-*-hpux*): Recognize.
* gdb.base/Makefile.in: General cleanup and simplification.
Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
to build executables. Use default rule to build .o files.
(EXPECT, RUNTEST, CC): Fix relative pathname.
(site.exp): Don't insert host_os, etc.
* gdb.base/signals.c (main): Don't call signal unless SIGALRM
and/or SIGUSR1 defined.
* gdb.base/watchpoint.c: Don't include stdio.h a second time.
* gdb.c++/Makefile.in: General cleanup and simplification.
Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
(CFLAGS): Remove.
(EXPECT, RUNTEST_FOR_TARGET, CXX): Fix relative pathname.

30 years ago * lexsup.c (parse_args): Sort out the option macros and change the
Ian Lance Taylor [Wed, 15 Jun 1994 17:55:46 +0000 (17:55 +0000)]
* lexsup.c (parse_args): Sort out the option macros and change the
definitions to make it easier to add a new option.

30 years ago * archive.c (bfd_slurp_armap): Recognize __.SYMDEF/ as well as
Ian Lance Taylor [Wed, 15 Jun 1994 17:22:41 +0000 (17:22 +0000)]
* archive.c (bfd_slurp_armap): Recognize __.SYMDEF/ as well as
__.SYMDEF; the former was used in old Linux archives.  From
jrs@world.std.com (Rick Sladkey).

30 years ago * i386linux.c (i386linux_write_object_contents): Define; like
Ian Lance Taylor [Wed, 15 Jun 1994 17:15:03 +0000 (17:15 +0000)]
* i386linux.c (i386linux_write_object_contents): Define; like
MY(write_object_contents) in aout-target.h, but set MACHTYPE to
M_386.  From jrs@world.std.com (Rick Sladkey).
(MY_write_object_contents): Define.

30 years ago * config/tc-mips.c (mips_ip): Permit a modifier in 'o' case.
Ian Lance Taylor [Wed, 15 Jun 1994 17:00:04 +0000 (17:00 +0000)]
* config/tc-mips.c (mips_ip): Permit a modifier in 'o' case.

30 years ago * config/tc-mips.c (mips_ip): Permit non constant expressions in
Ian Lance Taylor [Wed, 15 Jun 1994 16:49:51 +0000 (16:49 +0000)]
* config/tc-mips.c (mips_ip): Permit non constant expressions in
'u' case: lets lui %hi(foo) work correctly.

30 years ago * scripttempl/aout.sc: Define __etext and __edata to go along with
Ian Lance Taylor [Wed, 15 Jun 1994 16:17:48 +0000 (16:17 +0000)]
* scripttempl/aout.sc: Define __etext and __edata to go along with
_etext and _edata.

30 years ago * nm.c (long_options): Add --no-demangle to turn off --demangle,
Ian Lance Taylor [Wed, 15 Jun 1994 16:13:59 +0000 (16:13 +0000)]
* nm.c (long_options): Add --no-demangle to turn off --demangle,
and --no-cplus for Linux compatibility.
(usage): Mention --no-demangle.
* binutils.texi: Document --no-demangle.

30 years ago * ldver.c (help): Mention -traditional-format.
Ian Lance Taylor [Wed, 15 Jun 1994 16:01:17 +0000 (16:01 +0000)]
* ldver.c (help): Mention -traditional-format.

30 years ago * aoutx.h (translate_from_native_sym_flags): Treat N_SETV symbols
Ian Lance Taylor [Wed, 15 Jun 1994 15:29:44 +0000 (15:29 +0000)]
* aoutx.h (translate_from_native_sym_flags): Treat N_SETV symbols
as N_DATA symbols.
(aout_link_add_symbols): Likewise.

30 years agoComment change.
Ian Lance Taylor [Wed, 15 Jun 1994 15:17:09 +0000 (15:17 +0000)]
Comment change.

30 years agoInit current_directory.
Thomas Lord [Wed, 15 Jun 1994 08:04:44 +0000 (08:04 +0000)]
Init current_directory.

30 years ago * ld.h (ld_config_type): Add new field traditional_format.
Ian Lance Taylor [Wed, 15 Jun 1994 06:01:45 +0000 (06:01 +0000)]
* ld.h (ld_config_type): Add new field traditional_format.
* lexsup.c (parse_args): Add traditional_format to longopts, and
handle it.
* ldmain.c (main): Initialize config.traditional_format to false.
* ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
flags of output_bfd according to config.traditional_format.
* ld.texinfo: Document -traditional-format.

30 years ago * aoutx.h: Rewrite symbol duplicate elimination to use BFD hash
Ian Lance Taylor [Wed, 15 Jun 1994 05:48:14 +0000 (05:48 +0000)]
* aoutx.h: Rewrite symbol duplicate elimination to use BFD hash
tables.
(struct stringtab_entry, struct stringtab_data): Remove.
(HASHMAXLEN, HASH_CHAR, hash, compare, log2, emit_strtab): Remove.
(struct strtab_hash_entry, struct strtab_hash): Define.
(strtab_hash_newfunc, strtab_hash_lookup): Define.
(stringtab_free, emit_stringtab): Define.
(stringtab_init, add_to_stringtab): Rewrite.
(NAME(aout,write_syms)): Use new stringtab code.
(struct aout_final_link_info, NAME(aout,final_link)): Likewise.
(aout_link_write_symbols, aout_link_write_other_symbol): Likewise.

30 years ago * bfd-in.h (BFD_TRADITIONAL_FORMAT): Define new BFD flag to
Ian Lance Taylor [Wed, 15 Jun 1994 05:46:46 +0000 (05:46 +0000)]
* bfd-in.h (BFD_TRADITIONAL_FORMAT): Define new BFD flag to
request BFD to write object in the traditional format, whatever
that means for the particular backend.
* bfd-in2.h: Rebuilt.

30 years ago * ldctor.c (ldctor_add_entry): Add entries to a set in the order
Ian Lance Taylor [Wed, 15 Jun 1994 03:12:42 +0000 (03:12 +0000)]
* ldctor.c (ldctor_add_entry): Add entries to a set in the order
they are encountered.

30 years agoCorrect copyright date and add usual blank lines in header.
Ian Lance Taylor [Wed, 15 Jun 1994 02:47:49 +0000 (02:47 +0000)]
Correct copyright date and add usual blank lines in header.

30 years agoNew features. Less bugs.
Thomas Lord [Wed, 15 Jun 1994 00:28:50 +0000 (00:28 +0000)]
New features. Less bugs.

30 years ago * result.ch, result.exp, Makefile.in: New test case.
Per Bothner [Tue, 14 Jun 1994 23:23:14 +0000 (23:23 +0000)]
* result.ch, result.exp, Makefile.in:  New test case.
* pr-4975.ch, pr-4975-grt.ch, pr-4975.exp, Makefile.in:  Ditto.

30 years agoModified Files:
Kung Hsu [Tue, 14 Jun 1994 23:22:44 +0000 (23:22 +0000)]
Modified Files:
breakpoint.c ChangeLog

        * breakpoint.c: annotate changes lost at merge, put back in.

30 years agoTue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
Ian Lance Taylor [Tue, 14 Jun 1994 22:07:40 +0000 (22:07 +0000)]
Tue Jun 14 18:05:09 1994  Eric Youngdale  (ericy@cais.cais.com)

* emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
(NONPAGED_TEXT_START_ADDR): Define as 0x20.

30 years ago * libaout.h (struct aoutdata): Add q_magic_format to subformat
Ian Lance Taylor [Tue, 14 Jun 1994 22:04:54 +0000 (22:04 +0000)]
* libaout.h (struct aoutdata): Add q_magic_format to subformat
enum.
* aout-target.h (MY_bfd_copy_private_bfd_data): Define as function
if not already defined.  Copy subformat information.
(MY_text_includes_header): Define as 0 if not already defined.
(MY(backend_data)): Use MY_text_includes_header rather than 0.
(MY_final_link_callback): Rename from final_link_callback, and
define only if MY_final_link_callback is not already defined.
(MY_bfd_final_link): Rename use of final_link_callback to
MY_final_link_callback.
* aoutx.h (NAME(aout,some_aout_object_p)): Handle QMAGIC like
ZMAGIC, but set the subformat to q_magic_format.  Abort if the
magic number if not recognized.
(adjust_z_magic): Use QMAGIC if q_magic_format.
* i386linux.c (MY_text_includes_header): Define as 1.
(i386linux_bfd_final_link): New static function.
(MY_bfd_final_link): Define as i386linux_bfd_final_link.

* aoutx.h (translate_to_native_sym_flags): Check both section and
output_section against sections of abfd.

30 years agoFor PR 4865.
Ian Lance Taylor [Tue, 14 Jun 1994 17:06:08 +0000 (17:06 +0000)]
For PR 4865.
* libecoff.h (struct ecoff_link_hash_entry): Change type of
written from boolean to char.  Add new field small.
* ecoff.c (ecoff_link_hash_newfunc): Initialize written to 0
rather than false.  Initialize small to 0.
(ecoff_link_add_externals): If ECOFF type is scSUndefined, set
small.  If small is set, and hash table type is common, force the
symbol into a section named SCOMMON and change the ECOFF type from
scCommon to scSCommon.
(ecoff_link_write_external): Set written to 1 rather than true.
* coff-mips.c (mips_relocate_section): Correct JMPADDR reloc
overflow check to consider section VMA of input file.

30 years agoMon Jun 13 17:28:50 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Tue, 14 Jun 1994 00:47:06 +0000 (00:47 +0000)]
Mon Jun 13 17:28:50 1994  Stan Shebs  (shebs@andros.cygnus.com)

* config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
i387-tdep.o.

30 years ago * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
Ian Lance Taylor [Mon, 13 Jun 1994 22:34:46 +0000 (22:34 +0000)]
* scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
_FTEXT, _ETEXT and _FDATA.  Dont define _END.

30 years ago * ldfile.c (open_a): If this is not an archive, try to open it in
Ian Lance Taylor [Mon, 13 Jun 1994 21:35:27 +0000 (21:35 +0000)]
* ldfile.c (open_a): If this is not an archive, try to open it in
the current directory before searching for it.

30 years ago * lexsup.c (parse_args): Treat -i as a synonym for -r.
Ian Lance Taylor [Mon, 13 Jun 1994 21:00:20 +0000 (21:00 +0000)]
* lexsup.c (parse_args): Treat -i as a synonym for -r.

30 years ago * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
Ian Lance Taylor [Mon, 13 Jun 1994 20:25:28 +0000 (20:25 +0000)]
* ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
BLOCK works in a section address as documented.

30 years ago * ldgram.y (YYDEBUG): Don't define.
Ian Lance Taylor [Mon, 13 Jun 1994 19:47:50 +0000 (19:47 +0000)]
* ldgram.y (YYDEBUG): Don't define.

30 years agoModified Files:
Kung Hsu [Mon, 13 Jun 1994 19:31:01 +0000 (19:31 +0000)]
Modified Files:
.Sanitize ChangeLog

        * .Sanitize: change name from sparclite-*.c to sparcl-*.c.

30 years ago * aoutf1.h (aout_32_sunos4_write_object_contents): Handle a
Ian Lance Taylor [Mon, 13 Jun 1994 18:25:12 +0000 (18:25 +0000)]
* aoutf1.h (aout_32_sunos4_write_object_contents): Handle a
machine type of 68000.
* aoutx.h (NAME(aout,machine_type)): Add new argument unknown.
Set *unknown to true if machine type is really unknown, as opposed
to M_UNKNOWN for the 68000.
(NAME(aout,set_arch_mach)): Change NAME(aout,machine_type) call
accordingly.
* libaout.h (NAME(aout,machine_type)): Add new argument to
prototype.

30 years ago * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
Ian Lance Taylor [Mon, 13 Jun 1994 16:13:10 +0000 (16:13 +0000)]
* config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
to put a common symbol in a set.

30 years ago * som.c (EXEC_AUX_ID): Define based on availablity of HPUX_AUX_ID
Jeff Law [Mon, 13 Jun 1994 02:31:43 +0000 (02:31 +0000)]
* som.c (EXEC_AUX_ID): Define based on availablity of HPUX_AUX_ID
or HIUX_AUX_ID.
(som_begin_writing): Use EXEC_AUX_ID instead of HPUX_AUX_ID.
(som_write_armap): Use CPU_PA_RISC1_0 as the magic number.  Note
som.c is careful to always define CPU_PA_RISC1_0.

30 years agoConditionalize on mips-idt-ecoff.
Stan Shebs [Sun, 12 Jun 1994 23:59:15 +0000 (23:59 +0000)]
Conditionalize on mips-idt-ecoff.

30 years agoSun Jun 12 16:38:42 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 12 Jun 1994 23:41:37 +0000 (23:41 +0000)]
Sun Jun 12 16:38:42 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-make.in (C, CFLAGS): Removed definitions.
(ALL_CFLAGS): Define.
Set default rule to use {CC} instead of {C}.

30 years agoSun Jun 12 16:30:34 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 12 Jun 1994 23:37:35 +0000 (23:37 +0000)]
Sun Jun 12 16:30:34 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-mh-mpw (CC): Define ALMOST_STDC.
(CFLAGS): Remove ALMOST_STDC, -mc68881.
(LDFLAGS): add -w.

30 years agoSun Jun 12 16:25:36 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sun, 12 Jun 1994 23:29:43 +0000 (23:29 +0000)]
Sun Jun 12 16:25:36 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-configure (config.status): Write only if changed.
* mpw-config.in (readline): Configure it (not built, just used for
definitions).
* mpw-README: Add/update information.

30 years ago * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
Peter Schauer [Sun, 12 Jun 1994 11:11:39 +0000 (11:11 +0000)]
* config/m68k/dpx2.mh (NATDEPFILES):  Remove duplicate inclusion
of inftarg.o.
* config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER):  Define to inhibit
writing of floating registers, the dpx2 kernel disallows it.

30 years ago * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
Peter Schauer [Sun, 12 Jun 1994 11:10:13 +0000 (11:10 +0000)]
* config/m68k/dpx2.mh (NATDEPFILES):  Remove duplicate inclusion
of inftarg.o.
* config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER):  Define to inhibit
writing of floating registers, the dpx2 kernel disallows it.
* irix5-nat.c (LM_ADDR):  The loaded address of the shared library
is contained in o_praw.
* irix5-nat.c (solib_map_sections):  Adjust sections by the
difference between the loaded address and the prelinked address.
* irix5-nat.c (solib_address):  Use LM_ADDR for the loaded start
address.
* mdebugread.c (parse_symbol):  Do not relocate stEnd/scText
symbols, their value is absolute.
* mdebugread.c (parse_partial_symbols):  Handle Irix 5.2 shared
libraries fh->adr fields of zero. Relocate minimal symbol values
upon readin. Relocate non-stabs symbols upon readin.
* mdebugread.c (psymtab_to_symtab_1):  Use pst->textlow for the
start address of the outermost block.
* mdebugread.c (parse_lines, parse_procedure):  Pass in pst
instead of section_offsets and use relocated pst->textlow for
line number and procedure address relocations.

From gmo@MicroUnity.com (Guillermo A. Loyola):
* mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
Handle SGI Irix5 stIndirect symbol type.

30 years ago * symconst.h: Pick up SGI define for stIndirect.
Peter Schauer [Sun, 12 Jun 1994 10:56:35 +0000 (10:56 +0000)]
* symconst.h:  Pick up SGI define for stIndirect.

30 years ago * history.c: Swap inclusion of rldefs.h and chardefs.h to avoid
Peter Schauer [Sun, 12 Jun 1994 10:54:41 +0000 (10:54 +0000)]
* history.c:  Swap inclusion of rldefs.h and chardefs.h to avoid
CTRL macro redefinition.

30 years ago Add weak symbols as an extension to a.out.
Ian Lance Taylor [Sat, 11 Jun 1994 20:45:49 +0000 (20:45 +0000)]
Add weak symbols as an extension to a.out.
* read.c (pseudo_set): Only preserve external bit for OBJ_AOUT and
OBJ_BOUT if not BFD_ASSEMBLER.
* config/aout_gnu.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB):
Define as in ../include/aout/aout64.h.
* config/obj-aout.h (OBJ_SYMFIELD_TYPE): If not BFD_ASSEMBLER,
define as char.
(S_GET_WEAK, S_SET_WEAK): Define if not BFD_ASSEMBLER.
* config/obj-aout.c (obj_pseudo_table): Add "weak".
(obj_emit_symbols): Adjust type of weak symbols.
(obj_aout_weak): New static function.

30 years ago Add weak symbols as an extension to a.out.
Ian Lance Taylor [Sat, 11 Jun 1994 20:40:59 +0000 (20:40 +0000)]
Add weak symbols as an extension to a.out.
* aoutx.h (sym_in_text_section): Don't define.
(sym_in_data_section, sym_in_bss_section): Likewise.
(sym_is_undefined, sym_is_global_defn): Likewise.
(sym_is_debugger_info, sym_is_fortrancommon): Likewise.
(sym_is_absolute, sym_is_indirect): Likewise.
(translate_from_native_sym_flags): Rewrite for clarity.  Rearrange
arguments and change caller.  Handle weak symbols.
(translate_to_native_sym_flags): Likewise.
(aout_link_check_ar_symbols): Don't ignore weak symbols.  Pull
object in from archive if a weak defintion is found for an
existing undefined symbol.
(aout_link_add_symbols): Put all cases in switch.  Set flags of an
undefined symbol to 0.  Handle weak symbols.
(aout_link_write_symbols): Handle weak symbols.
(aout_link_write_other_symbol): Likewise.
(aout_link_input_section_std): Likewise.
(aout_link_input_section_ext): Likewise.
* sunos.c (sunos_write_dynamic_symbol): Likewise.

30 years ago Add weak symbols as an extension to a.out.
Ian Lance Taylor [Sat, 11 Jun 1994 20:39:54 +0000 (20:39 +0000)]
Add weak symbols as an extension to a.out.
* aout64.h (N_WEAKU, N_WEAKA, N_WEAKT, N_WEAKD, N_WEAKB): Define.
* stab.def: Update symbol value table.

30 years agoModified Files:
Kung Hsu [Sat, 11 Jun 1994 01:09:25 +0000 (01:09 +0000)]
Modified Files:
breakpoint.c ChangeLog

        * breakpoint.c: fix a syntax error native cc does not like.

30 years agoModified Files:
Kung Hsu [Sat, 11 Jun 1994 00:03:28 +0000 (00:03 +0000)]
Modified Files:
sparclite.mt

* change sparclite-tdep.o to sparcl-tdep.o.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 23:55:12 +0000 (23:55 +0000)]
Modified Files:
Makefile.in ChangeLog

        * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.

30 years agoAdded Files:
Kung Hsu [Fri, 10 Jun 1994 23:26:59 +0000 (23:26 +0000)]
Added Files:
  sparcl-tdep.c sparcl-stub.c
Removed Files:
sparclite-tdep.c sparclite-stub.c

* change file name because fisrt 8 chars has to be unique.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 22:37:48 +0000 (22:37 +0000)]
Modified Files:
.Sanitize

        * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.

30 years agoModified Files:
Kung Hsu [Fri, 10 Jun 1994 21:58:48 +0000 (21:58 +0000)]
Modified Files:
ChangeLog

        * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.

30 years ago * config/obj-elf.c (obj_elf_section): Don't set any flags based on
Ian Lance Taylor [Fri, 10 Jun 1994 21:42:30 +0000 (21:42 +0000)]
* config/obj-elf.c (obj_elf_section): Don't set any flags based on
the type of a special section.

30 years agoDon't sanitize out SPARC v9 stuff.
Ian Lance Taylor [Fri, 10 Jun 1994 21:22:31 +0000 (21:22 +0000)]
Don't sanitize out SPARC v9 stuff.

30 years agoRestore sparc64 targets clobbered in 1994/04/07 checkin.
Ian Lance Taylor [Fri, 10 Jun 1994 21:19:49 +0000 (21:19 +0000)]
Restore sparc64 targets clobbered in 1994/04/07 checkin.

30 years ago * nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
Ian Lance Taylor [Fri, 10 Jun 1994 21:14:49 +0000 (21:14 +0000)]
* nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.