binutils-gdb.git
21 years ago2001-08-22 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 04:45:16 +0000 (04:45 +0000)]
2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
* emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
* configure.host (am33_2.0-*-linux*): Added.
* configure.tgt (am33_2.0-*-linux*): Likewise.
* emulparams/elf32am33lin.sh: New.
* Makefile.am (eelf32am33lin.c): New rule.
* Makefile.in: Rebuilt.

21 years ago2002-12-12 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 04:44:56 +0000 (04:44 +0000)]
2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
* config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
* configure.in (am33_2.0, mn10300-*-linux*): Added.
* configure: Rebuilt.
* config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
elf32-am33lin.
* config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
by default.

21 years ago2001-09-12 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 04:44:37 +0000 (04:44 +0000)]
2001-09-12  Alexandre Oliva  <aoliva@redhat.com>
* elf32-am33lin.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
2001-06-02  Nick Clifton  <nickc@cambridge.redhat.com>
* elf32-am33lin.c: Rename global functions.
2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
* config.bfd (am33_2.0, am33_2.0-*-linux*): Added.
* configure.in (bfd_elf32_am33lin_vec): Added.
* Makefile.am (BFD32_BACKENDS): Added elf32-am33lin.lo.
(elf32-am33lin.lo): List dependencies.
* aclocal.m4, configure, Makefile.in: Rebuilt.
* elf-m10300.c (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME,
ELF_ARCH, ELF_MACHINE_CODE, ELF_MAXPAGESIZE): Define only if
ELF_ARCH was not defined before.
(elf_symbol_leading_char): Define if not defined.
* elf32-am33lin.c: Override the definitions above.
* targets.c (bfd_elf32_am33lin_vec): New.

21 years ago2001-04-17 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 03:20:26 +0000 (03:20 +0000)]
2001-04-17  Alexandre Oliva  <aoliva@redhat.com>
* emulparams/mn10300.sh (TEMPLATE_NAME): Define.
(GENERATE_SHLIB_SCRIPT): Likewise.

21 years ago2003-02-25 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 03:20:14 +0000 (03:20 +0000)]
2003-02-25  Alexandre Oliva  <aoliva@redhat.com>
* config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
for subtracts from GLOBAL_OFFSET_TABLE that could not be
simplified.
2002-07-18  Alexandre Oliva  <aoliva@redhat.com>
* config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
could not be simplified.
(tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
* config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
BDF_RELOC_MN10300_GOT32.
* config/tc-mn10300.c (mn10300_fix_adjustable): If
TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
* config/tc-mn10300.c (mn10300_parse_name): Don't return a
symbol if we know its value.
2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
* config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
duplicate underscore prefix.
2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
* config/tc-mn10300.c (mn10300_parse_name): Store relocation
type in X_md, not X_add_number.  Zero X_add_number.
(mn10300_check_fixup): Extract relocation type from X_md.
* config/tc-mn10300.h: Update comment.
2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
* config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
(O_PIC_reloc): this.
* config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
(mn10300_check_fixup): Likewise.
(mn10300_parse_name): Set X_add_number to relocation type.
* config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
O_GOTOFF, O_PLT, O_GOT): Define.
* config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
(mn10300_check_fixup): New fn.
(md_assemble): Call it.  Check for PIC-related relocs.
(mn10300_cons_fix_new): Likewise.  New fn.
(mn10300_end_of_match): New fn.
(mn10300_md_parse_name_cont): New fn.

21 years ago2002-12-12 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 03:20:00 +0000 (03:20 +0000)]
2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
* elf-m10300.c (elf32_mn10300_link_hash_newfunc): Initialize
pcrel_relocs_copied.
2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
* elf-m10300.c (ELF_DYNAMIC_INTERPRETER): Renamed from
ld-linux.so.2 to ld.so.1.
2001-10-10  Alexandre Oliva  <aoliva@redhat.com>
* elf-m10300.c (elf_mn10300_sizeof_plt0): New macro.
(_bfd_mn10300_elf_adjust_dynamic_symbol): Use it.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
* elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Allocate
.rela.* section contents with bfd_zalloc.
2001-09-25  Alexandre Oliva  <aoliva@redhat.com>
* elf-m10300.c: Added declarations for functions missing them.
Merge some shared-library changes from the i386 back-end.  Use
R_MN10300_RELATIVE instead of R_MN10300_PCREL32 and
R_MN10300_GLOB_DAT instead of R_MN10300_32 where appropriate.
(struct elf32_mn10300_link_hash_entry): Remove duplicates of
members of elf_link_hash_entry.  Adjusted references.
(mn10300_elf_final_link_relocate): dynobj was already loaded
into a local variable, use it.
2001-09-21  Nick Clifton  <nickc@cambridge.redhat.com>
* elf-m10300.c: Add missing function prototypes.
2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
* elf-m10300.c (mn10300_elf_relocate_section): Don't compute
relocation for dynamic relocations.
2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
* reloc.c (BFD_RELOC_MN10300_GOTOFF24): New.
* elf-m10300.c: Introduce GOTPC16, GOTOFF24, GOTOFF16 and
PLT16, and rename GOTPC to GOTPC32 and GOTOFF to GOTOFF32.
(_bfd_mn10300_elf_create_dynamic_sections): Move creation ot PLT...
(_bfd_mn10300_elf_create_got_section): ... here, so that its
adress is already known at the time we compute relaxations.
(mn10300_elf_relax_section): Relax GOTPC32, GOTOFF32, GOT32
and PLT32 to narrower relocations.
* libbfd.h, bfd-in2.h: Rebuilt.
2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
* reloc.c (BFD_RELOC_MN10300_GOT32, BFD_RELOC_MN10300_GOT24,
BFD_RELOC_MN10300_GOT16, BFD_RELOC_MN10300_COPY,
BFD_RELOC_MN10300_GLOB_DAT, BFD_RELOC_MN10300_JMP_SLOT,
BFD_RELOC_MN10300_RELATIVE): New relocs.
* libbfd.h, bfd-in2.h: Rebuilt.
* elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): New.
(struct elf32_mn10300_link_hash_entry): Added DSO-related
fields.
(elf_mn10300_howto): Defined new relocation types.
(mn10300_reloc_map): Map them.
(_bfd_mn10300_elf_create_got_section): New fn.
(mn10300_elf_check_relocs): Handle PIC relocs.
(mn10300_elf_final_link_relocate): Likewise.
(mn10300_elf_relocate_section): Handle DSOs.
(PLT0_ENTRY_SIZE, PLT_ENTRY_SIZE, PIC_PLT_ENTRY_SIZE): New macros.
(elf_mn10300_plt0_entry, elf_mn10300_plt_entry,
elf_mn10300_pic_plt_entry): New.
(elf_mn10300_sizeof_plt, elf_mn10300_plt_plt0_offset,
elf_mn10300_plt0_linker_offset, elf_mn10300_plt0_gotid_offset,
elf_mn10300_plt_temp_offset, elf_mn10300_plt_symbol_offset,
elf_mn10300_plt_reloc_offset: New macros.
(ELF_DYNAMIC_INTERPRETER): Likewise.
(_bfd_mn10300_elf_create_dynamic_sections): New function.
(_bfd_mn10300_elf_adjust_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_discard_copies): Likewise.
(_bfd_mn10300_elf_size_dynamic_sections): Likewise.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_finish_dynamic_sections): Likewise.
(elf_backend_can_gc_sections,
elf_backend_create_dynamic_sections,
elf_backend_adjust_dynamic_sections,
elf_backend_size_dynamic_sections,
elf_backend_finish_dynamic_symbol,
elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
elf_backend_plt_readonly, elf_backend_want_plt_sym,
elf_backend_got_header_size, elf_backend_plt_header_size): New
macros.

21 years ago2001-05-16 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 03:19:40 +0000 (03:19 +0000)]
2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
* mn10300.h: Introduce GOTPC16, GOTOFF24, GOTOFF16 and
PLT16, and rename GOTPC to GOTPC32 and GOTOFF to GOTOFF32.
Renumbered all relocs.
2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
* mn10300.h (R_MN10300_GOTPC, R_MN10300_GOTOFF,
R_MN10300_PLT32, R_MN10300_GOT32, R_MN10300_GOT24,
R_MN10300_GOT16, R_MN10300_COPY, R_MN10300_GLOB_DAT,
R_MN10300_JMP_SLOT, R_MN10300_RELATIVE): New relocs.

21 years ago2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
Alexandre Oliva [Thu, 10 Jul 2003 02:53:27 +0000 (02:53 +0000)]
2000-05-25  Alexandre Oliva  <aoliva@cygnus.com>
* m10300-dis.c (disassemble): Negate negative accumulator's shift.
2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
* m10300-dis.c (disassemble, case FSREG, FDREG): Don't assume
32-bit longs when sign-extending operands.
2000-04-20  Alexandre Oliva  <aoliva@cygnus.com>
* m10300-opc.c: Remove MN10300_OPERAND_RELAX from all FSREGs.
* m10300-dis.c (HAVE_AM33_2): Define.
(disassemble): Use it.
(HAVE_AM33): Redefine.
(print_insn_mn10300): Fix mask for 5-byte extended insns.
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* m10300-opc.c: Renamed AM332 to AM33_2.
2000-03-31  Alexandre Oliva  <aoliva@cygnus.com>
* m10300-opc.c: Defined AM33 2.0 register operands.  Added support
for AM33 2.0 `imm8,(abs16)' addressing mode for btst, bset and
bclr.  Implemented `fbCC', `flCC', `dcpf' and all FP insns.
* m10300-dis.c (print_insn_mn10300): Recognize 5byte extended
insn code of AM33 2.0.
(disassemble): Recognize FMT_D3.  Print out FP register names.

21 years ago2001-05-06 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 02:53:10 +0000 (02:53 +0000)]
2001-05-06  Alexandre Oliva  <aoliva@redhat.com>
* elf-m10300.c (compute_function_info): Account for AM33
registers in `movm' when computing stack space for `call' when
linking for AM33/2.0 link.
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* archures.c (bfd_mach_am33_2): Renamed from bfd_mach_am332.
* bfd-in2.h: Rebuilt.
* cpu-m10300.c (bfd_am33_2_arch): Renamed from bfd_am332_arch.
* elf-m10300.c: Updated.
2000-03-31  Alexandre Oliva  <aoliva@cygnus.com>
* archures.c (bfd_mach_am332): Defined.
* bfd-in2.h: Rebuilt.
* cpu-m10300.c (bfd_am332_arch): Defined.
(bfd_am33_arch): Chained with am33-2.
* elf-m10300.c (elf_mn10300_mach): Handle am332.
(_bfd_mn10300_elf_final_write_processing): Likewise.

21 years ago2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
Alexandre Oliva [Thu, 10 Jul 2003 02:50:00 +0000 (02:50 +0000)]
2000-05-25  Alexandre Oliva  <aoliva@cygnus.com>
* config/tc-mn10300.c (mn10300_insert_operand): Negate negative
accumulator's shift.
2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
* config/tc-mn10300.c (md_relax_table, md_convert_frag,
md_assemble, md_estimate_size_before_relax): Handle fbCC.
2000-04-20  Alexandre Oliva  <aoliva@cygnus.com>
* config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
HAVE_AM33_2.
2000-04-03  Alexandre Oliva  <aoliva@cygnus.com>
* config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
(HAVE_AM33): Match AM33_2 too.
(HAVE_AM33_2): New macro.
(md_assemble): Use it.  Match 2.0 registers only if HAVE_AM33_2.
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
(float_registers, double_registers): New variables.
(float_register_name, double_register_name): New functions.
(md_assemble): Recognize FP registers.  Implement FMT_D3.
(mn10300_insert_operand): Support FP registers.

21 years ago2002-02-20 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 02:49:46 +0000 (02:49 +0000)]
2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
* gas/mn10300/am33-2.c (d8pcsec): PC-relative relocations within
text sections don't decay to section+offset.
* gas/mn10300/am33-2.d: Rebuilt.
2000-08-15  Eric Christopher  <echristo@cygnus.com>
* gas/mn10300/am33-2.c (d8pcsec): New Function
(condjmp): Adjust testcase for TC_LINKRELAX_FIXUP
functionality.
* gas/mn10300/am33-2.d: Regenerate
2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
* gas/mn10300/am33-2.c (d8pcoff): Likewise.
* gas/mn10300/am33-2.d: Rebuilt.
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* gas/mn10300/am33-2.c (main): Changed `.am332' to `.am33_2'.
Replaced `AM33 2.0' with `AM33/2.0'.
* gas/mn10300/am33-2.d, gas/mn10300/am33-2.s: Rebuilt.
2000-03-31  Alexandre Oliva  <aoliva@cygnus.com>
* gas/mn10300/am33-2.c: New file, that generated...
* gas/mn10300/am33-2.s, gas/mn10300/am33-2.d: New files.
* gas/mn10300/basic.exp: Test am33-2.

21 years ago2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
Alexandre Oliva [Thu, 10 Jul 2003 02:49:07 +0000 (02:49 +0000)]
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300.h (AM33_2): Renamed from AM33.
2000-03-31  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300.h (AM332, FMT_D3): Defined.
(MN10300_OPERAND_FSREG, MN10300_OPERAND_FDREG): Likewise.
(MN10300_OPERAND_FPCR): Likewise.

21 years ago2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
Alexandre Oliva [Thu, 10 Jul 2003 02:49:00 +0000 (02:49 +0000)]
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300.h (E_MN10300_MACH_AM33_2): Renamed from
E_MN10300_MACH_AM332.
2000-03-31  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300.h (E_MN10300_MACH_AM332): Defined.

21 years ago2003-07-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 10 Jul 2003 01:30:16 +0000 (01:30 +0000)]
2003-07-09  H.J. Lu <hongjiu.lu@intel.com>

* elfxx-ia64.c (IA64_HOWTO): Set dst_mask to -1LL.

21 years ago * ld-powerpc/powerpc.exp: Dump output .got section rather than .toc.
Alan Modra [Thu, 10 Jul 2003 00:38:42 +0000 (00:38 +0000)]
* ld-powerpc/powerpc.exp: Dump output .got section rather than .toc.
* ld-powerpc/tlsexetoc.g: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlstoc.g: Update.
* ld-powerpc/tlstocso.g: Update.
* ld-powerpc/tlstocso.r: Update.

21 years ago * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
Alan Modra [Thu, 10 Jul 2003 00:38:19 +0000 (00:38 +0000)]
* emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
(GOT): Define.
* emultempl/ppc64elf.em (stub_added): New static var.
(ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
(ppc_add_stub_section): Set stub_added.
(gld${EMULATION_NAME}_finish): Look for .got rather than .toc.  Adjust
ppc64_elf_size_stubs call and test for stubs.
* scripttempl/elf.sc (GOT): Define and use.

21 years ago * elf64-ppc.c (bfd_elf64_mkobject): Define.
Alan Modra [Thu, 10 Jul 2003 00:37:27 +0000 (00:37 +0000)]
* elf64-ppc.c (bfd_elf64_mkobject): Define.
(struct ppc64_elf_obj_tdata): New.
(ppc64_elf_tdata, ppc64_tlsld_got): Define.
(ppc64_elf_mkobject): New function.
(struct got_entry): Add "owner".  Move "tls_type".
(struct ppc_link_hash_table): Delete "relgot", "tlsld_got".
(ppc64_elf_init_stub_bfd): New function.
(create_got_section): Create header .got in dynobj.  Create .got
and .rela.got in each bfd.  Stash pointers in ppc64_elf_obj_tdata.
(ppc64_elf_create_dynamic_sections): Don't call create_got_section.
Look for dynobj .got, and test it.
(ppc64_elf_copy_indirect_symbol): Adjust for changed got.
(update_local_sym_info): Likewise.
(ppc64_elf_check_relocs): Likewise.
(ppc64_elf_gc_sweep_hook): Likewise.
(ppc64_elf_tls_optimize): Likewise.
(allocate_dynrelocs): Likewise.
(ppc64_elf_size_dynamic_sections): Likewise.
(ppc64_elf_relocate_section): Likewise.
(ppc64_elf_next_toc_section): Update comment.
(toc_adjusting_stub_needed): Remove unneeded cast.
(ppc64_elf_build_stubs): Check for stub sections in stub bfd by
testing section flags.
(ppc64_elf_build_stubs): Likewise.
(ppc64_elf_size_stubs): Likewise.  Remove stub_bfd param.
(ppc64_elf_finish_dynamic_sections): Write out got sections.
(func_desc_adjust): Copy over dynamic info for undef weaks.
* elf64-ppc.h (ppc64_elf_init_stub_bfd): Declare.
(ppc64_elf_size_stubs): Update prototype.
* elflink.h (elf_link_sort_relocs): Use link_orders to find reldyn
input sections rather than scanning dynobj.

21 years agodaily update
Alan Modra [Thu, 10 Jul 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Thu, 10 Jul 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-07-09 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Wed, 9 Jul 2003 22:53:52 +0000 (22:53 +0000)]
2003-07-09  Chris Demetriou  <cgd@broadcom.com>

        * mips-dis.c (set_default_mips_dis_options): Get BFD from
        the disassembler_info's section, rather than from the
        disassembler_info's symbols pointer.

21 years ago2003-07-09 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Wed, 9 Jul 2003 22:23:57 +0000 (22:23 +0000)]
2003-07-09  Michael Snyder  <msnyder@redhat.com>

* sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.

21 years ago* x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
Mark Kettenis [Wed, 9 Jul 2003 22:10:58 +0000 (22:10 +0000)]
* x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
* x86-64-tdep.c: ... from here.

21 years ago * m68k-tdep.h (enum struct_return): Define.
Andreas Schwab [Wed, 9 Jul 2003 21:36:08 +0000 (21:36 +0000)]
* m68k-tdep.h (enum struct_return): Define.
(struct gdbarch_tdep): Add struct_return.
* m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
bytes are padded to the right, not to the left.  Pass struct value
address in register %a1, not on stack.
(m68k_use_struct_convention): New function.
(m68k_gdbarch_init): Set use_struct_convention.  Initialize
struct_return in tdep to pcc_struct_return.
* m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
reg_struct_return.

21 years ago * somread.c (som_symfile_offsets): Fix compilation error.
Joel Brobecker [Wed, 9 Jul 2003 18:50:12 +0000 (18:50 +0000)]
   * somread.c (som_symfile_offsets): Fix compilation error.

21 years ago2003-07-09 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 9 Jul 2003 14:35:26 +0000 (14:35 +0000)]
2003-07-09  Andrew Cagney  <cagney@redhat.com>

* regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
Add comments about the checks.

21 years ago2003-07-09 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Wed, 9 Jul 2003 13:19:08 +0000 (13:19 +0000)]
2003-07-09  Elena Zannoni  <ezannoni@redhat.com>

        * gdb.base/annota1.exp: Make sure that we properly escape the
        full path of the source file. Xfail more permissive patterns,
        due to a compiler debug info problem.

21 years ago * elfxx-mips.c (mips_elf_link_hash_entry): Remove min_dyn_reloc_index.
Richard Sandiford [Wed, 9 Jul 2003 11:55:49 +0000 (11:55 +0000)]
* elfxx-mips.c (mips_elf_link_hash_entry): Remove min_dyn_reloc_index.
(bfd_mips_elf_swap_msym_in, bfd_mips_elf_swap_msym_out): Delete.
(mips_elf_create_msym_section): Delete.
(mips_elf_create_dynamic_relocation): Don't set min_dyn_reloc_index.
(_bfd_mips_elf_copy_indirect_symbol): Likewise.
(_bfd_mips_elf_create_dynamic_sections): Don't create .msym.
(_bfd_mips_elf_size_dynamic_sections): Don't calculate its size.
(_bfd_mips_elf_size_dynamic_sections): Don't add DT_MIPS_MSYM.
(_bfd_mips_elf_finish_dynamic_symbol): Don't add symbols to .msym.
(_bfd_mips_elf_finish_dynamic_sections): Likewise.

21 years ago * elfxx-mips.c (mips_elf_irix6_finish_dynamic_symbol): Make the
Richard Sandiford [Wed, 9 Jul 2003 11:53:36 +0000 (11:53 +0000)]
* elfxx-mips.c (mips_elf_irix6_finish_dynamic_symbol): Make the
symbols protected.

21 years ago * elfxx-mips.c (mips_elf_create_dynamic_relocation): Fix handling
Richard Sandiford [Wed, 9 Jul 2003 11:52:52 +0000 (11:52 +0000)]
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Fix handling
of relocations whose offset is -2.

21 years ago * bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): Treat
Richard Sandiford [Wed, 9 Jul 2003 11:51:53 +0000 (11:51 +0000)]
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): Treat
forced-local symbols like other locals.  Don't create relocations
against STN_UNDEF in irix objects.

21 years ago * bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): In SGI-
Richard Sandiford [Wed, 9 Jul 2003 11:50:16 +0000 (11:50 +0000)]
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): In SGI-
compatible objects, add the values of defined external symbols
to the addend.

21 years ago * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Always
Richard Sandiford [Wed, 9 Jul 2003 11:48:17 +0000 (11:48 +0000)]
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Always
initialize a GOT entry to the symbol's st_value.

21 years ago[ gas/ChangeLog ]
Chris Demetriou [Wed, 9 Jul 2003 01:27:30 +0000 (01:27 +0000)]
[ gas/ChangeLog ]
2003-07-08  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (mips_validate_fix): Do not warn about branch
        target being a global symbol if not compiling SVR4 PIC code.

[ gas/testsuite/ChangeLog ]
2003-07-08  Chris Demetriou  <cgd@broadcom.com>

        * gas/testsuite/gas/mips/mips.exp: Make sure that branch-misc-2 is
        run to compile non-PIC code, and add branch-misc-2pic.
        * gas/mips/branch-misc-2.l: Adjust for change in non-PIC warnings.
        * gas/mips/branch-misc-2pic.l: New file.
        * gas/mips/branch-misc-2pic.s: New file.

21 years ago*** empty log message ***
gdbadmin [Wed, 9 Jul 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Wed, 9 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2003-07-08 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 8 Jul 2003 20:18:41 +0000 (20:18 +0000)]
2003-07-08  Andrew Cagney  <cagney@redhat.com>

* Makefile.in: Make dependency section headers consistent.
(config_h): Move to $BUILD headers section.
(exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
(msg_U_h, notify_S_h, process_reply_S_h): Ditto.
(ada-exp.tab.c): Move to YACC/LEX section.
(ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
(jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.

21 years agoCleaned up ChangeLog entry.
Kris Warkentin [Tue, 8 Jul 2003 19:37:15 +0000 (19:37 +0000)]
Cleaned up ChangeLog entry.

21 years ago* mem-break.c: Remove whitespace at end of file.
Mark Kettenis [Tue, 8 Jul 2003 18:51:44 +0000 (18:51 +0000)]
* mem-break.c: Remove whitespace at end of file.

21 years ago * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
Joern Rennecke [Tue, 8 Jul 2003 18:05:34 +0000 (18:05 +0000)]
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
Allow second call from ldemul_finish.

21 years ago2003-07-08 Kris Warkentin <kewarken@qnx.com>
Kris Warkentin [Tue, 8 Jul 2003 15:36:44 +0000 (15:36 +0000)]
2003-07-08  Kris Warkentin  <kewarken@qnx.com>

* nto-procfs.c: Cleaned up a bunch of ARI hits.

21 years ago * elf-bfd.h (struct elf_obj_tdata): Move linker_section_pointers..
Alan Modra [Tue, 8 Jul 2003 13:10:51 +0000 (13:10 +0000)]
* elf-bfd.h (struct elf_obj_tdata): Move linker_section_pointers..
* elf32-ppc.c (struct ppc_elf_obj_tdata): ..to here.  New.
(ppc_elf_tdata): Define.
(elf_local_ptr_offsets): Adjust.
(ppc_elf_mkobject): New function.
(bfd_elf32_mkobject): Define.

21 years ago * elfcode.h (elf_object_p): Allocate tdata via _bfd_set_format.
Alan Modra [Tue, 8 Jul 2003 08:08:00 +0000 (08:08 +0000)]
* elfcode.h (elf_object_p): Allocate tdata via _bfd_set_format.
* elfcore.h (elf_core_file_p): Likewise.
* section.c (bfd_section_init): Remove prototype.

21 years agodaily update
Alan Modra [Tue, 8 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Tue, 8 Jul 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-07-07 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 7 Jul 2003 20:07:12 +0000 (20:07 +0000)]
2003-07-07  Andrew Cagney  <cagney@redhat.com>

* frame.c (get_prev_frame): Enable check for identical frames.
Update comments.  Update error messages.

21 years ago * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
Joel Brobecker [Mon, 7 Jul 2003 18:19:07 +0000 (18:19 +0000)]
    * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.

21 years ago * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
Joel Brobecker [Mon, 7 Jul 2003 18:13:52 +0000 (18:13 +0000)]
    * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
        sort_symtab_syms, no longer necessary.

21 years ago * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
Joel Brobecker [Mon, 7 Jul 2003 18:06:53 +0000 (18:06 +0000)]
* config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.

21 years ago * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
Joel Brobecker [Mon, 7 Jul 2003 17:36:26 +0000 (17:36 +0000)]
    * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
        (mips_register_byte): Likewise.

21 years ago * Makefile.in (sparc_tdep_h): New.
Daniel Jacobowitz [Mon, 7 Jul 2003 15:56:08 +0000 (15:56 +0000)]
* Makefile.in (sparc_tdep_h): New.
(sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
(sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
* sparc-linux-nat.c: Include "sparc-tdep.h".
* sparc-nat.c: Likewise.
* sparc-tdep.c: Likewise.
* sparc64nbsd-nat.c: Likewise.
* sparcnbsd-nat.c: Likewise.
* sparcnbsd-tdep.c: Likewise.
* sparc-tdep.h: New file.
* config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
and sparc_npc_regnum.

21 years ago * elf-bfd.h (struct elf_link_hash_entry): Remove linker_section_pointer
Alan Modra [Mon, 7 Jul 2003 15:51:57 +0000 (15:51 +0000)]
* elf-bfd.h (struct elf_link_hash_entry): Remove linker_section_pointer
field.
(enum elf_linker_section_enum): Delete.
(struct elf_linker_section): Delete.
(struct elf_linker_section_pointers): Delete.
(struct elf_obj_tdata): Remove #if 0 chunk.  Remove linker_section.
Make linker_section_pointers a void**.
(elf_local_ptr_offsets, elf_linker_section): Don't define.
* elf32-ppc.c (enum elf_linker_section_enum): New, cut-down version
of old item in elf-bfd.h.
(struct elf_linker_section): Likewise.
(struct elf_linker_section_pointers): Likewise.
(elf_local_ptr_offsets): Define.
(struct ppc_elf_link_hash_entry): Add linker_section_pointer.
(ppc_elf_link_hash_newfunc): Init it.
(struct ppc_elf_link_hash_table): Add sbss.
(ppc_elf_link_hash_table_create): zmalloc rather than clearing
individual fields.
(elf_create_linker_section): Fold into..
(ppc_elf_create_linker_section): ..here.  Remove hole_size code.
Make rela section here if shared.
(elf_find_pointer_linker_section): Pass lsect rather than enum.
(elf_create_pointer_linker_section): Adjust.  zalloc rather than
clearing in a loop.
(elf_finish_pointer_linker_section): Adjust.  Don't make rela
section here.
(ppc_elf_check_relocs): Adjust.
(ppc_elf_add_symbol_hook): Tighten hash creator test.  Remove code
creating .sbss by hand.
* elf.c (_bfd_elf_link_hash_newfunc): Adjust.

21 years ago * mips-linux-nat.c (mips_linux_cannot_fetch_register)
Daniel Jacobowitz [Mon, 7 Jul 2003 15:17:55 +0000 (15:17 +0000)]
* mips-linux-nat.c (mips_linux_cannot_fetch_register)
(mips_linux_cannot_store_register): List supported instead of
unsupported registers.

21 years ago * disasm.c (dump_insns): Separate instructions from addresses.
Daniel Jacobowitz [Mon, 7 Jul 2003 15:13:17 +0000 (15:13 +0000)]
* disasm.c (dump_insns): Separate instructions from addresses.

21 years ago * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
Andreas Schwab [Mon, 7 Jul 2003 15:06:11 +0000 (15:06 +0000)]
* Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
dependencies.
* m68k-tdep.c (NUM_FREGS): Delete.
(SIG_PC_FP_OFFSET): Delete.
(TARGET_M68K): Delete.
(P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
P_MOVEL_SP, P_MOVEML_SP): Define.
(P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
P_TRAP): Delete.
        (m68k_register_raw_size): Delete.
(m68k_register_virtual_size): Delete.
(m68k_register_type): Renamed from m68k_register_virtual_type and
add gdbarch argument.
(m68k_store_struct_return): Delete.
(m68k_deprecated_extract_return_value): Delete.
(m68k_deprecated_extract_struct_value_address): Delete.
(m68k_frame_chain): Delete.
(m68k_frame_saved_pc): Delete.
(m68k_fix_call_dummy): Delete.
(m68k_push_dummy_frame): Delete.
(m68k_pop_frame): Delete.
(m68k_extract_return_value): New function.
(m68k_store_return_value): Rewrite using regcache.
(m68k_extract_struct_value_address): Rewrite using regcache.
(m68k_push_dummy_call): New function.
(struct m68k_frame_cache): Define.
(m68k_alloc_frame_cache): New function.
(m68k_analyze_frame_setup): New function.
(m68k_analyze_register_saves): New function.
(m68k_analyze_prologue): New function.
(m68k_skip_prologue): Rewrite using above functions.
(m68k_unwind_pc): New function.
(m68k_frame_cache): New function.
(m68k_frame_this_id): New function.
(m68k_frame_prev_register): New function.
(m68k_frame_unwind): New variable.
(m68k_frame_p): New function.
(m68k_sigtramp_frame_cache): New function.
(m68k_sigtramp_frame_this_id): New function.
(m68k_sigtramp_frame_prev_register): New function.
(m68k_sigtramp_frame_unwind): New variable.
(m68k_sigtramp_frame_p): New function.
(m68k_frame_base_address): New function.
(m68k_frame_base): New function.
(m68k_unwind_dummy_id): New function.
(fill_gregset): Use regcache_collect.
(fill_fpregset): Likewise.
(m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
defined.
(m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
deprecated_init_frame_pc, deprecated_store_struct_return,
deprecated_extract_return_value, deprecated_store_return_value,
deprecated_frame_chain, deprecated_frame_saved_pc,
deprecated_frame_init_saved_regs, deprecated_register_raw_size,
deprecated_register_virtual_size,
deprecated_max_register_raw_size,
deprecated_max_register_virtual_size,
deprecated_register_virtual_type, deprecated_register_size,
deprecated_register_byte, deprecated_register_bytes,
deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
call_dummy_location, deprecated_call_dummy_breakpoint_offset,
deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
deprecated_push_dummy_frame, deprecated_pop_frame,
deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
only if SYSCALL_TRAP is defined.  Set extract_return_value,
store_return_value, extract_struct_value_address, register_type,
push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
predicates.
* m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
M68K_MAX_REGISTER_SIZE): Define.
(struct m68k_sigtramp_info): Define.
(struct gdbarch_tdep): Add get_sigtramp_info.
* m68klinux-nat.c (fetch_register): Use register_size instead of
REGISTER_RAW_SIZE.  Don't put assignment in if.
(store_register): Likewise.
(fetch_inferior_registers): Likewise.
(store_inferior_registers): Likewise.
* m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
(m68k_linux_frame_saved_pc): Delete.
(m68k_linux_sigcontext_reg_offset,
m68k_linux_ucontext_reg_offset): Define.
(m68k_linux_get_sigtramp_info): New function.
(m68k_linux_extract_return_value): Rewrite using regcache.
(m68k_linux_store_return_value): Likewise.
(m68k_linux_extract_struct_value_address): Likewise.
(m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
Don't set deprecated_frame_saved_pc,
deprecated_extract_return_value, deprecated_store_return_value,
deprecated_extract_struct_value_address.  Set
extract_return_value, store_return_value,
extract_struct_value_address.

21 years ago * gdb.asm/m68k.inc: New file.
Andreas Schwab [Mon, 7 Jul 2003 14:48:50 +0000 (14:48 +0000)]
* gdb.asm/m68k.inc: New file.
* gdb.asm/asm-source.exp: Use it for m68k-*-*.

21 years ago2003-07-07 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 7 Jul 2003 14:36:58 +0000 (14:36 +0000)]
2003-07-07  Andrew Cagney  <cagney@redhat.com>

* expprint.c: Include "user-regs.h" instead of "frame.h".
(print_subexp): Use user_reg_map_regnum_to_name, instead of
frame_map_regnum_to_name.
* frame.c: Include "user-regs.h" instead of "builtin-regs.h".
(frame_map_name_to_regnum): Simplify, call
user_reg_map_name_to_regnum.
(frame_map_regnum_to_name): Simplify, call
user_reg_map_regnum_to_name.
(frame_register_unwind): Update.
* std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
(_initialize_frame_reg): Call user_reg_add_builtin.
* findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
(value_of_register): Use value_of_user_reg.
* eval.c (evaluate_subexp_standard): Update.
* parse.c (write_dollar_variable): Update.
* d10v-tdep.c (d10v_print_registers_info): Update.
* infcmd.c (registers_info): Update.
* Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
(builtin_regs_h): Delete macro.
(user_regs_h): Define.
(COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
(builtin-regs.o): Delete target.
(user-regs.o): Specify dependencies.
(expprint.o): Update dependencies.
(findvar.o): Update dependencies.
(frame.o): Update dependencies.
(std-regs.o): Update dependencies.

21 years ago * elf32-s390.c (elf_howto_table): Change R_390_GOT12 to
Jakub Jelinek [Mon, 7 Jul 2003 11:14:40 +0000 (11:14 +0000)]
* elf32-s390.c (elf_howto_table): Change R_390_GOT12 to
complain_overflow_bitfield.
* elf64-s390.c (elf_howto_table): Change R_390_GOT12 to
complain_overflow_bitfield.

21 years agoAdd documentation of M32R .high, .shigh and .low directives.
Nick Clifton [Mon, 7 Jul 2003 10:24:08 +0000 (10:24 +0000)]
Add documentation of M32R .high, .shigh and .low directives.

21 years agoAdd Clarke's surname to ChangeLog entry
Nick Clifton [Mon, 7 Jul 2003 09:40:16 +0000 (09:40 +0000)]
Add Clarke's surname to ChangeLog entry

21 years ago * config/tc-h8300.c (h8300sxnmode): Add prototype.
Richard Sandiford [Mon, 7 Jul 2003 09:33:02 +0000 (09:33 +0000)]
* config/tc-h8300.c (h8300sxnmode): Add prototype.
(DSYMMODE): Remove.
(parse_exp): Replace expressionS argument with a h8_op.  Parse the
operand size as well.
(skip_colonthing): Remove unused expression argument.  Tighten checks
for 2-digit sizes.
(colonmod24): Remove.
(get_mova_operands): Combine calls to parse_exp and skip_colonthing.
(get_operand): Likewise.  Use the standard code to read the size of
pc-relative operands.
(fix_operand_size): Include the size-guessing logic that used to be
in colonmod24 and get_operand.  Don't apply dd:2 optimizations to
offsets with a symbolic component.

testsuite/
* gas/h8300/h8sx_disp2.[sd]: Add tests for symbolic displacements.

21 years ago * ppc-opc.c: Remove NULL pointer checks. Formatting. Remove
Alan Modra [Mon, 7 Jul 2003 01:34:04 +0000 (01:34 +0000)]
* ppc-opc.c: Remove NULL pointer checks.  Formatting.  Remove
extraneous ATTRIBUTE_UNUSED.
* ppc-dis.c (print_insn_powerpc): Always pass a valid address to
operand->extract.

21 years ago*** empty log message ***
gdbadmin [Mon, 7 Jul 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Mon, 7 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * gdb.objc/basicclass.exp ("Call an Objective-C method with no
Andreas Schwab [Sun, 6 Jul 2003 22:27:34 +0000 (22:27 +0000)]
* gdb.objc/basicclass.exp ("Call an Objective-C method with no
arguments"): Also match negative number.

* gdb.base/float.exp ("info float"): Add test for m68k-*-*.

21 years ago2003-07-06 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sun, 6 Jul 2003 21:44:55 +0000 (21:44 +0000)]
2003-07-06  H.J. Lu <hongjiu.lu@intel.com>

* demangle.h: Support C++.

21 years ago2003-07-06 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sun, 6 Jul 2003 21:38:00 +0000 (21:38 +0000)]
2003-07-06  H.J. Lu <hongjiu.lu@intel.com>

* config-ml.in: Replace PWD with PWD_COMMAND.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerated.

21 years ago* win32-nat.c (solib_symbols_add): Use one variable for all section address
Christopher Faylor [Sun, 6 Jul 2003 19:48:54 +0000 (19:48 +0000)]
* win32-nat.c (solib_symbols_add): Use one variable for all section address
stuff.  Pass variable rather than address of variable to safe_symbol_file_add.

21 years ago * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
Andreas Schwab [Sun, 6 Jul 2003 18:58:26 +0000 (18:58 +0000)]
* m68klinux-nat.c (fill_fpregset): Fix use of loop index.

21 years agodaily update
Alan Modra [Sun, 6 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Sun, 6 Jul 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years agoClean up white space
Zack Weinberg [Sat, 5 Jul 2003 16:54:46 +0000 (16:54 +0000)]
Clean up white space

21 years ago* dlltool.c (prefix_encode): Use a fixed length for alpha.
Christopher Faylor [Sat, 5 Jul 2003 13:49:50 +0000 (13:49 +0000)]
* dlltool.c (prefix_encode): Use a fixed length for alpha.

21 years ago* dlltool.c (prefix_encode): New function. Encode temp file prefix from pid.
Christopher Faylor [Sat, 5 Jul 2003 02:58:29 +0000 (02:58 +0000)]
* dlltool.c (prefix_encode): New function.  Encode temp file prefix from pid.
(dlltmp): Pass address of pointer being alloced or suffer neverending mallocs.
(make_one_lib_file): Allocate enough space for new longer stub names.
(gen_lib_file): Ditto.
(main): Generate the temp file prefix from the pid if prefix was not specified
on the command line.

21 years agomerge from gcc
DJ Delorie [Sat, 5 Jul 2003 01:59:15 +0000 (01:59 +0000)]
merge from gcc

21 years agodaily update
Alan Modra [Sat, 5 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Sat, 5 Jul 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * rs6000-nat.c (vmap_symtab): Fix compilation error.
Joel Brobecker [Fri, 4 Jul 2003 16:42:59 +0000 (16:42 +0000)]
* rs6000-nat.c (vmap_symtab): Fix compilation error.

21 years agoAllow to override sh64 initial stack value with --defsym:
Joern Rennecke [Fri, 4 Jul 2003 16:07:01 +0000 (16:07 +0000)]
Allow to override sh64 initial stack value with --defsym:
* emulparams/shelf32.sh (STACK_ADDR): Don't define.
(OTHER_SECTIONS): Include .stack.
* emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.

21 years ago2003-07-04 Kris Warkentin <kewarken@qnx.com>
Kris Warkentin [Fri, 4 Jul 2003 15:57:08 +0000 (15:57 +0000)]
2003-07-04  Kris Warkentin  <kewarken@qnx.com>

* config/i386/nto.mh: Set XM_FILE to xm-i386.h

21 years ago2003-07-04 Kris Warkentin <kewarken@qnx.com>
Kris Warkentin [Fri, 4 Jul 2003 15:48:57 +0000 (15:48 +0000)]
2003-07-04  Kris Warkentin  <kewarken@qnx.com>

* nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
* config/i386/nto.mh: New file.
* config/i386/nm-nto.h: New file.
* configure.host: Add i[3456]86-*-nto*.

21 years ago * ppc-opc.c: Convert to C90, removing unnecessary prototypes and
Alan Modra [Fri, 4 Jul 2003 15:27:25 +0000 (15:27 +0000)]
* ppc-opc.c: Convert to C90, removing unnecessary prototypes and
casts.  Formatting.

21 years ago(MKDOC rule): Add $(CFLAGS) in case it contains CC_FOR_BUILD specific switches.
Nick Clifton [Fri, 4 Jul 2003 14:46:14 +0000 (14:46 +0000)]
(MKDOC rule): Add $(CFLAGS) in case it contains CC_FOR_BUILD specific switches.

21 years ago * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return
Jakub Jelinek [Fri, 4 Jul 2003 13:57:14 +0000 (13:57 +0000)]
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return
true even if -pie.

21 years agobfd/
Jakub Jelinek [Fri, 4 Jul 2003 13:53:38 +0000 (13:53 +0000)]
bfd/
* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add rel_fptr_sec.
(elfNN_ia64_dynamic_symbol_p): Change info->shared into
!info->executable.
(get_fptr): For -pie create .opd as writable section and create
.rela.opd as well.
(elfNN_ia64_check_relocs): Change info->shared into
!info->executable.
(allocate_fptr): Likewise.
(allocate_dynrel_entries): Account for a relative reloc for -pie
@fptr().  Don't account for a relative reloc if -pie want_ltoff_fptr
for undefweak symbol.  Account for an IPLT reloc in .rela.opd
section if -pie.
(set_got_entry): Don't create a relative reloc if -pie
want_ltoff_fptr for undefweak symbol.
(set_fptr_entry): Emit an IPLT reloc in .rela.opd for -pie.
(elfNN_ia64_relocate_section): Emit a relative reloc for -pie
@fptr().

* elfxx-ia64.c (elfNN_ia64_relocate_section): Issue undefined_symbol
even if -pie.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
ld/
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
.opd if -pie.
(OTHER_READWRITE_SECTIONS): Include .opd if -pie.
* scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
if -pie.

21 years ago * gas/ppc/test2elf64.s: Rename to..
Alan Modra [Fri, 4 Jul 2003 13:35:35 +0000 (13:35 +0000)]
* gas/ppc/test2elf64.s: Rename to..
* gas/ppc/power4.s: ..this.  Add mtcr and mfcr testcases.
* gas/ppc/test2elf64.d: Rename to..
* gas/ppc/power4.d: ..this.  Update.
* gas/ppc/ppc.exp: Update.

21 years ago * ppc-opc.c: Remove PARAMS from prototypes.
Alan Modra [Fri, 4 Jul 2003 13:06:21 +0000 (13:06 +0000)]
* ppc-opc.c: Remove PARAMS from prototypes.
(FXM4): Define.
(insert_fxm): New function, used by both FXM and FXM4.
(extract_fxm): Likewise.
(XFXFXM_MASK): Remove 1 << 20 term.
(powerpc_opcodes): Add Power4 version of "mfcr".  Simplify "mtcr" mask.

21 years ago* config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
Nick Clifton [Fri, 4 Jul 2003 10:46:35 +0000 (10:46 +0000)]
* config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
  macro to compute size of selected register name array.

21 years ago* readelf.c (get_data): Print (unsigned) hex values for size and offset in
Nick Clifton [Fri, 4 Jul 2003 10:42:26 +0000 (10:42 +0000)]
* readelf.c (get_data): Print (unsigned) hex values for size and offset in
  error messages.
  (process_section_headers): If the string table could not be allocated, do
  not continue.

21 years ago* elf32-h8300.c (R_H8_DIR32A16): Fix name field.
Nick Clifton [Fri, 4 Jul 2003 10:25:14 +0000 (10:25 +0000)]
* elf32-h8300.c (R_H8_DIR32A16): Fix name field.
(elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation.
<R_H8_DIR32A16>: Fix type of relocation.

* ld-h8300/h8300.exp: Replace loop with explicit list.  Run relax.d
unconditionally.  Run relax-2.d for *-elf targets.
* ld-h8300/relax.d: Fix typo.
* ld-h8300/relax.s: Add 0x prefixes.
* ld-h8300/relad-2.[sd]: New test.

21 years ago * elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
Kaz Kojima [Fri, 4 Jul 2003 08:41:57 +0000 (08:41 +0000)]
* elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
sections were created already.  Remove unnecessary tests of
the previous change.

21 years ago * elf32-sh.c (sh_elf_create_dynamic_sections): Don't call
Kaz Kojima [Fri, 4 Jul 2003 07:38:33 +0000 (07:38 +0000)]
* elf32-sh.c (sh_elf_create_dynamic_sections): Don't call
bfd_make_section for existing sections.

21 years ago * elf32-sparc.c (elf32_sparc_check_relocs): Don't call
Alan Modra [Fri, 4 Jul 2003 04:58:03 +0000 (04:58 +0000)]
* elf32-sparc.c (elf32_sparc_check_relocs): Don't call
create_got_section if we already have done so.
* elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
(sh_elf_check_relocs): Likewise.
(sh_elf_adjust_dynamic_symbol): Delete "dynobj" var.  Use
htab->root.dynobj instead.
(sh_elf_check_relocs): Likewise.
(sh_elf_finish_dynamic_sections): Likewise.

21 years ago * section.c (bfd_make_section): Return NULL for existing section.
Alan Modra [Fri, 4 Jul 2003 04:14:56 +0000 (04:14 +0000)]
* section.c (bfd_make_section): Return NULL for existing section.

21 years ago * elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
Alan Modra [Fri, 4 Jul 2003 01:57:26 +0000 (01:57 +0000)]
* elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
ppc_elf_create_got if we've already done so.

21 years ago * elf-bfd.h (_bfd_elf_create_linker_section) Don't declare.
Alan Modra [Fri, 4 Jul 2003 01:50:12 +0000 (01:50 +0000)]
* elf-bfd.h (_bfd_elf_create_linker_section) Don't declare.
(_bfd_elf_find_pointer_linker_section): Likewise.
(bfd_elf32_create_pointer_linker_section): Likewise.
(bfd_elf32_finish_pointer_linker_section): Likewise.
(bfd_elf64_create_pointer_linker_section): Likewise.
(bfd_elf64_finish_pointer_linker_section): Likewise.
(_bfd_elf_make_linker_section_rela): Likewise.
* elfcode.h (elf_create_pointer_linker_section): Don't define.
(elf_finish_pointer_linker_section): Likewise.
* elflink.c (_bfd_elf_make_linker_section_rela): Delete.
(_bfd_elf_create_linker_section): Move this function..
(_bfd_elf_find_pointer_linker_section): ..and this..
* elflink.h (elf_create_pointer_linker_section): ..and this..
(elf_finish_pointer_linker_section): ..and this..
* elf32-ppc.c: ..to here, renaming to the following, and adjusting
calls.
(elf_create_linker_section): Convert to C90, tidy.
(elf_find_pointer_linker_section): Likewise.
(elf_create_pointer_linker_section): Likewise.
(elf_finish_pointer_linker_section): Likewise.
* elf32-i370.c: Delete #if 0 code.

21 years ago * remote-vx.c (vx_add_symbols): Fix compilation error.
Joel Brobecker [Fri, 4 Jul 2003 01:27:25 +0000 (01:27 +0000)]
   * remote-vx.c (vx_add_symbols): Fix compilation error.

21 years ago2003-07-03 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 4 Jul 2003 00:03:52 +0000 (00:03 +0000)]
2003-07-03  Michael Snyder  <msnyder@redhat.com>

* gencode.c (movs): Fix a couple of text transpositions.

21 years agodaily update
Alan Modra [Fri, 4 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Fri, 4 Jul 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-07-03 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Thu, 3 Jul 2003 22:14:42 +0000 (22:14 +0000)]
2003-07-03  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (REGISTER_NAME): Do not supply a default.
* gdbarch.h, gdbarch.c: Re-generate.
* config/sparc/tm-sparc.h (REGISTER_NAME): Define.
(legacy_register_name): Declare.
* config/sparc/tm-sp64.h (legacy_register_name): Declare.
(REGISTER_NAME): Define.
* sparc-tdep.c (legacy_register_name): New function.
* config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
(REGISTER_NAME): Define.
(hppa64_register_name): Declare.
* config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
* hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
(hppa64_register_name): New function.
(hppa_register_name): New function.
* arch-utils.c (legacy_register_name): Delete.
* arch-utils.h (legacy_register_name): Delete.