Ian Lance Taylor [Fri, 12 Aug 1994 15:28:19 +0000 (15:28 +0000)]
* configure.host (sparc-*-solaris2*): Use solaris2, not sysv4.
The linker depends upon configuring for solaris2.
* hosts/solaris2.h: New file; include hosts/sysv4.h.
* config/solaris2.mh: New file; copy of config/sysv4.mh.
Ian Lance Taylor [Thu, 11 Aug 1994 19:00:26 +0000 (19:00 +0000)]
Add support for removing named sections to objcopy and strip.
* objcopy.c (struct section_list): Define.
(remove_sections): New static variable.
(strip_options, copy_options): Add remove-section.
(copy_usage, strip_usage): Mention -R and --remove-section.
(setup_section): If section is in remove_sections list, ignore it.
(copy_section): Likewise.
(strip_main, copy_main): Handle -R.
* binutils.texi, objcopy.1, strip.1: Document new options.
Ian Lance Taylor [Wed, 10 Aug 1994 17:15:05 +0000 (17:15 +0000)]
* aoutx.h (adjust_z_magic): Make sure data section is padded to
page boundary when the VMA is set by the calling program. From
Eric Youngdale <ericy@cais.cais.com>.
Stu Grossman [Wed, 10 Aug 1994 02:47:48 +0000 (02:47 +0000)]
* configure.in: Recognize ppc-*-netware.
* config/te-ppcnw.h: New file to support Power-PC/Netware
configurations. Currently, it just enables the use of backslash
escapes in string directives.
* config/tc-ppc.c (ppc_stabx): Call expression directly, rather
than via pseudo_set. If expression is a symbol, move stab symbol
to just after symbol from expression.
Stu Grossman [Tue, 9 Aug 1994 17:27:01 +0000 (17:27 +0000)]
* infrun.c (wait_for_inferior): Call target_resume() upon
detection of new processes.
* procfs.c (create_procinfo): Return pointer to new procinfo
structure.
* (do_detach): Spacing & formatting cleanup.
* (procfs_wait): Move wait_again label to ensure that we really
wait again. On exit from fork, release new child from gdbs'
clutches.
* (procfs_set_sproc_trap): Enable trapping of fork and vfork.
Stan Shebs [Tue, 9 Aug 1994 01:06:29 +0000 (01:06 +0000)]
Update to ns32k support, from Ian Dall (dall@hfrd.dsto.gov.au).
* aout-ns32k.c: Add declarations that were in aout-ns32k.h, change
declarations to traditional form.
(MY_reloc_howto, MY_put_reloc): Change from macro to function.
(ns32k_relocate_contents): New function.
* aout-ns32k.h: Remove.
* cpu-ns32k.c: Add declarations that were in aout-ns32k.h, change
declarations to traditional form.
(ns32k_final_link_relocate): Call ns32k_relocate_contents.
* netbsd532.c: Reformat to standards, add copyright notice.
(ARCH): Don't define.
(aout-ns32k.h): Don't include.
* pc532-mach.c: Ditto.
Peter Schauer [Sun, 7 Aug 1994 13:33:45 +0000 (13:33 +0000)]
* config/mips/tm-irix5.h (IN_SIGTRAMP): Redefine for Irix 5,
Irix 5 has a standard _sigtramp signal handler.
* irix5-nat.c (solib_add): Get rid of sigtramp_address handling,
it is not needed for a standard _sigtramp signal handler.
Add shared library sections to the section table of the target
before adding the symbols.
* mips-tdep.c (mips_skip_prologue): Do not skip load immediate
instructions that do not prepare a stack adjustment.
* regex.c (SIGN_EXTEND_CHAR): Update to emacs-19.25 definition,
which does the right thing on machines where `char' is unsigned.
Stu Grossman [Sat, 6 Aug 1994 00:55:08 +0000 (00:55 +0000)]
* remote.c (remote_open): Move setting of inferior_pid prior to
call to remote_start_remote. Also use unique value for pid to
avoid confusion with read_register_pid & friends.
* (remote_wait): Return inferior_pid instead of 0 in all cases.
J.T. Conklin [Fri, 5 Aug 1994 16:14:03 +0000 (16:14 +0000)]
* i386-nlmstub.c (handle_exception): Point the PC at _exit() to
kill the program being debugged. KillMe(), the undocumented
call intended for this purpose, causes the server to hang.
Stu Grossman [Thu, 4 Aug 1994 17:45:26 +0000 (17:45 +0000)]
* target.c (add_target): Don't call clean_target on target
vectors anymore.
* (unpush_target): Test for to_close being set before calling.
* (target_xfer_memory, target_info): Check for to_has_memory
before playing with memory.
Stu Grossman [Thu, 4 Aug 1994 17:32:09 +0000 (17:32 +0000)]
* remote.c (remote_open): Set inferior_pid to make kill command
happy.
* inflow.c (kill_command): Revert change of Aug 2. Use
inferior_pid to determine whether to print out "The program is not
being run." message.
Jean Marie Diaz [Thu, 4 Aug 1994 16:10:23 +0000 (16:10 +0000)]
* elfcode.h (elf_bfd_final_link): Force the vma of sections which
do not have SEC_ALLOC set to be 0. This is needed to handle
relocs against debugging sections.
Jean Marie Diaz [Wed, 3 Aug 1994 14:43:42 +0000 (14:43 +0000)]
Wed Aug 3 10:34:37 1994 Eric Youngdale (ericy@cais.cais.com)
* i386linux.c (linux_add_one_symbol): Only handle
SHARABLE_CONFLICTS specially if BSF_CONSTRUCTOR is set. Set hashp
for a GOT or PLT symbol. Set jump field of fixup for a PLT symbol.
(linux_tally_symbols): Check section of real symbol. When looking
for a builtin fixup, check builtin and jump flags. Create no more
than one fixup, and always create one if the real symbol is in the
absolute section. Only strip absolute symbols.
Jean Marie Diaz [Tue, 2 Aug 1994 16:01:56 +0000 (16:01 +0000)]
Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
* emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
New function; add 0x20 to any use of -Ttext.
(gld${EMULATION_NAME}_create_output_section_statements): New
function.
(ld_${EMULATION_NAME}_emulation): Use the new function
gld${EMULATION_NAME}_create_output_section_statements.
Jean Marie Diaz [Tue, 2 Aug 1994 14:48:21 +0000 (14:48 +0000)]
* libbfd-in.h: Move declarations of bfd_read, bfd_write, bfd_seek,
bfd_tell, bfd_flush, and bfd_stat from here...
* bfd-in.h: ...to here, to make them visible to programs which
know more about the object file format than BFD does.
* libbfd.h, bfd-in2.h: Rebuilt.
Stan Shebs [Tue, 2 Aug 1994 02:02:39 +0000 (02:02 +0000)]
* defs.h: Change two-line declarations to one-line form.
(NORETURN): Define as "volatile" only for older GCCs.
(ATTR_NORETURN): Define for newer GCCs.
* procfs.c (proc_init_filed): Add ATTR_NORETURN to declaration.
Jean Marie Diaz [Tue, 2 Aug 1994 00:44:24 +0000 (00:44 +0000)]
* breakpoint.c (mention), main.c (fputs_unfiltered): Add comments.
* breakpoint.c (delete_breakpoint, enable_breakpoint,
disable_breakpoint): Don't call breakpoints_changed; it is now
called via the *_breakpoint_hook functions.
* annotate.c (_initialize_annotate, breakpoint_changed): New functions.
Jean Marie Diaz [Mon, 1 Aug 1994 23:11:18 +0000 (23:11 +0000)]
ELF linker patches from Eric Youngdale <ericy@cais.cais.com>.
* elfcode.h (elf_link_create_dynamic_sections): Set type of
_DYNAMIC to STT_OBJECT.
(NAME(bfd_elf,record_link_assignment)): Always create hash table
entry. Set type to STT_OBJECT.
(elf_link_output_extsym): Don't set type of weak defined symbol to
STB_WEAK if symbol was referenced.
* elf32-i386.c (elf_i386_create_dynamic_sections): Set type of
_GLOBAL_OFFSET_TABLE to STT_OBJECT.
(elf_i386_check_relocs): Ignore local PLT32 relocs.
(elf_i386_relocate_section): Treat local PLT32 relocs as PC32.
Jeff Law [Mon, 1 Aug 1994 07:49:59 +0000 (07:49 +0000)]
* hppa-tdep.c (saved_pc_after_call): If the saved PC is in a
linker stub, then return the address the stub will return to.
(frame_saved_pc): Correctly restart the search for the saved
pc when a linker stub is encountered.
* hppa-tdep.c (inst_saves_gr): Handle 16 and 8 bit instruction
register stores emitted by the version 9 HP compilers.
(inst_saves_fr): Relax test for a specific base register (%r1);
this avoids losing with the version 9 HP compilers.
(skip_prologue): Try to skip argument stores emitted by the HP
compilers. It's not perfect, but it's better than before.
Fred Fish [Fri, 29 Jul 1994 21:04:27 +0000 (21:04 +0000)]
From Kevin A. Buettner (kev@cujo.geg.mot.com).
* Makefile.in (coredep.o): Add inferior.h as dependency.
* inflow.c: Add F_SETOWN to list of defines to check
around code that uses F_SETOWN.
Ken Raeburn [Thu, 28 Jul 1994 23:36:16 +0000 (23:36 +0000)]
* tc-sparc.c (sparc_ip): Check more carefully for conflicting architectures.
(md_parse_option) [NO_V9]: Complain if v9 was selected.
(md_show_usage): Derive architecture list in usage message from
architecture_pname array.
(cypress): Macro deleted.
(op_hash): Don't initialize.
(s_common): Use bfd_und_section_ptr instead of bfd_und_section.
(BSR): New function.
(sparc_ip): Use it for right-shift operations of 32 bits or more.
(sparc_ip): Implement new operand type 'x'.
Stu Grossman [Thu, 28 Jul 1994 22:07:02 +0000 (22:07 +0000)]
* Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES): Add support for
--enable-xxx configure option by adding ENABLE_{CLIBS DEPFILES}
where appropriate.
* General hackery to support alternate user-interface.
* breakpoint.c (mention, delete_breakpoint, enable_breakpoint,
disable_breakpoint): Call hooks for alternate user-interface.
* defs.h: Add declarations for alternate user-interface hooks.
* main.c (main): Add --nw (and --nowindows) options to disable
the GUI.
* (near call to command_loop): Call command_loop_hook if set.
* (fputs_unfiltered): Call fputs_unfiltered_hook if set.
* stack.c: Call print_frame_info_listing_hook if set.
* top.c (gdb_init): Initialize targets.c and utils.c prior to
other files to make sure that calls to error and warning will
work. Call init_ui_hook after everything else.
* utils.c (query): Call query_hook if set.
* (gdb_flush): Call flush_hook if set.
* Change _initialize_utils to initialize_utils cuz we don't use
automatic initialization of utils.c anymore.
* Support for TK GUI.
* Makefile.in: Add rule for gdbtk.o.
* configure.in: Add support for --enable-gdbtk.
* gdbtk.c: New file. Contains support routines for TK interface.
* gdbtk.tcl: New file. Implements GUI policy.
* remote.c: Get rid of #ifdef DONT_USE_REMOTE. It's no longer
necessary.
* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
there and we are using the gcc from the tree.
(LD_FOR_TARGET): Look for ld in ../ld/ld.new.