platform/upstream/binutils.git
27 years ago * coffgen.c (coff_object_p): Read the f_opthdr bytes from the
Ian Lance Taylor [Tue, 24 Jun 1997 15:22:35 +0000 (15:22 +0000)]
* coffgen.c (coff_object_p): Read the f_opthdr bytes from the
file, not aoutsz bytes (they are different in XCOFF .o files).

27 years agocomment fix
Ian Lance Taylor [Tue, 24 Jun 1997 14:34:47 +0000 (14:34 +0000)]
comment fix

27 years ago * elflink.h (elf_merge_symbol): In the case of a new defined
Ian Lance Taylor [Tue, 24 Jun 1997 02:28:03 +0000 (02:28 +0000)]
* elflink.h (elf_merge_symbol): In the case of a new defined
symbol overriding an old defined symbol, return the hash table
entry which we modify, even if it is the target of an
indirection.
(elf_link_add_object_symbols): If the real name of the symbol gets
overridden, convert the versioned symbol into an indirect symbol
to the real symbol.

27 years ago * elflink.h (elf_merge_symbol): New static function, broken out of
Ian Lance Taylor [Mon, 23 Jun 1997 22:06:29 +0000 (22:06 +0000)]
* elflink.h (elf_merge_symbol): New static function, broken out of
elf_link_add_object_symbols.
(elf_link_add_object_symbols): Call it.

27 years agoRemove CYGNUS LOCAL markers for mn10200.
Jeff Law [Mon, 23 Jun 1997 17:56:05 +0000 (17:56 +0000)]
Remove CYGNUS LOCAL markers for mn10200.

27 years agoAnother windres snapshot. Can now read the COFF resources directory,
Ian Lance Taylor [Mon, 23 Jun 1997 00:08:54 +0000 (00:08 +0000)]
Another windres snapshot.  Can now read the COFF resources directory,
although it doesn't yet parse out the binary format.

27 years ago * coff-i386.c (i3coff_object_p): If COFF_IMAGE_WITH_PE, hack to
Ian Lance Taylor [Sun, 22 Jun 1997 23:41:55 +0000 (23:41 +0000)]
* coff-i386.c (i3coff_object_p): If COFF_IMAGE_WITH_PE, hack to
handle case where COFF filehdr does not immediately follow PE
header.
* coffgen.c (coff_object_p): Remove useless seek to current
location.

27 years ago First stab at Windows resource compiler:
Ian Lance Taylor [Sun, 22 Jun 1997 21:35:35 +0000 (21:35 +0000)]
First stab at Windows resource compiler:
* windres.h: New file.
* windres.c: New file.
* resrc.c: New file.
* rcparse.y: New file.
* rclex.l: New file.
* configure.in: Define and substitute BUILD_WINDRES.
* configure: Rebuild.
* Makefile.in: Rebuild dependencies.
  (WINDRES_PROG): New variable.
(PROGS): Add @BUILD_WINDRES@.
(HFILES): Add dlltool.h and windres.h.
(CFILES): Add windres.c and resrc.c.
(GENERATED_CFILES): Add rcparse.c and rclex.c.
(WINDRES_OBJS): New variable.
$(WINDRES_PROG): New target.
(rcparse.c, rcparse.h, rclex.c): New targets.
Snapshot.  windres can parse and print rc files.

27 years agoFix a "ninemoons" email address that slipped in.
Fred Fish [Sun, 22 Jun 1997 16:40:16 +0000 (16:40 +0000)]
Fix a "ninemoons" email address that slipped in.

27 years agoFix one of my "ninemoons" email addresses that slipped in.
Fred Fish [Sun, 22 Jun 1997 16:32:18 +0000 (16:32 +0000)]
Fix one of my "ninemoons" email addresses that slipped in.

27 years ago * gdb.base/printcmds.exp: Fix "check for floating addition"
Fred Fish [Sun, 22 Jun 1997 16:17:49 +0000 (16:17 +0000)]
* gdb.base/printcmds.exp: Fix "check for floating addition"
regexp to accept results within approx +/- .01 of exact value.
* lib/gdb.exp (gdb_test): Remove unused expect_out global decl.

27 years ago * sh-tdep.c (sh_skip_prologue): Also recognize fmov insns.
Fred Fish [Sat, 21 Jun 1997 03:50:11 +0000 (03:50 +0000)]
* sh-tdep.c (sh_skip_prologue): Also recognize fmov insns.
(sh_frame_find_saved_regs): Recognize fmov insns and adjust
stack push count accordingly.
* sh-tdep.c (IS_FMOV, FPSCR_SZ): New defines

27 years agoSanitize away sh4 stuff for now.
Fred Fish [Sat, 21 Jun 1997 03:48:48 +0000 (03:48 +0000)]
Sanitize away sh4 stuff for now.

27 years agoMinor formatting change (whitespace only).
Fred Fish [Sat, 21 Jun 1997 03:42:10 +0000 (03:42 +0000)]
Minor formatting change (whitespace only).

27 years ago * configure.in: Don't set ENABLE_MULTILIB, so we'll be passing
Brendan Kehoe [Thu, 19 Jun 1997 21:17:20 +0000 (21:17 +0000)]
* configure.in: Don't set ENABLE_MULTILIB, so we'll be passing
--enable-multilib down to subdirs; setting TARGET_SUBDIR was enough.

27 years ago * utils.c (floatformat_from_doublest): Improve test for infinity.
Mark Alexander [Thu, 19 Jun 1997 15:18:13 +0000 (15:18 +0000)]
* utils.c (floatformat_from_doublest): Improve test for infinity.

27 years ago (gdb_expect): Add optional timeout parameter, and add timeout
Bob Manson [Thu, 19 Jun 1997 04:36:04 +0000 (04:36 +0000)]
(gdb_expect): Add optional timeout parameter, and add timeout
value to various calls.
(gdb_suppress_tests): Only give one warning message per group.

27 years ago * linker.c (link_action): Change COMMON_ROW/indr to from CREF to
Ian Lance Taylor [Wed, 18 Jun 1997 23:04:29 +0000 (23:04 +0000)]
* linker.c (link_action): Change COMMON_ROW/indr to from CREF to
REFC.

27 years agorevert last patch
Ian Lance Taylor [Wed, 18 Jun 1997 23:02:58 +0000 (23:02 +0000)]
revert last patch

27 years ago * dwarfread.c (isreg, optimized_out, offreg, basereg): Move
Fred Fish [Wed, 18 Jun 1997 21:38:57 +0000 (21:38 +0000)]
* dwarfread.c (isreg, optimized_out, offreg, basereg): Move
global variables into the struct dieinfo structure.
(locval): Pass pointer to a dieinfo struct rather than a
pointer to the raw location information.  Change prototype.
Set isreg, optimized_out, offreg and basereg as appropriate.
(struct_type): Call locval with dieinfo struct pointer.
(new_symbol): Ditto.
(new_symbol): Call locval and save location before testing
the values of the new dieinfo struct flags, set by locval.

27 years ago * lib/gdb.exp(gdb_init): Pass our arguments to default_gdb_init
Bob Manson [Wed, 18 Jun 1997 18:13:19 +0000 (18:13 +0000)]
* lib/gdb.exp(gdb_init): Pass our arguments to default_gdb_init
  properly.

27 years ago * elflink.h (elf_link_add_object_symbols): Don't let a common
Ian Lance Taylor [Wed, 18 Jun 1997 15:36:33 +0000 (15:36 +0000)]
* elflink.h (elf_link_add_object_symbols): Don't let a common
symbol in a regular object override a common symbol in a shared
object if the latter was found via an indirect symbol.

27 years ago lib/gdb.exp(gdb_expect): Handle getting a value for $timeout
Bob Manson [Wed, 18 Jun 1997 05:10:11 +0000 (05:10 +0000)]
lib/gdb.exp(gdb_expect): Handle getting a value for $timeout
more gracefully.

27 years ago * configure.in (is_cross_compiler): If we're building
Brendan Kehoe [Tue, 17 Jun 1997 22:31:59 +0000 (22:31 +0000)]
* configure.in (is_cross_compiler): If we're building
mips-sgi-irix6* native, turn on ENABLE_MULTILIB and set TARGET_SUBDIR.

forces it to build libiberty w/ the newly built compiler, solving the
n32 vs o32 problem doing the tests

27 years ago * sparc-opc.c: The fcmp v9a instructions take an integer register
Ian Lance Taylor [Tue, 17 Jun 1997 21:03:18 +0000 (21:03 +0000)]
* sparc-opc.c: The fcmp v9a instructions take an integer register
as a destination, not a floating point register.  From Christian
Kuehnke <Christian.Kuehnke@arbi.Informatik.Uni-Oldenburg.DE>.

27 years ago * procfs.c (proc_set_exec_trap, procfs_init_inferior, procfs_wait,
Peter Schauer [Tue, 17 Jun 1997 20:33:18 +0000 (20:33 +0000)]
* procfs.c (proc_set_exec_trap, procfs_init_inferior, procfs_wait,
unconditionally_kill_inferior):  Undo Oct 26 1996 and Apr 26 1997
changes to trace PRFS_STOPTERM and handle PR_DEAD.
These changes tried to work around a problem with an early DU 4.0
release, but they trigger subtle timing dependent kernel bugs
in older OSF/1 releases.

27 years ago * lib/gdb.exp(gdb_expect): Declare errorInfo and errorCode
Bob Manson [Tue, 17 Jun 1997 20:11:04 +0000 (20:11 +0000)]
* lib/gdb.exp(gdb_expect): Declare errorInfo and errorCode
as global variables.

27 years ago * Makefile.in (all-sn): Depend on all-grep.
Tom Tromey [Tue, 17 Jun 1997 18:27:02 +0000 (18:27 +0000)]
* Makefile.in (all-sn): Depend on all-grep.

27 years ago * cofflink.c (_bfd_coff_link_input_bfd): If stripping debugging
Ian Lance Taylor [Tue, 17 Jun 1997 15:56:09 +0000 (15:56 +0000)]
* cofflink.c (_bfd_coff_link_input_bfd): If stripping debugging
symbols, skip N_ABS symbols with debugging storage classes.
PR 12630.
Also a couple of warning and formatting fixes.

27 years ago * dwarfread.c (new_symbol): Use SYMBOL_VALUE_ADDRESS, instead of
Fred Fish [Tue, 17 Jun 1997 14:01:37 +0000 (14:01 +0000)]
* dwarfread.c (new_symbol): Use SYMBOL_VALUE_ADDRESS, instead of
SYMBOL_VALUE, to set the value of LOC_STATIC symbols.

27 years ago * infrun.c (wait_for_inferior): Mark registers as invalid when
Mark Alexander [Tue, 17 Jun 1997 02:11:42 +0000 (02:11 +0000)]
* infrun.c (wait_for_inferior): Mark registers as invalid when
stepping over an instruction that triggered a watchpoint.
* remote-mips.c: Numerous changes to support hardware breakpoints
and watchpoints on LSI MiniRISC and TinyRISC boards.
* mips-tdep.c: Move MIPS16-related macros to config/mips/tm-mips.h.
(mips_breakpoint_from_pc): Account for different breakpoint
instructions used by PMON and IDT monitor.
* config/mips/tm-embed.h: Enable hardware breakpoints on embedded
MIPS targets.
* config/mips/tm-mips.h: Define breakpoint instructions for
PMON and IDT monitor.  Move MIPS16-related macros here from
mips-tdep.c.

27 years ago * lib/gdb.exp: Close connection to remote host if gdb doesn't
Bob Manson [Tue, 17 Jun 1997 00:08:20 +0000 (00:08 +0000)]
* lib/gdb.exp: Close connection to remote host if gdb doesn't
  initialize.
(default_gdb_init): New procedure; allow gdb_init to be overridden
  by a target configuration file.
(gdb_expect): Pass the timeout to remote_expect.

* config/dos.exp(dos_wait): Add timeout parameter.

* lib/remote.exp(remote_expect): Add timeout parameter.
(remote_wait): Ditto.
(standard_wait): Ditto. Also give up if the program outputs
more than 512,000 bytes.

* config/vxworks.exp: Use timeout parameter instead of setting
timeout variable.
* config/dos.exp: Ditto.
* config/ddb.exp: Ditto.
* lib/mondfe.exp: Ditto.
* lib/rlogin.exp: Ditto.
* lib/telnet.exp: Ditto.
* config/base68k.exp: Ditto.
* config/i386-bozo.exp: Ditto.
* config/gdb-comm.exp: Ditto.
* config/gdb_stub.exp: Ditto.
* config/i960.exp: Ditto.
* config/ddb-ether.exp: Ditto.
* config/sim.exp: Ditto.

* lib/g++.exp(g++_init): Use g++_include_flags instead of making
up the includes ourselves.

27 years agowhitespace tweaks
Ian Lance Taylor [Mon, 16 Jun 1997 23:33:49 +0000 (23:33 +0000)]
whitespace tweaks

27 years agoMon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
Ian Lance Taylor [Mon, 16 Jun 1997 23:21:18 +0000 (23:21 +0000)]
Mon Jun 16 19:18:21 1997  Geoff Keating  <geoffk@ozemail.com.au>

* scripttempl/elfppc.sc: Correct .rela.sdata entries.

* scripttempl/elfppc.sc: Put the PLT between the small and large
BSS segments.
* emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
program base of 0x02000000 is recommended...' because otherwise
shared libraries are less efficient.  We use 0x01800000 because
otherwise it's impossible to branch to location 0, for instance if
you have an undefined weak symbol.

27 years agoMon Jun 16 19:12:51 1997 Geoff Keating <geoffk@ozemail.com.au>
Ian Lance Taylor [Mon, 16 Jun 1997 23:17:22 +0000 (23:17 +0000)]
Mon Jun 16 19:12:51 1997  Geoff Keating  <geoffk@ozemail.com.au>

* config/tc-ppc.h (tc_fix_adjustable): Don't let the assembler
calculate relocations to any external symbol, because we might be
linking a shared object and the symbol might be overriden or moved
(for instance, moved into a static executable's .bss section).
(GLOBAL_OFFSET_TABLE_NAME): Delete. This is an i386 wierdness.

* config/tc-ppc.h (tc_fix_adjustable): GOT-based relocations can't
be calculated by the assembler.

* config/tc-ppc.c (md_apply_fix3): Handle @plt or @local branch
whose destination lies in the same file, by ignoring the @plt or
@local and aiming the branch at its destination.

27 years ago * configure.in: Use mh-ppcpic and mt-ppcpic for powerpc*-* targets.
Ian Lance Taylor [Mon, 16 Jun 1997 23:10:46 +0000 (23:10 +0000)]
* configure.in: Use mh-ppcpic and mt-ppcpic for powerpc*-* targets.

27 years agoMon Jun 16 19:06:41 1997 Geoff Keating <geoffk@ozemail.com.au>
Ian Lance Taylor [Mon, 16 Jun 1997 23:09:46 +0000 (23:09 +0000)]
Mon Jun 16 19:06:41 1997  Geoff Keating  <geoffk@ozemail.com.au>

* mh-ppcpic: New file.
* mt-ppcpic: New file.

27 years agoMon Jun 16 18:56:27 1997 Geoff Keating <geoffk@ozemail.com.au>
Ian Lance Taylor [Mon, 16 Jun 1997 23:05:27 +0000 (23:05 +0000)]
Mon Jun 16 18:56:27 1997  Geoff Keating  <geoffk@ozemail.com.au>

* elf32-ppc.c (ppc_elf_relocate_section): Don't emit R_PPC_REL*
  relocs in shared libraries which refer to local symbols.  Cope
  with addend when processing a GOT relocation.

* elf32-ppc.c (ppc_elf_size_dynamic_sections): Only create symbols
for sections that the linker didn't create.
(ppc_elf_finish_dynamic_sections): Only try to write out a section
  symbol if it was created in ppc_elf_size_dynamic_sections.
(ppc_elf_relocate_section): Complain if we have to generate a reloc
relative to a section for which we didn't output a symbol.

* elf32-ppc.c (ppc_elf_size_dynamic_sections): Clean up.  PLT
  relocs are 'rela' relocs, like everything else.  .rela.plt is not
  a read-only section, so we don't have to special-case it.

* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the
.rela.bss section are (of course) 'rela' relocs not 'rel' relocs.

* elf32-ppc.c (ppc_elf_check_relocs): Initialise srelgot.
(ppc_elf_relocate_section): @got offsets are 4 from start of the
actual .got section.
* elflink.c (_bfd_elf_create_got_section): The three reserved
words start from the symbol '_GLOBAL_OFFSET_TABLE_'.

* elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5
characters, not 4.

* elf32-ppc.c (ppc_elf_check_relocs): Use
_bfd_elf_create_got_section to create the GOT rather than
ppc_elf_create_linker_section. Create the '.rela.got' section
ourselves.
(ppc_elf_finish_dynamic_symbol): Set up GOT relocations when a
symbol has a GOT entry.
(ppc_elf_relocate_section): Record when a symbol is used through
the GOT, and allocate space in the GOT for each such symbol.
(ppc_elf_adjust_dynamic_symbol): Delete unused .got.plt stuff.
(ppc_elf_create_linker_section): Delete unused LINKER_SECTION_GOT
stuff.

* elf32-ppc.c (ppc_elf_howto_raw): GOT16_HA relocs should be
treated in a similar way to ADDR16_HA relocs.
(ppc_elf_relocate_section): PLTREL24 relocs do not get copied into
shared objects; the linker must deal with them.
(ppc_elf_create_linker_section): Stop setting
_GLOBAL_OFFSET_TABLE_ to the wrong value; delete unused
LINKER_SECTION_PLT stuff.
(ppc_elf_check_relocs): Delete unused LINKER_SECTION_PLT stuff.
(ppc_elf_finish_dynamic_sections): Use BFD calls to get GOT
section, not ELF-specific calls.
(elf_backend_plt_not_loaded): Set to 1.
(elf_backend_got_symbol_offset): Set to 4.
* elf-bfd.h (elf_backend_data): Add 'plt_not_loaded' member
for when ld.so fills in the PLT; and 'got_symbol_offset' member.
* elflink.c (_bfd_elf_create_dynamic_sections): Apply
plt_not_loaded member.
(_bfd_elf_create_got_section): Apply got_symbol_offset.
* elfxx-target.h (elf_backend_plt_not_loaded): Set default to
'loaded'.
(elf_backend_G_O_T_offset): Set default to 0.
(elfNN_bed): Set added fields.

* elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting
DT_RELENT in shared objects; should be DT_RELAENT.

* elf32-ppc.c (ppc_elf_relocate_section): Propagate
R_PPC_ADDR16_HA relocs to shared objects. Cope with case where
such a reloc (in a non-shared object) refers to a symbol that's
not defined.

27 years ago * config/tc-ppc.c (ppc_insert_operand): In 32 bit mode, with a
Ian Lance Taylor [Mon, 16 Jun 1997 20:09:35 +0000 (20:09 +0000)]
* config/tc-ppc.c (ppc_insert_operand): In 32 bit mode, with a
signed operand, sign extend a 32 bit value to the host size.
Permits dubious usage like
addi  %r6,%r6,0xfffffeff
to assemble on a 64 bit host as it does on a 32 bit host.

27 years ago * Makefile.in (CFLAGS): Subsitute from configure script. From
Ian Lance Taylor [Mon, 16 Jun 1997 19:47:53 +0000 (19:47 +0000)]
* Makefile.in (CFLAGS): Subsitute from configure script.  From
Jeff Makey <jeff@cts.com>.

27 years ago * configure: Set CFLAGS and CXXFLAGS, and substitute them into
Ian Lance Taylor [Mon, 16 Jun 1997 19:46:12 +0000 (19:46 +0000)]
* configure: Set CFLAGS and CXXFLAGS, and substitute them into
Makefile.  From Jeff Makey <jeff@cts.com>.
* Makefile.in: Add comment for CFLAGS and CXXFLAGS.

27 years agocredit
Ian Lance Taylor [Mon, 16 Jun 1997 19:34:28 +0000 (19:34 +0000)]
credit

27 years ago * Makefile.in (CC, CFLAGS): Substitute from configure script.
Ian Lance Taylor [Mon, 16 Jun 1997 19:34:04 +0000 (19:34 +0000)]
* Makefile.in (CC, CFLAGS): Substitute from configure script.

27 years ago * Makefile.am (INCLUDES): Add -DDEBUG.
Ian Lance Taylor [Mon, 16 Jun 1997 19:32:15 +0000 (19:32 +0000)]
* Makefile.am (INCLUDES): Add -DDEBUG.
* Makefile.in: Rebuild.

27 years ago * elf32-i386.c (elf_i386_relocate_section): When generating a
Ian Lance Taylor [Mon, 16 Jun 1997 19:24:23 +0000 (19:24 +0000)]
* elf32-i386.c (elf_i386_relocate_section): When generating a
shared library, do the relocation if the input section is not
allocated in memory.

27 years ago * Makefile.in (DISTBISONFILES): Remove.
Ian Lance Taylor [Mon, 16 Jun 1997 18:55:52 +0000 (18:55 +0000)]
* Makefile.in (DISTBISONFILES): Remove.
(taz): Don't futz with DISTBISONFILES.  Change BISON to use
$(DEFAULT_YACC).

27 years agoMon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Mon, 16 Jun 1997 18:45:30 +0000 (18:45 +0000)]
Mon Jun 16 14:42:14 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* elfcode.h (put_signed_word): Define.
(get_signed_word): Define.
(elf_swap_reloca_in): Use get_signed_word for the r_addend field.
(elf_swap_reloca_out): Use put_signed_word for the r_addend
field.
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use
bfd_get_signed_32 to set the r_addend field.
* elf64-mips.c (mips_elf64_swap_reloca_in): Use
bfd_h_get_signed_64 to set the r_addend field.

27 years ago * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call
Ian Lance Taylor [Mon, 16 Jun 1997 18:41:19 +0000 (18:41 +0000)]
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call
elf_link_assign_sym_version before elf_adjust_dynamic_symbol.
(elf_fix_symbol_flags): New static function, broken out of
elf_adjust_dynamic_symbol.
(elf_adjust_dynamic_symbol): Call elf_fix_symbol_flags.
(elf_link_assign_sym_version): Likewise.  Permit a symbol to be
forced local even if NEEDS_PLT is set.  When forcing a symbol to
be local, clear NEEDS_PLT.
(elf_link_output_extsym): Remove unused local bed.

27 years ago * gas/m68k/pcrel.d: Update for m68k disassembler changes.
Ian Lance Taylor [Mon, 16 Jun 1997 18:34:35 +0000 (18:34 +0000)]
* gas/m68k/pcrel.d: Update for m68k disassembler changes.
* gas/m68k/operands.d: Likewise.

27 years ago * m68k-dis.c (print_insn_arg): Print case 7.2 using %pc@()
Ian Lance Taylor [Mon, 16 Jun 1997 18:31:32 +0000 (18:31 +0000)]
* m68k-dis.c (print_insn_arg): Print case 7.2 using %pc@()
syntax.  From Roman Hodek
<rnhodek@faui22c.informatik.uni-erlangen.de>.

27 years ago * i386-dis.c (twobyte_has_modrm): Fix pand.
Ian Lance Taylor [Mon, 16 Jun 1997 18:14:13 +0000 (18:14 +0000)]
* i386-dis.c (twobyte_has_modrm): Fix pand.

27 years agoMon Jun 16 14:10:00 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Mon, 16 Jun 1997 18:11:38 +0000 (18:11 +0000)]
Mon Jun 16 14:10:00 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* i386.h: Fix pand opcode.

27 years agoMon Jun 16 14:08:38 1997 Michael Taylor <mbt@mit.edu>
Ian Lance Taylor [Mon, 16 Jun 1997 18:09:28 +0000 (18:09 +0000)]
Mon Jun 16 14:08:38 1997  Michael Taylor  <mbt@mit.edu>

* i386-dis.c (dis386_twobyte): Fix pand and pandn.

27 years agoMon Jun 16 13:59:18 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Mon, 16 Jun 1997 18:00:10 +0000 (18:00 +0000)]
Mon Jun 16 13:59:18 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* symbols.c (copy_symbol_attributes): Copy BSF_OBJECT flag.
* config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Copy size
expression.

* config/obj-multi.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define instead
of obj_copy_symbol_attributes.

27 years ago * config/tc-i386.c (i386_operand): Use alloca rather than a fixed
Ian Lance Taylor [Mon, 16 Jun 1997 17:31:46 +0000 (17:31 +0000)]
* config/tc-i386.c (i386_operand): Use alloca rather than a fixed
buffer size to make a copy of the symbol.

27 years agoMon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Mon, 16 Jun 1997 16:56:22 +0000 (16:56 +0000)]
Mon Jun 16 12:49:36 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* ldlang.c (lang_place_undefineds): Add \n in einfo call.
(lang_size_sections): Likewise.
* ldlex.l: Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
* emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
Likewise.
(check_sections): Likewise.
(gld${EMULATION_NAME}_after_allocation): Likewise.
* emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
Likewise.
* mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
* mpw-idtmips.c (gldmipsidt_after_open): Likewise.
(check_sections): Likewise.
(gldmipsidt_after_allocation): Likewise.

27 years agoMon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Mon, 16 Jun 1997 16:50:43 +0000 (16:50 +0000)]
Mon Jun 16 12:49:36 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* ldemul.c (ldemul_choose_mode): Remove unused einfo argument.

27 years ago * Makefile.in (OBJS): Put @extra_objects@ on the same line as
Ian Lance Taylor [Mon, 16 Jun 1997 16:48:01 +0000 (16:48 +0000)]
* Makefile.in (OBJS): Put @extra_objects@ on the same line as
macro.o.

27 years ago * configure.in: Build itl, db, sn, etc., when building for native
Ian Lance Taylor [Mon, 16 Jun 1997 15:13:43 +0000 (15:13 +0000)]
* configure.in: Build itl, db, sn, etc., when building for native
  cygwin32.

* Makefile.in (LD): New variable.
(EXTRA_HOST_FLAGS): Pass down LD.
($(DO_X)): Likewise.

Mon Jun 16 11:10:35 1997  Philip Blundell  <Philip.Blundell@pobox.com>

* Makefile.in (INSTALL): Use $(SHELL) when executing install-sh.

27 years ago * config/monitor.exp(gdb_load): Fix typo in regexp.
Bob Manson [Sat, 14 Jun 1997 16:25:14 +0000 (16:25 +0000)]
* config/monitor.exp(gdb_load): Fix typo in regexp.

Fixes last night's tcl error mesages.

27 years ago * fix earlier checkin error
Michael Snyder [Fri, 13 Jun 1997 22:41:14 +0000 (22:41 +0000)]
* fix earlier checkin error

27 years agoFri Jun 13 13:44:47 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
Michael Snyder [Fri, 13 Jun 1997 20:53:34 +0000 (20:53 +0000)]
Fri Jun 13 13:44:47 1997  Michael Snyder  (msnyder@cleaver.cygnus.com)

* config/mips/tm-tx39[l].h, tx39[l].mt: change r3900 target to tx39.
[also clean up sanitization]

27 years ago * mn10300-tdep.c (mn10300_analyze_prologue): Fix some comments.
Jeff Law [Fri, 13 Jun 1997 20:19:53 +0000 (20:19 +0000)]
    * mn10300-tdep.c (mn10300_analyze_prologue): Fix some comments.
        Add missing return statements after finding an "add imm{16,32},sp"
        instruction.
        (mn10300_frame_chain): Add in size of our register save area to find
        our caller's frame if our caller does not have a frame pointer.
Fixes some problems debugging optimized code.

27 years ago * symfile.c (generic_load): Check return code of target_write_memory.
David Edelsohn [Fri, 13 Jun 1997 19:56:51 +0000 (19:56 +0000)]
* symfile.c (generic_load): Check return code of target_write_memory.

27 years ago * config/i386/nm-linux.h: Enable prototypes that were #ifdef out.
Fred Fish [Fri, 13 Jun 1997 17:30:24 +0000 (17:30 +0000)]
* config/i386/nm-linux.h: Enable prototypes that were #ifdef out.
* config/tm-sysv4.h (in_plt_section): Add prototype.

* maint.c (maintenance_translate_address): Avoid assignment
inside if, per GNU coding standards.
* symfile.c (simple_read_overlay_table): Avoid assignments inside if, per
GNU coding standards.

* monitor.c (parse_register_dump): Is really a void function.
Add prototype.
(monitor_read_memory): Remove unused variable "name".
(monitor_read_memory): Remove unused variable "regbuf".
(monitor_open): Remove unused variable "i".
(get_hex_word): Apparently unused, #if away for now.
(from_hex): Ditto.

* i386v4-nat.c (supply_fpregset): Remove unused variable "regi".
(fill_fpregset): Remove unused variables "regi", "to", "from" and
"registers".

* remote-e7000.c (ctype.h): Include.
(e7000_insert_breakpoint): #if away unused arg used by unused expr.
* frame.h (generic_get_saved_register): Add prototype.
(enum lval_type): Add partial forward decl.
* dsrec.c (make_srec): Remove unused variable "type_code".
* remote-sim.c (gdbsim_wait): Handle sim_running and sim_polling
cases by just ignoring them.
(command.h): Include.

* java-exp.y (parse_number): Remove unused variable "unsigned_p".
* java-lang.c (gdbcore.h): Include for prototypes.
(type_from_class): Remove unused variable "ftype".
(type_from_class): Remove unused variable "name_length".
(evaluate_subexp_java): Add default case to handle remaining
enumerations.
* java-valprint.c (c-lang.h): Include for prototypes.

* symfile.c (simple_read_overlay_region_table): #if away
unused function.
(simple_free_overlay_region_table): Ditto.
(overlay_is_mapped): Add default case to switch.
(simple_read_overlay_region_table): Ditto.
(simple_read_overlay_region_table): Add prototype.

* symtab.c (fixup_symbol_section): Remove unused msym variable.
(fixup_psymbol_section): Ditto.
(find_pc_sect_symtab): Make distance a CORE_ADDR.

* utils.c: Add comment about t_addr being either unsigned long or
unsigned long long.
(paddr): Change formats to match actual types args are cast to.
(preg): Ditto.
(paddr_nz): Ditto.
(preg_nz): Ditto.

27 years ago * configure.in (targargs): Strip out any supplied --build argument
Bob Manson [Fri, 13 Jun 1997 17:25:00 +0000 (17:25 +0000)]
* configure.in (targargs): Strip out any supplied --build argument
  before adding our own. Always add --build.

27 years ago * sh-tdep.c (symfile.h): Include.
Fred Fish [Fri, 13 Jun 1997 15:22:08 +0000 (15:22 +0000)]
* sh-tdep.c (symfile.h): Include.
(gdb_string.h): Include.
(sh_fix_call_dummy): Ifdef away, currently unused.
* config/sh/tm-sh.h (pop_frame): Add prototype.
* config/sh/tm-sh.h (sh_set_processor_type): Add prototype.

27 years ago * defs.h (perror_with_name): Is a NORETURN function.
Fred Fish [Fri, 13 Jun 1997 14:51:32 +0000 (14:51 +0000)]
* defs.h (perror_with_name): Is a NORETURN function.
* utils.c (perror_with_name): Is a NORETURN function.
(error): Is NORETURN independently of ANSI_PROTOTYPES.

* symtab.c (fixup_symbol_section): Remove prototype.
* symtab.h: (fixup_symbol_section): Add prototype.
* m32r-rom.c (report_transfer_performance): Add prototype.
* sparclet-rom.c: Ditto.
* dsrec.c: Ditto.

* c-exp.y (parse_number): Cast args to float* or double* as
appropriate for conversion format.
* java-exp.y (parse_number): Ditto.

* Makefile.in (c-exp.tab.c): Remove #line lines that refer
to nonexistant y.tab.c file.
(java-exp.tab.c): Ditto.
(f-exp.tab.c): Ditto.
(m2-exp.tab.c): Ditto.
start-sanitize-gdbtk

* gdbtk.c (gdbtk_init): Make truth value test explicit.
Remove unused static variable "Gdbtk_Library".
end-sanitize-gdbtk

27 years ago * configure.in (targargs): Pass --build if we're doing
Bob Manson [Fri, 13 Jun 1997 04:15:12 +0000 (04:15 +0000)]
* configure.in (targargs): Pass --build if we're doing
a cross-compile.

Fix problems with the build defaulting to the host value if it isn't
specified.

27 years ago * gdb.base/funcargs.exp: Remove spurious suppress tests call.
Bob Manson [Fri, 13 Jun 1997 03:59:40 +0000 (03:59 +0000)]
* gdb.base/funcargs.exp: Remove spurious suppress tests call.

27 years ago * dlltool.c (export_type): Add data field.
Ian Lance Taylor [Thu, 12 Jun 1997 16:30:55 +0000 (16:30 +0000)]
* dlltool.c (export_type): Add data field.
(def_exports): Add data parameter.  Change all callers.
(dump_def_info): Print data field.
(gen_def_file): Likewise.
(make_one_lib_file): Handle data field by not emitting simple
label and not emitting anything in SEC_TEXT.
(dtab): Print data field.
(process_duplicates): Merge data field.
* dlltool.h (def_exports): Update declaration.
* defparse.y (expline): Accept opt_DATA.  Pass it to def_exports.
(opt_DATA): New non-terminal.

27 years ago * write.c (write_object_file): In non BFD_ASSEMBLER code, as we
Ian Lance Taylor [Thu, 12 Jun 1997 16:17:53 +0000 (16:17 +0000)]
* write.c (write_object_file): In non BFD_ASSEMBLER code, as we
step through the frags calling cvt_frag_to_fill, switch to
SEG_DATA when we reach data_frag_root.
PR 12580.

27 years ago * elf32-mn10300.c (elf32_mn10300_link_hash_entry): New structure
Jeff Law [Thu, 12 Jun 1997 04:50:18 +0000 (04:50 +0000)]
    * elf32-mn10300.c (elf32_mn10300_link_hash_entry): New structure
        for derived elf linker hash table entries.  References to
        elf_link_hash_entry changed appropriately.
        (elf32_mn10300_link_hash_table): New structure for derived elf
        linker hash table.
        (elf32_mn10300_hash_table): Define.
        (elf32_mn10300_link_hash_traverse): Likewise.
        (elf32_mn10300_link_hash_newfunc): New function.
        (elf32_mn10300_link_hash_table_create): Likewise.
        (elf32_mn10300_finish_hash_table_entry): Likewise.
        (mn10300_elf_relax_section): Handle "call" -> "calls", removal
        of prologue code, and call:32->call:16 relaxing.
        (compute_function_info: New function.
        (bfd_elf32_bfd_ilink_hash_table_create): Define.

27 years agoBack out last change, there are too many more to fix them all.
Fred Fish [Thu, 12 Jun 1997 04:26:37 +0000 (04:26 +0000)]
Back out last change, there are too many more to fix them all.

27 years ago * simops.c: Fix thinko in last change.
Jeff Law [Thu, 12 Jun 1997 04:14:42 +0000 (04:14 +0000)]
    * simops.c: Fix thinko in last change.

27 years ago * coffgen.c (_bfd_coff_is_local_label_name): Return proper boolean
Fred Fish [Thu, 12 Jun 1997 03:22:46 +0000 (03:22 +0000)]
* coffgen.c (_bfd_coff_is_local_label_name): Return proper boolean
(enum) type.

27 years ago * dlltool.h: New file.
Ian Lance Taylor [Wed, 11 Jun 1997 21:18:10 +0000 (21:18 +0000)]
* dlltool.h: New file.
* deflex.l: Include dlltool.h and libiberty.h.  Don't declare
strdup.  Use xstrdup rather than strdup.
* defparse.y: Include bfd.h, bucomm.h, and dlltool.h.
* dlltool.c: Include dlltool.h and time.h.  Make a lot of
variables and functions static.  Make a lot of char * variables
and parameters const.  Add declarations for static functions.  Do
some reindenting.  Hide more PowerPC stuff inside DLLTOOL_PPC.

27 years ago * configure: Use '|' instead of ":" as the seperator in
Rob Savoye [Wed, 11 Jun 1997 20:09:55 +0000 (20:09 +0000)]
* configure: Use '|' instead of ":" as the seperator in
sed. Otherwise sed chokes on NT path names with drive
designators. Also look for "?:*" as the leading characters in an
absolute pathname.

27 years ago * elflink.h (elf_link_output_extsym): Call finish_dynamic_symbol
Ian Lance Taylor [Wed, 11 Jun 1997 16:59:00 +0000 (16:59 +0000)]
* elflink.h (elf_link_output_extsym): Call finish_dynamic_symbol
for a symbol which is being forced to be local.
* elf32-i386.c (elf_i386_relocate_section): Write out the
  relocation value for a GOT reloc for a symbol which is turning
  into a local symbol.
(elf_i386_finish_dynamic_symbol): If a symbol is turning into a
local symbol, write out a RELATIVE reloc rather than a GLOB_DAT
reloc.
* elf32-m68k.c, elf32-sparc.c: Corresponding changes.

27 years agoWed Jun 11 12:05:52 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Wed, 11 Jun 1997 16:06:29 +0000 (16:06 +0000)]
Wed Jun 11 12:05:52 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* ar.c (bfd_special_undocumented_glue): Add const.

27 years ago * elf32-i386.c (elf_i386_relocate_section): Get the relocation
Ian Lance Taylor [Wed, 11 Jun 1997 04:01:48 +0000 (04:01 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Get the relocation
value if the symbol is turning into a local symbol.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.

27 years ago * config/tc-mn10300.c (md_assemble): Allow an empty register
Jeff Law [Tue, 10 Jun 1997 23:12:45 +0000 (23:12 +0000)]
    * config/tc-mn10300.c (md_assemble): Allow an empty register
        list for instructions which use register lists.

27 years ago * simops.c: "call" stores the callee saved registers into the
Jeff Law [Tue, 10 Jun 1997 22:59:13 +0000 (22:59 +0000)]
    * simops.c: "call" stores the callee saved registers into the
        stack!  Update the stack pointer properly when done with
        register saves.

27 years ago(elf_link_add_object_symbols): Also read verneed
Ulrich Drepper [Tue, 10 Jun 1997 21:46:23 +0000 (21:46 +0000)]
(elf_link_add_object_symbols): Also read verneed
information by calling `_bfd_elf_slurp_version_tables'.
(elf_link_add_object_symbols): For undefined symbols look for
version informaiton in the verneed records.
(elf_link_add_object_symbols): Use soname of shared object
for verneed record if it is available.

27 years ago * simops.c: Fix return address computation for "call" instructions.
Jeff Law [Tue, 10 Jun 1997 18:32:40 +0000 (18:32 +0000)]
    * simops.c: Fix return address computation for "call" instructions.

27 years agoTue Jun 10 11:26:47 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Tue, 10 Jun 1997 15:27:52 +0000 (15:27 +0000)]
Tue Jun 10 11:26:47 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* arm-dis.c: Add prototypes for arm_decode_shift and
print_insn_arm.

27 years agoTue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Tue, 10 Jun 1997 15:25:05 +0000 (15:25 +0000)]
Tue Jun 10 11:18:09 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* config/tc-arm.c (md_apply_fix3): Make temp unsigned long.

27 years agoTue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Tue, 10 Jun 1997 15:21:36 +0000 (15:21 +0000)]
Tue Jun 10 11:18:09 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* config/tc-arm.c (arm_adjust_symtab): Only set storage classes if
OBJ_COFF.

27 years agoTue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Tue, 10 Jun 1997 15:20:05 +0000 (15:20 +0000)]
Tue Jun 10 11:18:09 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* config/tc-arm.c: Add prototypes for many static functions.
(struct asm_opcode ): Add prototypes for parms field.
(struct thumb_opcode ): Likewise.
(fp_op2): Remove unused flags parameter.
(output_inst): Make static.
(arm_after_pass_hook): Remove unused ignore parameter.
* config/tc-arm.h (arm_after_pass_hook): Declare.
(arm_start_line_hook): Declare.
(arm_frob_label): Declare.

27 years agoTue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Tue, 10 Jun 1997 15:16:17 +0000 (15:16 +0000)]
Tue Jun 10 11:13:03 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* cpu-arm.c: Add prototypes for compatible and scan.
* cofflink.c: Add prototype for mark_relocs.

* archive.c (bfd_special_undocumented_glue): Change filename to
const pointer.  Add prototype.

27 years ago * config/tc-sh.c (md_apply_fix): Check for overflow.
Ian Lance Taylor [Mon, 9 Jun 1997 18:05:46 +0000 (18:05 +0000)]
* config/tc-sh.c (md_apply_fix): Check for overflow.
PR 12530.

27 years agoMon Jun 9 12:55:45 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Mon, 9 Jun 1997 16:56:41 +0000 (16:56 +0000)]
Mon Jun  9 12:55:45 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* depend.c (wrap_output): new prototype.

27 years ago * config/tc-m68k.c (md_section_align): If a.out and BFD, force
Ian Lance Taylor [Mon, 9 Jun 1997 16:53:45 +0000 (16:53 +0000)]
* config/tc-m68k.c (md_section_align): If a.out and BFD, force
section size to be aligned.

27 years agoMon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Mon, 9 Jun 1997 16:36:08 +0000 (16:36 +0000)]
Mon Jun  9 12:34:21 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* elflink.h (elf_link_add_object_symbols): Ignore relocations of
sections that will be discarded.

27 years agostart-sanitize-gdbtk
Peter Schauer [Sat, 7 Jun 1997 09:38:31 +0000 (09:38 +0000)]
start-sanitize-gdbtk
* gdbtk.c (gdb_get_breakpoint_info):  Add string for new
enumeration del_at_next_stop to bpdisp array.

end-sanitize-gdbtk
* eval.c (evaluate_subexp_for_sizeof):  Handle dereferencing
of non-pointer values.

* symtab.c (gdb_mangle_name):  Improve mangling of nested types,
their physical names already include the class name.

* valops.c (value_cast):  Handle upcast of a class pointer.

From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de):
* corelow.c (get_core_registers):  Make secname big enough.

27 years ago * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
Ian Lance Taylor [Sat, 7 Jun 1997 03:48:00 +0000 (03:48 +0000)]
* scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
the import list.

27 years ago Modified Files:
Keith Seitz [Fri, 6 Jun 1997 21:47:12 +0000 (21:47 +0000)]
 Modified Files:
ChangeLog sh-tdep.c config/sh/tm-sh.h
        * config/sh/tm-sh.h: add define for FPSCR_REGNUM
        * sh-tdep.c (sh_show_regs): print out all registers for
        the current processor

27 years ago * ld-elfvers/vers6.ver: Update for recent elflink.h patch to
Ian Lance Taylor [Fri, 6 Jun 1997 21:36:11 +0000 (21:36 +0000)]
* ld-elfvers/vers6.ver: Update for recent elflink.h patch to
version handling.

27 years ago(elf_link_find_version_dependencies): When searching
Ulrich Drepper [Fri, 6 Jun 1997 21:19:41 +0000 (21:19 +0000)]
(elf_link_find_version_dependencies): When searching
for known version symbol skip non-matching verdef records, not
matching records.

27 years ago * config/tc-sh.h (md_cons_align): Define.
Ian Lance Taylor [Fri, 6 Jun 1997 21:17:46 +0000 (21:17 +0000)]
* config/tc-sh.h (md_cons_align): Define.
(sh_cons_align): Declare.
* config/tc-sh.c (md_pseudo_table): Add .uaword and .ualong.
(sh_no_align_cons): New static variable.
(s_uacons): New static function.
(sh_cons_align): New function.
(sh_handle_align): Warn about misaligned data.
* doc/c-sh.texi: Document .uaword and .ualong.
PR 12528.