* Makefile.in: Remove unnecessary itbl-parse.h, ibtl-parse.c, and
itbl-lex.c dependencies. Remove rules for itbl-lex.o,
itbl-parse.o, and itbl-ops.o; just use the normal .c.o rule.
* Makefile.in ($(OBJDUMP_PROG)): Don't link against BFDLIB twice.
* configure.in: Add AC_ARG_ENABLE for commonbfdlib. If it is set,
set OPCODES to empty.
* configure: Rebuild.
Contributed by David S. Miller <[email protected]>:
* configure.tgt (sparc*-*-linuxaout*): New target.
(sparc*-*-linux*): New target.
* emulparams/sparclinux.sh: New file.
* Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
(esparclinux.c): New target.
Ian Lance Taylor [Fri, 28 Mar 1997 20:24:08 +0000 (20:24 +0000)]
From David S. Miller <[email protected]> and H.J. Lu
<[email protected]>:
* sparclinux.c: New file.
* config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets.
* configure.in (sparclinux_vec): Add to list of vectors.
* configure: Rebuild.
* targets.c (sparclinux_vec): Declare.
(bfd_target_vector): Add sparclinux_vec.
* Makefile.in: Rebuild dependencies.
(BFD32_BACKENDS): Add sparclinux.o.
(BFD32_BACKENDS_CFILES): Add sparclinux.c.
Ian Lance Taylor [Fri, 28 Mar 1997 19:34:34 +0000 (19:34 +0000)]
From Ralf Baechle <[email protected]>:
* configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
elf32elmip.
Ian Lance Taylor [Fri, 28 Mar 1997 19:18:11 +0000 (19:18 +0000)]
* config/tc-mips.c (struct mips_set_options): Define.
(mips_opts): New static variable.
(mips_isa): Remove. Now a field in mips_opts. Change all
references.
(mips16, mips16_autoextend, mips_warn_about_macros): Likewise.
(mips_noreorder, mips_nomove, mips_noat, mips_nobopt): Likewise.
(struct mips_option_stack): Define.
(mips_opts_stack): New static variable.
(s_mipsset): Add support for .set push and .set pop.
* doc/c-mips.texi: Document .set push and .set pop.
Ian Lance Taylor [Fri, 28 Mar 1997 18:10:09 +0000 (18:10 +0000)]
* config/obj-elf.c (obj_elf_section_change_hook): New function.
* config/obj-elf.h (obj_elf_section_change_hook): Declare it.
* config/tc-mips.c (s_change_sec): Call it if OBJ_ELF.
Ian Lance Taylor [Fri, 28 Mar 1997 17:39:23 +0000 (17:39 +0000)]
* config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecs
for mips*el*-*-linux* and mips*-*-linux*. From H.J. Lu
<[email protected]> and Ralf Baechle <[email protected]>.
Ian Lance Taylor [Fri, 28 Mar 1997 17:11:55 +0000 (17:11 +0000)]
* configure.in: Add stdlib.h to AC_CHECK_HEADERS list.
* configure, config.in: Rebuild.
* sysdep.h: Include <stdlib.h> if it exists.
* sparc-dis.c: Include <stdio.h> and "sysdep.h". Don't include
<string.h>.
* Makefile.in: Rebuild dependencies.
Ian Lance Taylor [Thu, 27 Mar 1997 18:45:20 +0000 (18:45 +0000)]
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPY
reloc even if the symbol is in the .bss section.
* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
* elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
Ian Lance Taylor [Thu, 27 Mar 1997 18:01:55 +0000 (18:01 +0000)]
* coffcode.h (bfd_coff_backend_data): Add new field
_bfd_coff_default_section_alignment_power.
(bfd_coff_default_section_alignment_power): Define.
(bfd_coff_std_swap_table): Initialize new field.
* libcoff.h: Rebuild.
* cofflink.c (coff_link_add_symbols): Limit alignment of a common
symbol to the default section alignment.
Ian Lance Taylor [Thu, 27 Mar 1997 17:31:06 +0000 (17:31 +0000)]
* read.c (s_comm): Check S_IS_COMMON as well as S_IS_DEFINED.
(s_mri_common): Check S_IS_COMMON unconditionally.
* symbols.c (colon): Check S_IS_COMMON as well as S_IS_DEFINED.
* config/tc-alpha.c (s_alpha_comm): Likewise.
* config/tc-mips.c (nopic_need_relax): Likewise.
* config/tc-ppc.c (ppc_elf_lcomm): Likewise.
(ppc_pe_comm): Likewise.
* config/obj-elf.c (obj_elf_common): Likewise. Set segment of
common symbol to bfd_com_section_ptr.
* config/tc-sparc.c (s_common): Likewise.
(tc_gen_reloc): Likewise.
Ian Lance Taylor [Wed, 26 Mar 1997 22:26:14 +0000 (22:26 +0000)]
* listing.c (print_lines): Add lineno parameter. Change all
callers.
(listing_listing): Only call calc_hex for the right line.
(listing_list): Set the new edict based on the current edict, in
order to handle listing commands in macros correctly.
Mark Alexander [Wed, 26 Mar 1997 14:48:59 +0000 (14:48 +0000)]
Fix from Peter Schauer:
* mdebugread.c (parse_procedure): Set address of procedure to
block start; this fixes problems with shared libraries introduced
by change of Mar 21.
* config/tc-d30v.c (md_assemble): If two instructions
are supposed to be assembled in parallel and the first one is
long, print an error and stop.
(md_apply_fix3): Don't calculate absolute relocs. Just write
them out.
Ian Lance Taylor [Tue, 25 Mar 1997 19:46:12 +0000 (19:46 +0000)]
* stabs.c (_bfd_link_section_stabs): Copy over the first header
symbol. Check for memory allocation failure of *psinfo.
(_bfd_write_section_stabs): Add psinfo parameter. Change all
callers. Set the value of the header symbol.
* libbfd-in.h (_bfd_write_section_stabs): Update declaration.
* libbfd.h: Rebuild.
* symtab.c (find_pc_symtab): change to support the case
where the objfile is reordered and contains both coff and
stabs debugging info (continue on if a psymtab isn't found).
Fred Fish [Tue, 25 Mar 1997 03:07:35 +0000 (03:07 +0000)]
* coff-tic80.c (tic80_howto_table): Add R_ABS entry.
(rtype2howto): Handle R_ABS reloc type. Also abort on unhandled
reloc types, rather than silently failing to generate an output file.
Jeff Law [Mon, 24 Mar 1997 21:48:36 +0000 (21:48 +0000)]
* gdb.disasm/mn10300.s: New test file for mn10300 disassembler.
* gdb.disasm/mn10300.exp: Run mn10300 disassembler tests.
* gdb.disasm/Makefile.in: Remove "mn10300" when cleaning.
disassembler testsuite for the mn10300.
Ian Lance Taylor [Mon, 24 Mar 1997 21:22:00 +0000 (21:22 +0000)]
* targmatch.sed: Use the hold space to put the #ifdef around the
the string constant.
* targets.c (UNSUPPORTED_TARGET): Don't define.
(find_target): Don't check for UNSUPPORTED_TARGET.
(bfd_set_default_target): Don't try to optimize by checking for
default.
Ian Lance Taylor [Mon, 24 Mar 1997 18:42:09 +0000 (18:42 +0000)]
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't
count section symbols for sections that were created by the
linker, or are not allocatable or not loadable.
(elf32_sparc_finish_dynamic_sections): Output output section
symbols for section for which we made space for them.
Ian Lance Taylor [Mon, 24 Mar 1997 17:14:06 +0000 (17:14 +0000)]
* config/tc-alpha.h (tc_frob_file_before_adjust): Define if
OBJ_ECOFF.
(alpha_frob_file_before_adjust): Declare if OBJ_ECOFF.
* config/tc-alpha.c (alpha_debug): New static variable.
(md_parse_option): Set alpha_debug if -g is seen.
(alpha_frob_file_before_adjust): New function if OBJ_ECOFF.