OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
22 years ago * ldlex.l: Use #include "" instead of <> for local header files.
Alan Modra [Sat, 25 May 2002 12:54:12 +0000 (12:54 +0000)]
* ldlex.l: Use #include "" instead of <> for local header files.

22 years ago * ia64.h: Use #include "" instead of <> for local header files.
Alan Modra [Sat, 25 May 2002 12:53:48 +0000 (12:53 +0000)]
* ia64.h: Use #include "" instead of <> for local header files.
* sparc.h: Likewise.

22 years ago * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
Alan Modra [Sat, 25 May 2002 12:53:29 +0000 (12:53 +0000)]
* Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
* Makefile.in: Regenerate.
* dep-in.sed: Reorder to match OBJS in Makefile.am.
* configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
* configure: Regenerate.
* as.h: Use #include "" instead of <> for local header files.
* flonum-konst.c: Likewise.
* flonum-mult.c: Likewise.
* gasp.c: Likewise.
* listing.c: Likewise.
* config/tc-ia64.h: Likewise.
* config/tc-v850.h: Likewise.

22 years ago * arlex.l: Use #include "" instead of <> for local header files.
Alan Modra [Sat, 25 May 2002 12:51:38 +0000 (12:51 +0000)]
* arlex.l: Use #include "" instead of <> for local header files.
* coffdump.c: Likewise.
* coffgrok.c: Likewise.
* nlmconv.c: Likewise.
* nlmheader.y: Likewise.
* srconv.c: Likewise.
* strings.c: Likewise.
* sysdump.c: Likewise.
* unwind-ia64.h: Likewise.
* windres.h: Likewise.
* winduni.h: Likewise.

22 years ago * chew.c: Use #include "" instead of <> for local header files.
Alan Modra [Sat, 25 May 2002 12:50:18 +0000 (12:50 +0000)]
* chew.c: Use #include "" instead of <> for local header files.

22 years ago * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
Alan Modra [Sat, 25 May 2002 10:13:23 +0000 (10:13 +0000)]
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
(ppc64_elf_check_relocs): Don't set up function descriptor symbol
strings to point inside function code sym string.
(func_desc_adjust): Likewise.
(ppc64_elf_hide_symbol): Rewrite code to look up function code sym.

22 years agodaily update
Alan Modra [Sat, 25 May 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years agoAdd self as d10v maintainer.
Tom Rix [Fri, 24 May 2002 19:29:07 +0000 (19:29 +0000)]
Add self as d10v maintainer.

22 years ago2002-05-24 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Fri, 24 May 2002 14:25:08 +0000 (14:25 +0000)]
2002-05-24  Michal Ludvig  <mludvig@suse.cz>

* elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
(elf64_x86_64_grok_psinfo): Added.

22 years agoAdd a target for i386-netbsdpe.
Nick Clifton [Fri, 24 May 2002 09:26:58 +0000 (09:26 +0000)]
Add a target for i386-netbsdpe.

22 years ago * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
Alan Modra [Fri, 24 May 2002 04:07:38 +0000 (04:07 +0000)]
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
and is_func_descriptor.
(func_desc_adjust): Hide function code sym in shared libs unless
there is a matching exported function descriptor sym.

22 years agoNew d10v tests.
Tom Rix [Fri, 24 May 2002 03:05:50 +0000 (03:05 +0000)]
New d10v tests.

22 years ago * size.c: Fix formatting.
Kazu Hirata [Fri, 24 May 2002 00:33:36 +0000 (00:33 +0000)]
* size.c: Fix formatting.
* srconv.c: Likewise.
* stabs.c: Likewise.
* sysdump.c: Likewise.
* unwind-ia64.c: Likewise.
* wrstabs.c: Likewise.

22 years ago* sim-d10v.h: Delete file. Moved to include/gdb/.
Andrew Cagney [Fri, 24 May 2002 00:12:18 +0000 (00:12 +0000)]
* sim-d10v.h: Delete file.  Moved to include/gdb/.

* sim-d10v.h: New file.  Moved from include/sim-d10v.h.

* Makefile.in (INCLUDE): Add "gdb/sim-d10v.h".
* interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".

* d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
* Makefile.in (sim_d10v_h): Update definition.

22 years agodaily update
Alan Modra [Fri, 24 May 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago2002-05-23 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 23 May 2002 17:25:22 +0000 (17:25 +0000)]
2002-05-23  H.J. Lu <hjl@gnu.org>

* gas/mips/elf-rel.d: Skip the padding.
* gas/mips/elfel-rel.d: Likewise.

22 years agoDon't match "A-F".
H.J. Lu [Thu, 23 May 2002 17:17:13 +0000 (17:17 +0000)]
Don't match "A-F".

22 years ago2002-05-23 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 23 May 2002 17:12:49 +0000 (17:12 +0000)]
2002-05-23  H.J. Lu <hjl@gnu.org>

* gas/all/align2.d: New.
* gas/all/align2.s: New.

* gas/all/gas.exp: Run align2.

22 years ago * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
Jakub Jelinek [Thu, 23 May 2002 13:12:53 +0000 (13:12 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
for symbols from SHF_TLS section.
(_bfd_elf_print_private_bfd_data): Add PT_TLS.
(elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
(map_sections_to_segments): Build PT_TLS segment if necessary.
(assign_file_positions_for_segments): Likewise.
(get_program_header_size): Account for PT_TLS segment.
(swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
SEC_THREAD_LOCAL sections to STT_TLS.
* reloc.c: Add 386 and IA-64 TLS relocs.
* section.c (SEC_THREAD_LOCAL): Define.
(SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
Remove.
* elflink.h (elf_link_add_object_symbols): Support .tcommon.
(size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
unconditionally.
(struct elf_final_link_info): Add first_tls_sec.
(elf_bfd_final_link): Set first_tls_sec.
Compute elf_hash_table (info)->tls_segment.
(elf_link_output_extsym): Handle STT_TLS symbols.
(elf_link_input_bfd): Likewise.
* syms.c (BSF_THREAD_LOCAL): Define.
* bfd-in2.h: Rebuilt.
* libbfd.h: Rebuilt.
* elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
elf_i386_mkobject, elf_i386_object_p): New functions.
(elf_howto_table): Add TLS relocs.
(elf_i386_reloc_type_lookup): Support TLS relocs.
(elf_i386_info_to_howto_rel): Likewise.
(struct elf_i386_link_hash_entry): Add tls_type.
(struct elf_i386_obj_tdata): New.
(elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
New macros.
(struct elf_i386_link_hash_table): Add tls_ldm_got.
(link_hash_newfunc): Clear tls_type.
(elf_i386_check_relocs): Support TLS relocs.
(elf_i386_gc_sweep_hook): Likewise.
(allocate_dynrelocs): Likewise.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject, elf_backend_object_p): Define.
* elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
want_tprel, want_dtpmod, want_dtprel.
(elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
(ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
R_IA64_LTOFF_TPREL22.
(elf_code_to_howto_index): Add TLS relocs.
(elfNN_ia64_check_relocs): Support TLS relocs.
(allocate_global_data_got): Account for TLS .got data.
(allocate_dynrel_entries): Account for TLS dynamic relocations.
(elfNN_ia64_install_value): Supprt TLS relocs.
(set_got_entry): Support TLS relocs.
(elfNN_ia64_relocate_section): Likewise.

* config/obj-elf.c (elf_common): Renamed from obj_elf_common.
(obj_elf_common): Call elf_common.
(obj_elf_tls_common): New function.
(elf_pseudo_tab): Support .tls_common.
(special_sections): Add .tdata and .tbss.
(obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
sections.
(obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
(obj_elf_parse_section_letters): Include T in error message.
* config/tc-ppc.c (ppc_section_letter): Likewise.
* config/tc-alpha.c (alpha_elf_section_letter): Likewise.
(tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
SEC_MERGE.
* config/tc-sparc.c (md_apply_fix3): Likewise.
* config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
Define them if not BFD_ASSEMBLER.
(lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
and @NTPOFF.
(md_apply_fix3): Add TLS relocs.
* config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
(pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
(ia64_elf_section_letter): Include T in error message.
(md_begin): Support TLS operators.
(md_operand): Likewise.
(ia64_gen_real_reloc_type): Support TLS relocs.
* testsuite/gas/i386/tlspic.s: New file.
* testsuite/gas/i386/tlsd.s: New file.
* testsuite/gas/i386/tlsnopic.s: New file.
* testsuite/gas/i386/tlsd.d: New file.
* testsuite/gas/i386/tlsnopic.d: New file.
* testsuite/gas/i386/tlspic.d: New file.
* testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
* testsuite/gas/ia64/tls.s: New file.
* testsuite/gas/ia64/tls.d: New file.
* testsuite/gas/ia64/ia64.exp: Add tls test.
* write.c (adjust_reloc_syms): Don't change symbols in
SEC_THREAD_LOCAL sections to STT_SECTION + addend.

* elf/common.h (PT_TLS, SHF_TLS, STT_TLS, DF_STATIC_TLS): Define.
* elf/ia64.h (R_IA64_LTOFF_TPREL22): Renamed from R_IA64_LTOFF_TP22.
* elf/i386.h: Add TLS relocs.

* scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
* ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
output section if necessary.  Handle .tbss.
(lang_size_sections): Clear _raw_size for .tbss section
(it allocates space in PT_TLS segment only).
* ldwrite.c (build_link_order): Build link order for .tbss too.

* readelf.c (get_segment_type): Add PT_TLS.
(get_elf_section_flags): Add SHF_TLS.
(get_dynamic_flags): Optimize.  Add DF_STATIC_TLS.
(process_dynamic_segment): Use puts instead of printf.
(get_symbol_type): Support STT_TLS.
* objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT,
SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS.
Add SEC_THREAD_LOCAL.

22 years agoFix handling of BLX instruction to conform to Operations definition in the
Nick Clifton [Thu, 23 May 2002 12:48:23 +0000 (12:48 +0000)]
Fix handling of BLX instruction to conform to Operations definition in the
ARM ARM.

22 years agoFor the Thumb BLX reloc round the relocation up rather than down.
Nick Clifton [Thu, 23 May 2002 12:37:57 +0000 (12:37 +0000)]
For the Thumb BLX reloc round the relocation up rather than down.

22 years agoSilently ignore an 'a' flag in a COFF .section directive.
Nick Clifton [Thu, 23 May 2002 10:45:14 +0000 (10:45 +0000)]
Silently ignore an 'a' flag in a COFF .section directive.

22 years ago * config/tc-alpha.c (assemble_tokens): Protect use of
Alan Modra [Thu, 23 May 2002 10:12:04 +0000 (10:12 +0000)]
* config/tc-alpha.c (assemble_tokens): Protect use of
ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.

22 years ago * configure.in: Correct spelling of AC_PREREQ.
Alan Modra [Thu, 23 May 2002 08:17:10 +0000 (08:17 +0000)]
* configure.in: Correct spelling of AC_PREREQ.

22 years ago * write.c (size_seg): Check adjustment to last frag.
Alan Modra [Thu, 23 May 2002 08:08:48 +0000 (08:08 +0000)]
* write.c (size_seg): Check adjustment to last frag.
(SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
section alignment.
* config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
* config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
(write_object_file): Invoke md_do_align if available, and use
frag_align_code on text sections.
* config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
* config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
* config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
* config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
* config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
BFD_ASSEMBLER too.

22 years ago2002-05-22 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 23 May 2002 06:51:41 +0000 (06:51 +0000)]
2002-05-22  H.J. Lu <hjl@gnu.org>

* dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
for source file.

22 years ago * rdcoff.c: Fix formatting.
Kazu Hirata [Thu, 23 May 2002 04:11:57 +0000 (04:11 +0000)]
* rdcoff.c: Fix formatting.
* rddbg.c: Likewise.
* readelf.c: Likewise.
* rename.c: Likewise.
* resbin.c: Likewise.
* resrc.c: Likewise.
* resres.c: Likewise.

22 years agodaily update
Alan Modra [Thu, 23 May 2002 00:00:04 +0000 (00:00 +0000)]
daily update

22 years ago* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
DJ Delorie [Wed, 22 May 2002 21:06:53 +0000 (21:06 +0000)]
* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.

22 years ago * Makefile.am (sh-dis.lo): Compile with @archdefs@.
Joern Rennecke [Wed, 22 May 2002 19:18:16 +0000 (19:18 +0000)]
* Makefile.am (sh-dis.lo): Compile with @archdefs@.
* Makefile.in: regenerate.

22 years ago* config.guess: Update to 2002-05-22 version.
Jason Thorpe [Wed, 22 May 2002 18:36:13 +0000 (18:36 +0000)]
* config.guess: Update to 2002-05-22 version.
* config.sub: Likewise.

22 years agoAvoid dereferencing null pointer in:
Joern Rennecke [Wed, 22 May 2002 18:16:45 +0000 (18:16 +0000)]
Avoid dereferencing null pointer in:
* sh-dis.c (print_insn_sh): If coff and bfd_mach_sh, use arch_sh4
for disassembly.

22 years ago2002-05-22 H.J. Lu <hjl@gnu.org>
H.J. Lu [Wed, 22 May 2002 18:14:36 +0000 (18:14 +0000)]
2002-05-22  H.J. Lu <hjl@gnu.org>

* gas/mips/elf-rel.d: Updated for the subsegs_finish change in
write.c.
* gas/mips/elfel-rel.d: Likewise.

22 years ago* pe-dll.c (autofilter_liblist): Add more system libs excluded by default.
Christopher Faylor [Wed, 22 May 2002 18:03:09 +0000 (18:03 +0000)]
* pe-dll.c (autofilter_liblist): Add more system libs excluded by default.
(autofilter_objlist): Add crtbegin.o, crtend.o.
* emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
(longopts): Add new option --exclude-libs.
(gld_${EMULATION_NAME}_list_options): Give quick help about it.
(gld_${EMULATION_NAME}_parse_args): Use it.
* pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
* pe-dll.c (exclude_list_struct): Add field type to distinguish symbols from
whole archives.
(pe_dll_add_excludes): Set excludes->type.
(auto_export): Add new variable libname and set to archive basename if abfd.
Use it when filtering default and user-specified libarary excludes.  Let string
"ALL" mean all libs when filtering user-specified libs.
* ld.texinfo: Document --exclude-libs.

22 years agoCOFF: Dump literal pool when changing sections.
Nick Clifton [Wed, 22 May 2002 16:46:27 +0000 (16:46 +0000)]
COFF: Dump literal pool when changing sections.

22 years ago2002-05-22 H.J. Lu <hjl@gnu.org>
H.J. Lu [Wed, 22 May 2002 16:15:18 +0000 (16:15 +0000)]
2002-05-22  H.J. Lu <hjl@gnu.org>

* dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
for one .loc for compiler.

22 years ago * gas/sh/pcrel-coff.s: New file.
Joern Rennecke [Wed, 22 May 2002 13:31:43 +0000 (13:31 +0000)]
* gas/sh/pcrel-coff.s: New file.
* gas/sh/pcrel-coff.d: Likewise.
* gas/sh/basic.exp: For coff, don't do dsp test,
and a modified pcrel test.

22 years ago * sh-dis.c (print_insn_sh): If coff and bfd_mach_sh, use arch_sh4
Joern Rennecke [Wed, 22 May 2002 13:17:27 +0000 (13:17 +0000)]
* sh-dis.c (print_insn_sh): If coff and bfd_mach_sh, use arch_sh4
for disassembly.

22 years agoAllow for PWDCMD to override hardcoded pwd.
Nick Clifton [Wed, 22 May 2002 09:21:32 +0000 (09:21 +0000)]
Allow for PWDCMD to override hardcoded pwd.

22 years ago * ldemul.c (ldemul_new_vers_pattern): New function.
Alan Modra [Wed, 22 May 2002 09:04:48 +0000 (09:04 +0000)]
* ldemul.c (ldemul_new_vers_pattern): New function.
* ldemul.h (ldemul_new_vers_pattern): Declare.
(struct ld_emulation_xfer_struct): Add new_vers_pattern.
* ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
* emultempl/ppc64elf.em (dotsyms): New static var.
(gld${EMULATION_NAME}_new_vers_pattern): New function.
(LDEMUL_NEW_VERS_PATTERN): Define.
(PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
(PARSE_AND_LIST_LONGOPTS): Likewise.
(PARSE_AND_LIST_ARGS_CASES): Handle them.
* emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
initialiser.
* emultempl/armcoff.em: Likewise.
* emultempl/armelf_oabi.em: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/generic.em: Likewise.
* emultempl/gld960.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/lnk960.em: Likewise.
* emultempl/m68kcoff.em: Likewise.
* emultempl/mipsecoff.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/sunos.em: Likewise.
* emultempl/ticoff.em: Likewise.
* emultempl/vanilla.em: Likewise.

22 years ago * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
Alan Modra [Wed, 22 May 2002 08:44:53 +0000 (08:44 +0000)]
* genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
(LIB_SEARCH_DIRS): No need to use "tr".
(COMPILE_IN): Only set for native targets.
* configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
* configure.tgt (powerpc*): Set tdir_*.
(powerpcle*): Correct targ_extra_emuls.
* emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
* emulparams/elf64ppc.sh (LIB_PATH): Likewise.

22 years ago * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
Alan Modra [Wed, 22 May 2002 08:21:27 +0000 (08:21 +0000)]
* emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
calling lang_add_entry.

22 years ago2002-05-21 H.J. Lu (hjl@gnu.org)
H.J. Lu [Wed, 22 May 2002 05:08:31 +0000 (05:08 +0000)]
2002-05-21  H.J. Lu  (hjl@gnu.org)

* emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
"-z muldefs".
(gld${EMULATION_NAME}_list_options): Add "-z muldefs".

* ld.texinfo: Updated for --allow-multiple-definition and
"-z muldefs".

* ldmain.c (main): Initialize the allow_multiple_definition
field to false.

* lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
(ld_options): Add --allow-multiple-definition.
(parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.

22 years ago2002-05-21 H.J. Lu (hjl@gnu.org)
H.J. Lu [Wed, 22 May 2002 05:07:20 +0000 (05:07 +0000)]
2002-05-21  H.J. Lu  (hjl@gnu.org)

* bfdlink.h (bfd_link_info): Add allow_multiple_definition.

22 years ago2002-05-21 H.J. Lu (hjl@gnu.org)
H.J. Lu [Wed, 22 May 2002 05:06:18 +0000 (05:06 +0000)]
2002-05-21  H.J. Lu  (hjl@gnu.org)

* linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
definition.

22 years ago * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
Alan Modra [Wed, 22 May 2002 04:22:08 +0000 (04:22 +0000)]
* elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
(ppc64_elf_relocate_section): Handle unresolved relocs in opd.

22 years ago * config/tc-mips.c (macro): Relax warning, it's toot strict for
Thiemo Seufer [Wed, 22 May 2002 00:13:13 +0000 (00:13 +0000)]
* config/tc-mips.c (macro): Relax warning, it's toot strict for
embedded-PIC.

22 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
Alan Modra [Wed, 22 May 2002 00:04:40 +0000 (00:04 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Return false for
unresolved relocs.
(ppc64_elf_size_dynamic_sections): Check for splt NULL.

22 years agodaily update
Alan Modra [Wed, 22 May 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago? gas/testsuite/gas/mips/rol64.d
Thiemo Seufer [Tue, 21 May 2002 23:54:48 +0000 (23:54 +0000)]
? gas/testsuite/gas/mips/rol64.d
? gas/testsuite/gas/mips/rol64.s
Index: gas/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.1334
diff -u -p -r1.1334 ChangeLog
--- gas/ChangeLog 21 May 2002 20:01:51 -0000 1.1334
+++ gas/ChangeLog 21 May 2002 23:32:51 -0000
@@ -1,3 +1,8 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
+ Optimize the rotate by zero case.
+
 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>

  * configure.in: Remove accidental enabling of bfd_gas=yes for
Index: gas/config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.123
diff -u -p -r1.123 tc-mips.c
--- gas/config/tc-mips.c 14 May 2002 23:35:59 -0000 1.123
+++ gas/config/tc-mips.c 21 May 2002 23:32:52 -0000
@@ -6686,6 +6686,17 @@ macro2 (ip)
       --mips_opts.noreorder;
       break;

+    case M_DROL:
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsubu",
+    "d,v,t", AT, 0, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsrlv",
+    "d,t,s", AT, sreg, AT);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsllv",
+    "d,t,s", dreg, sreg, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+    "d,v,t", dreg, dreg, AT);
+      break;
+
     case M_ROL:
       macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "subu",
     "d,v,t", AT, 0, treg);
@@ -6697,15 +6708,55 @@ macro2 (ip)
     "d,v,t", dreg, dreg, AT);
       break;

+    case M_DROL_I:
+      {
+ unsigned int rot;
+ char *l, *r;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x3f;
+ if (! rot)
+   break;
+ l = (rot < 0x20) ? "dsll" : "dsll32";
+ r = ((0x40 - rot) < 0x20) ? "dsrl" : "dsrl32";
+ rot &= 0x1f;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, l,
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, r,
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
+      break;
+
     case M_ROL_I:
-      if (imm_expr.X_op != O_constant)
- as_bad (_("rotate count too large"));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll", "d,w,<",
-    AT, sreg, (int) (imm_expr.X_add_number & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl", "d,w,<",
-    dreg, sreg, (int) ((0 - imm_expr.X_add_number) & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or", "d,v,t",
-    dreg, dreg, AT);
+      {
+ unsigned int rot;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x1f;
+ if (! rot)
+   break;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll",
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl",
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
+      break;
+
+    case M_DROR:
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsubu",
+    "d,v,t", AT, 0, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsllv",
+    "d,t,s", AT, sreg, AT);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsrlv",
+    "d,t,s", dreg, sreg, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+    "d,v,t", dreg, dreg, AT);
       break;

     case M_ROR:
@@ -6719,15 +6770,44 @@ macro2 (ip)
     "d,v,t", dreg, dreg, AT);
       break;

+    case M_DROR_I:
+      {
+ unsigned int rot;
+ char *l, *r;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x3f;
+ if (! rot)
+   break;
+ r = (rot < 0x20) ? "dsrl" : "dsrl32";
+ l = ((0x40 - rot) < 0x20) ? "dsll" : "dsll32";
+ rot &= 0x1f;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, r,
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, l,
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
+      break;
+
     case M_ROR_I:
-      if (imm_expr.X_op != O_constant)
- as_bad (_("rotate count too large"));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl", "d,w,<",
-    AT, sreg, (int) (imm_expr.X_add_number & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll", "d,w,<",
-    dreg, sreg, (int) ((0 - imm_expr.X_add_number) & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or", "d,v,t",
-    dreg, dreg, AT);
+      {
+ unsigned int rot;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x1f;
+ if (! rot)
+   break;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl",
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll",
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
       break;

     case M_S_DOB:
Index: gas/testsuite/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/testsuite/ChangeLog,v
retrieving revision 1.315
diff -u -p -r1.315 ChangeLog
--- gas/testsuite/ChangeLog 20 May 2002 17:05:34 -0000 1.315
+++ gas/testsuite/ChangeLog 21 May 2002 23:32:54 -0000
@@ -1,3 +1,9 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * gas/mips/rol64.s: New file, test of drol, dror macros.
+ * gas/mips/rol64.d: Likewise.
+ * gas/mips/mips.exp: Add new test.
+
 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>

  * gas/arm/arm.exp: Replace deprecated command line switches
Index: gas/testsuite/gas/mips/mips.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips.exp,v
retrieving revision 1.32
diff -u -p -r1.32 mips.exp
--- gas/testsuite/gas/mips/mips.exp 4 Apr 2002 08:23:30 -0000 1.32
+++ gas/testsuite/gas/mips/mips.exp 21 May 2002 23:32:54 -0000
@@ -122,6 +122,7 @@ if { [istarget mips*-*-*] } then {
  run_dump_test "mul"
     }
     run_dump_test "rol"
+    run_dump_test "rol64"
     if !$aout { run_dump_test "sb" }
     run_dump_test "trunc"
     if !$aout { run_dump_test "ulh" }
Index: include/opcode/ChangeLog
===================================================================
RCS file: /cvs/src/src/include/opcode/ChangeLog,v
retrieving revision 1.167
diff -u -p -r1.167 ChangeLog
--- include/opcode/ChangeLog 17 May 2002 19:01:03 -0000 1.167
+++ include/opcode/ChangeLog 21 May 2002 23:32:57 -0000
@@ -1,3 +1,7 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * mips.h: Add M_DROL, M_DROL_I, M_DROR, M_DROR_I macro cases.
+
 2002-05-17  Andrey Volkov  <avolkov@sources.redhat.com>

         * h8300.h: Corrected defs of all control regs
Index: include/opcode/mips.h
===================================================================
RCS file: /cvs/src/src/include/opcode/mips.h,v
retrieving revision 1.24
diff -u -p -r1.24 mips.h
--- include/opcode/mips.h 16 Mar 2002 03:09:18 -0000 1.24
+++ include/opcode/mips.h 21 May 2002 23:32:57 -0000
@@ -526,9 +526,13 @@ enum
   M_REM_3I,
   M_REMU_3,
   M_REMU_3I,
+  M_DROL,
   M_ROL,
+  M_DROL_I,
   M_ROL_I,
+  M_DROR,
   M_ROR,
+  M_DROR_I,
   M_ROR_I,
   M_S_DA,
   M_S_DOB,
Index: opcodes/ChangeLog
===================================================================
RCS file: /cvs/src/src/opcodes/ChangeLog,v
retrieving revision 1.447
diff -u -p -r1.447 ChangeLog
--- opcodes/ChangeLog 17 May 2002 14:36:45 -0000 1.447
+++ opcodes/ChangeLog 21 May 2002 23:33:00 -0000
@@ -1,3 +1,7 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * mips-opc.c (mips_builtin_opcodes): Add drol, dror macros.
+
 Fri May 17 14:26:44 2002  J"orn Rennecke <joern.rennecke@superh.com>

  * disassemble.c (disassembler): Just use print_insn_sh for bfd_arch_sh.
Index: opcodes/mips-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/mips-opc.c,v
retrieving revision 1.32
diff -u -p -r1.32 mips-opc.c
--- opcodes/mips-opc.c 17 Mar 2002 02:42:25 -0000 1.32
+++ opcodes/mips-opc.c 21 May 2002 23:33:00 -0000
@@ -492,6 +492,10 @@ const struct mips_opcode mips_builtin_op
 {"dremu",   "z,s,t",    0x0000001f, 0xfc00ffff, RD_s|RD_t|WR_HILO,      I3      },
 {"dremu",   "d,v,t", 3,    (int) M_DREMU_3, INSN_MACRO, I3 },
 {"dremu",   "d,v,I", 3,    (int) M_DREMU_3I, INSN_MACRO, I3 },
+{"drol",    "d,v,t", 0,    (int) M_DROL, INSN_MACRO, I3 },
+{"drol",    "d,v,I", 0,    (int) M_DROL_I, INSN_MACRO, I3 },
+{"dror",    "d,v,t", 0,    (int) M_DROR, INSN_MACRO, I3 },
+{"dror",    "d,v,I", 0,    (int) M_DROR_I, INSN_MACRO, I3 },
 {"dsllv",   "d,t,s", 0x00000014, 0xfc0007ff, WR_d|RD_t|RD_s, I3 },
 {"dsll32",  "d,w,<", 0x0000003c, 0xffe0003f, WR_d|RD_t, I3 },
 {"dsll",    "d,w,s", 0x00000014, 0xfc0007ff, WR_d|RD_t|RD_s, I3 }, /* dsllv */

22 years agoRemove accidental enabling of bfd_gas=yes for sh-coff targets.
Nick Clifton [Tue, 21 May 2002 20:01:53 +0000 (20:01 +0000)]
Remove accidental enabling of bfd_gas=yes for sh-coff targets.

22 years ago * filemode.c: Fix formatting.
Kazu Hirata [Tue, 21 May 2002 19:34:58 +0000 (19:34 +0000)]
* filemode.c: Fix formatting.
* ieee.c: Likewise.
* is-ranlib.c: Likewise.
* is-strip.c: Likewise.
* maybe-ranlib.c: Likewise.
* maybe-strip.c: Likewise.
* nlmconv.c: Likewise.
* nm.c: Likewise.
* not-ranlib.c: Likewise.
* not-strip.c: Likewise.
* objcopy.c: Likewise.
* objdump.c: Likewise.

22 years ago * objdump.c (dump_headers): Fix output formatting for ELF32
Thiemo Seufer [Tue, 21 May 2002 16:21:18 +0000 (16:21 +0000)]
* objdump.c (dump_headers): Fix output formatting for ELF32
architectures in a BFD64 enabled toolchain.
* bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
non-ELF targets.

22 years ago * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
Thiemo Seufer [Tue, 21 May 2002 16:03:46 +0000 (16:03 +0000)]
* elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
an error value.
* elflink.h (elf_link_output_relocs): Likewise. Improve error message.
return with false on error.
(elf_link_input_bfd): Check reloc_emitter return value.

22 years agobfd:
Jason Thorpe [Tue, 21 May 2002 15:11:04 +0000 (15:11 +0000)]
bfd:
* config.bfd (armeb-*-netbsdelf*): New target.

ld:
* Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
(earmelfb_nbsd.c): New rule.
* Makefile.in: Regenerate.
* configure.tgt (armeb-*-netbsdelf*): New target.
(arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
(arm-*-netbsd*): Likewise.
* emulparams/armelfb_nbsd.sh: New file.

22 years agodaily update
Alan Modra [Tue, 21 May 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years ago * debug.c: Fix formatting.
Kazu Hirata [Mon, 20 May 2002 18:23:05 +0000 (18:23 +0000)]
* debug.c: Fix formatting.
* debug.h: Likewise.
* dlltool.c: Likewise.
* dllwrap.c: Likewise.
* emul_aix.c: Likewise.
* emul_vanilla.c: Likewise.

22 years agoReplace deprecated command line switches with their modern equivalents.
Nick Clifton [Mon, 20 May 2002 17:05:35 +0000 (17:05 +0000)]
Replace deprecated command line switches with their modern equivalents.

22 years ago * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
Alan Modra [Mon, 20 May 2002 13:12:41 +0000 (13:12 +0000)]
* elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
at the plt call stub.

22 years agodaily update
Alan Modra [Mon, 20 May 2002 00:00:07 +0000 (00:00 +0000)]
daily update

22 years ago * cpu-mips.c (mips_compatible): Don't try to check machine
Thiemo Seufer [Sun, 19 May 2002 21:06:34 +0000 (21:06 +0000)]
* cpu-mips.c (mips_compatible): Don't try to check machine
compatibility.

22 years ago * addr2line.c: Fix formatting.
Kazu Hirata [Sun, 19 May 2002 16:17:54 +0000 (16:17 +0000)]
* addr2line.c: Fix formatting.
* ar.c: Likewise.
* arsup.c: Likewise.
* arsup.h: Likewise.
* binemul.c: Likewise.
* binemul.h: Likewise.
* bucomm.c: Likewise.
* coffdump.c: Likewise.
* coffgrok.c: Likewise.
* coffgrok.h: Likewise.

22 years agodaily update
Alan Modra [Sun, 19 May 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years agoAdd -bnortl and -bnortllib support for AIX.
Tom Rix [Sat, 18 May 2002 16:56:27 +0000 (16:56 +0000)]
Add -bnortl and -bnortllib support for AIX.

22 years agoFix C_FILE auxent.
Tom Rix [Sat, 18 May 2002 13:13:12 +0000 (13:13 +0000)]
Fix C_FILE auxent.

22 years ago * app.c: Fix formatting.
Kazu Hirata [Sat, 18 May 2002 12:53:30 +0000 (12:53 +0000)]
* app.c: Fix formatting.
* as.c: Likewise.
* ehopt.c: Likewise.
* expr.c: Likewise.
* input-file.c: Likewise.
* listing.c: Likewise.
* macro.h: Likewise.
* stabs.c: Likewise.
* symbols.c: Likewise.

22 years agodaily update
Alan Modra [Sat, 18 May 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago* h8300.h: Corrected defs of all control regs and eepmov instr.
Andrey Volkov [Fri, 17 May 2002 19:01:03 +0000 (19:01 +0000)]
* h8300.h: Corrected defs of all control regs and eepmov instr.

22 years agoprint_insn_sh cleanup:
Joern Rennecke [Fri, 17 May 2002 14:36:45 +0000 (14:36 +0000)]
print_insn_sh cleanup:

include:
* dis-asm.h (print_insn_shl, print_insn_sh64l): Remove prototype.
gdb:
* sh-tdep.c (gdb_print_insn_sh64): Delete.
(gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
(sh_gdbarch_init): Always use gdb_print_insn_sh.
opcodes:
* disassemble.c (disassembler): Just use print_insn_sh for bfd_arch_sh.
* sh-dis.c (LITTLE_BIT): Delete.
(print_insn_sh, print_insn_shl): Deleted.
(print_insn_shx): Renamed to
(print_insn_sh).  No longer static.  Handle SHmedia instructions.
Use info->endian to determine endianness.
* sh64-dis.c (print_insn_sh64, print_insn_sh64l): Delete.
(print_insn_sh64x): No longer static.  Renamed to
(print_insn_sh64).  Removed pfun_compact and endian arguments.
If we got an uneven address to indicate SHmedia, adjust it.
Return -2 for SHcompact instructions.
sim/sh64:
* sim-if.c (sh64_disassemble_insn): Use  print_insn_sh instead of
print_insn_shl.

22 years ago * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
Alan Modra [Fri, 17 May 2002 13:25:04 +0000 (13:25 +0000)]
* elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
(ppc64_elf_relocate_section): Don't warn about reloc overflow when
we've already warned about an undefined symbol.  Report more
detail on reloc errors.

22 years agoRemove stale files.
Alan Modra [Fri, 17 May 2002 10:36:51 +0000 (10:36 +0000)]
Remove stale files.

22 years ago * acinclude.m4 (AM_INSTALL_LIBBFD): Fake to fool autotools.
Alan Modra [Fri, 17 May 2002 10:34:29 +0000 (10:34 +0000)]
* acinclude.m4 (AM_INSTALL_LIBBFD): Fake to fool autotools.
* configure.in: Invoke AM_INSTALL_LIBBFD.
* Makefile.am (install-data-local): Move to..
(install_libopcodes): .. New target.
(uninstall_libopcodes): Likewise.
(install-bfdlibLTLIBRARIES): Likewise.
(uninstall-bfdlibLTLIBRARIES): Likewise.
(bfdlibdir): New.
(bfdincludedir): New.
(lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.

22 years ago * acinclude.m4 (AM_INSTALL_LIBBFD): New.
Alan Modra [Fri, 17 May 2002 10:34:03 +0000 (10:34 +0000)]
* acinclude.m4 (AM_INSTALL_LIBBFD): New.
* configure.in: Invoke AM_INSTALL_LIBBFD.
* Makefile.am (install-data-local): Revert 2002-05-13.  Move to..
(install_libbfd): .. New target.
(uninstall_libbfd): Likewise.
(install-bfdlibLTLIBRARIES): Likewise.
(uninstall-bfdlibLTLIBRARIES): Likewise.
(bfdlibdir): New.
(bfdincludedir): New.
(lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.

22 years agoRemove computation of len from inside hash loop.
Nick Clifton [Fri, 17 May 2002 09:52:04 +0000 (09:52 +0000)]
Remove computation of len from inside hash loop.

22 years ago * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
Marek Michalkiewicz [Fri, 17 May 2002 05:55:14 +0000 (05:55 +0000)]
* Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
* Makefile.in: Regenerate.
* configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.

22 years agodaily update
Alan Modra [Fri, 17 May 2002 00:00:04 +0000 (00:00 +0000)]
daily update

22 years ago * emulparams/avr1.sh: New file.
Marek Michalkiewicz [Thu, 16 May 2002 19:51:08 +0000 (19:51 +0000)]
* emulparams/avr1.sh: New file.
* emulparams/avr2.sh: New file.
* emulparams/avr3.sh: New file.
* emulparams/avr4.sh: New file.
* emulparams/avr5.sh: New file.
* scripttempl/avr.sc: New file.

22 years ago * config/tc-avr.c (mcu_types): Update for new devices.
Marek Michalkiewicz [Thu, 16 May 2002 19:24:00 +0000 (19:24 +0000)]
* config/tc-avr.c (mcu_types): Update for new devices.

22 years ago * MAINTAINERS: Add myself as the second AVR port maintainer.
Marek Michalkiewicz [Thu, 16 May 2002 18:53:23 +0000 (18:53 +0000)]
* MAINTAINERS: Add myself as the second AVR port maintainer.

22 years ago * MAINTAINERS: Update my email address.
Stephane Carrez [Thu, 16 May 2002 13:15:44 +0000 (13:15 +0000)]
* MAINTAINERS: Update my email address.

22 years agoAdd targets for sh64-linux (little endian and big endian).
Nick Clifton [Thu, 16 May 2002 08:19:19 +0000 (08:19 +0000)]
Add targets for sh64-linux (little endian and big endian).

22 years agodaily update
Alan Modra [Thu, 16 May 2002 00:00:06 +0000 (00:00 +0000)]
daily update

22 years agoRegernate cgen built files.
Nick Clifton [Wed, 15 May 2002 20:54:50 +0000 (20:54 +0000)]
Regernate cgen built files.

22 years agoDo not assume that the first thunk is located in the same section as the
Nick Clifton [Wed, 15 May 2002 15:28:12 +0000 (15:28 +0000)]
Do not assume that the first thunk is located in the same section as the
import table.  Instead check, and if necessary load the section containing
the thunk.

22 years agoReplace bfd_read with bfd_bread.
Nick Clifton [Wed, 15 May 2002 13:47:12 +0000 (13:47 +0000)]
Replace bfd_read with bfd_bread.

22 years ago * ldlang.c (section_already_linked): Call bfd_link_just_syms.
Alan Modra [Wed, 15 May 2002 00:19:23 +0000 (00:19 +0000)]
* ldlang.c (section_already_linked): Call bfd_link_just_syms.
(lang_place_orphans): Abort if just_syms_flag.

22 years agoFix ld --just-symbols
Alan Modra [Wed, 15 May 2002 00:18:58 +0000 (00:18 +0000)]
Fix ld --just-symbols
* aix5ppc-core.c: Warning fixes.
* aout-adobe.c (aout_32_bfd_link_just_syms): Define.
* aout-target.h (MY_bfd_link_just_syms): Define.
* aout-tic30.c (MY_bfd_link_just_syms): Define.
* bfd.c (bfd_link_just_syms): Define.
* binary.c (binary_bfd_link_just_syms): Define.
* bout.c (b_out_bfd_link_just_syms): Define.
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
* coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
* coffcode.h (coff_bfd_link_just_syms): Define.
* elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
(elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
(_bfd_elf_link_just_syms): Declare.
* elf.c (_bfd_elf_link_just_syms): New function.
* elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
sections haven't already been discarded by the linker.
* elflink.h (elf_link_add_object_symbols): Likewise for stab
sections and SEC_MERGE sections.
(elf_bfd_discard_info): Similarly here.
* elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
* i386msdos.c (msdos_bfd_link_just_syms): Define.
* i386os9k.c (os9k_bfd_link_just_syms): Define.
* ieee.c (ieee_bfd_link_just_syms): Define.
* ihex.c (ihex_bfd_link_just_syms): Define.
* libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
(_bfd_generic_link_just_syms): Declare.
* libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
* linker.c (_bfd_generic_link_just_syms): New function.
* mmo.c (mmo_bfd_link_just_syms): Define.
* nlm-target.h (nlm_bfd_link_just_syms): Define.
* oasys.c (oasys_bfd_link_just_syms): Define.
* ppcboot.c (ppcboot_bfd_link_just_syms): Define.
* som.c (som_bfd_link_just_syms): Define.
* srec.c (srec_bfd_link_just_syms): Define.
* targets.c (struct bfd_target): Add _bfd_link_just_syms.
(BFD_JUMP_TABLE_LINK): And here.
* tekhex.c (tekhex_bfd_link_just_syms): Define.
* versados.c (versados_bfd_link_just_syms): Define.
* vms.c (vms_bfd_link_just_syms): Define.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.

22 years agodaily update
Alan Modra [Wed, 15 May 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago * elf32-mips.c: Remove superfluous definitions copied from
Thiemo Seufer [Tue, 14 May 2002 23:37:52 +0000 (23:37 +0000)]
* elf32-mips.c: Remove superfluous definitions copied from
elfxx-mips.c.
(bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
SGIish vectors to check the special case.
(mips_elf_hi16_reloc): Fix comment.
(mips_elf_got16_reloc): Likewise.
(_bfd_mips_elf32_gprel16_reloc): Likewise.
(elf_reloc_map): Code cleanup.
(mips_reloc_map): Add comment.
(bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
(mips_elf32_rtype_to_howto): Likewise.
(mips_elf32_discard_info): Likewise.
(elf32_mips_irix_compat): Invert logic: Only SGIish vectors
lead to IRIX compatibility now.

22 years ago * config/tc-mips.c (macro): Warn about wrong la/dla use.
Thiemo Seufer [Tue, 14 May 2002 23:35:59 +0000 (23:35 +0000)]
* config/tc-mips.c (macro): Warn about wrong la/dla use.

22 years ago * mips-dis.c (is_newabi): EABI is not a NewABI.
Thiemo Seufer [Tue, 14 May 2002 23:34:00 +0000 (23:34 +0000)]
* mips-dis.c (is_newabi): EABI is not a NewABI.

22 years ago * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
Thiemo Seufer [Tue, 14 May 2002 23:29:23 +0000 (23:29 +0000)]
* config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
worked sometimes by accident. Fix copy&paste comment.

22 years ago * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
Thiemo Seufer [Tue, 14 May 2002 23:27:35 +0000 (23:27 +0000)]
* config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
(mips_elf_final_processing): Let n32 use .reginfo.

22 years ago * elfxx-mips.c: Call it IRIX, not Irix in comments.
Thiemo Seufer [Tue, 14 May 2002 23:23:59 +0000 (23:23 +0000)]
* elfxx-mips.c: Call it IRIX, not Irix in comments.

22 years ago * config/tc-mips.c (append_insn): Fix too small range of variable.
Thiemo Seufer [Tue, 14 May 2002 23:19:39 +0000 (23:19 +0000)]
* config/tc-mips.c (append_insn): Fix too small range of variable.

22 years agoRemove redundant call to listing_prev_line
Nick Clifton [Tue, 14 May 2002 20:40:30 +0000 (20:40 +0000)]
Remove redundant call to listing_prev_line

22 years agodaily update
Alan Modra [Tue, 14 May 2002 00:00:05 +0000 (00:00 +0000)]
daily update

22 years ago* configure.in: simplify makefile fragment collection.
DJ Delorie [Mon, 13 May 2002 21:19:04 +0000 (21:19 +0000)]
* configure.in: simplify makefile fragment collection.

22 years ago* configure.in: remove code to build emacs.
DJ Delorie [Mon, 13 May 2002 21:16:43 +0000 (21:16 +0000)]
* configure.in: remove code to build emacs.

22 years ago* mh-apollo68: remove unused HDEFINES setting.
DJ Delorie [Mon, 13 May 2002 21:14:19 +0000 (21:14 +0000)]
* mh-apollo68: remove unused HDEFINES setting.
* mh-dgux: remove unused HDEFINES setting.
* mh-dgux386: remove unused HDEFINES setting, duplicate RANLIB=true