OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
19 years ago2005-02-28 Paul Brook <paul@codesourcery.com>
Paul Brook [Mon, 28 Feb 2005 22:03:03 +0000 (22:03 +0000)]
2005-02-28  Paul Brook  <paul@codesourcery.com>

* doc/c-arc.texi: Add missing @code.

19 years agoUpdate documentation about ARC's extension instructions.
Nick Clifton [Mon, 28 Feb 2005 18:05:06 +0000 (18:05 +0000)]
Update documentation about ARC's extension instructions.

19 years ago(pe_ILF_build_a_bfd): Do not assume that an @ will be present when
Nick Clifton [Mon, 28 Feb 2005 16:07:33 +0000 (16:07 +0000)]
(pe_ILF_build_a_bfd): Do not assume that an @ will be present when
IMPORT_NAME_UNDOECRATE is used.

19 years ago2005-02-28 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 28 Feb 2005 15:57:13 +0000 (15:57 +0000)]
2005-02-28  H.J. Lu  <hongjiu.lu@intel.com>

PR 757
* elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
int.

* elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
to _bfd_elf_merge_symbol.

* elflink.c (_bfd_elf_merge_symbol): Use the pointer to
unsigned int to return the alignment of the old common symbol
in the dynamic object.
(_bfd_elf_add_default_symbol): Pass NULL to
_bfd_elf_merge_symbol.
(elf_link_add_object_symbols): Pass &old_alignment to
_bfd_elf_merge_symbol. Get the alignment of the new common
symbol in the dynamic object.

19 years ago * readelf.c (get_file_type, get_machine_name, get_osabi_name,
Jakub Jelinek [Mon, 28 Feb 2005 15:27:16 +0000 (15:27 +0000)]
* readelf.c (get_file_type, get_machine_name, get_osabi_name,
get_segment_type, get_section_type_name, get_elf_class,
get_data_encoding, get_group_flags, dynamic_section_mips_val,
get_symbol_binding, get_symbol_type, get_TAG_name, get_FORM_name,
get_AT_name, process_mips_specific, process_gnu_liblist,
get_note_type, get_netbsd_elfcore_note_type): Use snprintf instead of
sprintf where needed.
(get_dynamic_type): Likewise.  Increase buff to 64 bytes.
(get_elf_section_flags): Increase buff to 33 bytes.  Avoid
using strcat.
(get_dynamic_flags): Renamed to...
(print_dynamic_flags): ... this.  Print the flags to stdout instead
of returning them as string.
(process_dynamic_section): Adjust caller.

19 years ago2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
Paolo Bonzini [Mon, 28 Feb 2005 15:13:42 +0000 (15:13 +0000)]
2005-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR bootstrap/20250
        * Makefile.tpl (HOST target installs): Fix copy and pasto, use install
        instead of check.
        * Makefile.in: Regenerate.

19 years ago2005-02-28 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Mon, 28 Feb 2005 14:07:03 +0000 (14:07 +0000)]
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

Sync from gcc.

2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* Makefile.def (target_modules): Remove "stage", now unnecessary.
* Makefile.tpl (HOST_SUBDIR): New substitution.
(STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET,
USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET,
USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET,
USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it.
(Host modules, Bootstrapped modules): Use it.
(Build modules, Target modules): Do not create symlink trees,
always configure out-of-srcdir.
(distclean): Try removing $(host_subdir) with rm before using rm -rf.
* configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET,
GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use
$(HOST_SUBDIR).  Create a symlink for host_subdir.

* Makefile.in: Regenerate.
* configure: Regenerate.

Merged from libada-gnattools-branch:
2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.def: Add gnattools as a module, depending on target-libada.
* Makefile.in: Regenerate.
* configure.in: Include gnattools in host_tools; disable it if ada
is disabled.
* configure: Regenerate.

config:
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src
gcc build is going.

19 years agodaily update
Alan Modra [Sun, 27 Feb 2005 23:00:05 +0000 (23:00 +0000)]
daily update

19 years agoChanged my own mail address
Svein Seldal [Sun, 27 Feb 2005 18:44:55 +0000 (18:44 +0000)]
Changed my own mail address

19 years agodaily update
Alan Modra [Sat, 26 Feb 2005 23:00:07 +0000 (23:00 +0000)]
daily update

19 years agodaily update
Alan Modra [Fri, 25 Feb 2005 23:00:06 +0000 (23:00 +0000)]
daily update

19 years ago2005-02-25 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 25 Feb 2005 22:12:12 +0000 (22:12 +0000)]
2005-02-25  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (display_debug_ranges): Print out offset for end of
list.

19 years agodaily update
Alan Modra [Thu, 24 Feb 2005 23:00:05 +0000 (23:00 +0000)]
daily update

19 years ago * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.
Ben Elliston [Thu, 24 Feb 2005 20:16:56 +0000 (20:16 +0000)]
* coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.
* format.c (bfd_check_format_matches): Likewise.
* archive.c (BFD_GNU960_ARMAG): Likewise.
(bfd_generic_archive_p): Likewise.
(_bfd_write_archive_contents): Likewise.

19 years ago * ldfile.c: Remove GNU960 conditional code.
Ben Elliston [Thu, 24 Feb 2005 20:11:05 +0000 (20:11 +0000)]
* ldfile.c: Remove GNU960 conditional code.
* emultempl/gld960.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/lnk960.em: Likewise.

19 years ago2005-02-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 24 Feb 2005 15:49:46 +0000 (15:49 +0000)]
2005-02-24  H.J. Lu  <hongjiu.lu@intel.com>

* configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95.
* configure: Regenerate.

19 years ago * elflink.c (elf_link_add_object_symbols): Force symbols in
Julian Brown [Thu, 24 Feb 2005 15:28:56 +0000 (15:28 +0000)]
* elflink.c (elf_link_add_object_symbols): Force symbols in
discarded COMDAT group sections to have default visibility.

19 years ago * cris-dis.c (format_hex): Remove ineffective warning fix.
Alan Modra [Thu, 24 Feb 2005 13:38:01 +0000 (13:38 +0000)]
* cris-dis.c (format_hex): Remove ineffective warning fix.
* crx-dis.c (make_instruction): Warning fix.
* frv-asm.c: Regenerate.

19 years ago * frv.opc (parse_A): Warning fix.
Alan Modra [Thu, 24 Feb 2005 13:36:46 +0000 (13:36 +0000)]
* frv.opc (parse_A): Warning fix.

19 years ago * coffcode.h (coff_print_aux): Warning fix.
Alan Modra [Thu, 24 Feb 2005 13:34:38 +0000 (13:34 +0000)]
* coffcode.h (coff_print_aux): Warning fix.
* elf-m10300.c (mn10300_elf_relax_section): Use section->id
instead of section pointer to identify.
* coff-h8300.c (h8300_reloc16_extra_cases): Likewise.  Allocate
the correct size buffer for local sym mangling too.
(h8300_bfd_link_add_symbols): Likewise.
* elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix
warning.
* elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message
* elf32-xtensa.c (literal_value_hash): Warning fix.
* versados.c (process_otr): Warning fix.
(versados_canonicalize_reloc): Likewise.
* vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix.
* vms.c (fill_section_ptr): Warning fix.

19 years ago(lnk960_before_parse): Remove redundant empty string from calls to concat.
Nick Clifton [Thu, 24 Feb 2005 13:16:07 +0000 (13:16 +0000)]
(lnk960_before_parse): Remove redundant empty string from calls to concat.

19 years agodaily update
Alan Modra [Wed, 23 Feb 2005 23:00:06 +0000 (23:00 +0000)]
daily update

19 years ago2005-02-22 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 23 Feb 2005 16:22:15 +0000 (16:22 +0000)]
2005-02-22  H.J. Lu  <hongjiu.lu@intel.com>

* coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined.
* coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.

19 years agoFix compile time warnings generated by gcc 4.0
Nick Clifton [Wed, 23 Feb 2005 16:04:40 +0000 (16:04 +0000)]
Fix compile time warnings generated by gcc 4.0

19 years ago * pe-dll.c: Warning fixes.
Alan Modra [Wed, 23 Feb 2005 12:30:48 +0000 (12:30 +0000)]
* pe-dll.c: Warning fixes.
* emultempl/sunos.em: Likewise.

19 years ago * cgen.c: Warning fixes.
Alan Modra [Wed, 23 Feb 2005 12:28:06 +0000 (12:28 +0000)]
* cgen.c: Warning fixes.
* config/tc-arc.c: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-avr.c: Likewise.
* config/tc-d10v.c: Likewise.
* config/tc-d30v.c: Likewise.
* config/tc-frv.c: Likewise.
* config/tc-frv.h: Likewise.
* config/tc-h8300.c: Likewise.
* config/tc-h8500.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-ip2k.c: Likewise.
* config/tc-m68hc11.c: Likewise.
* config/tc-maxq.c: Likewise.
* config/tc-mcore.c: Likewise.
* config/tc-mips.c: Likewise.
* config/tc-msp430.c: Likewise.
* config/tc-pj.c: Likewise.
* config/tc-ppc.c: Likewise.
* config/tc-ppc.h: Likewise.
* config/tc-s390.c: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-sh64.c: Likewise.
* config/tc-tic4x.c: Likewise.
* config/tc-tic80.c: Likewise.
* config/tc-v850.c: Likewise.
* config/tc-vax.c: Likewise.
* config/tc-w65.c: Likewise.
* config/tc-xstormy16.c: Likewise.
* config/tc-z8k.c: Likewise.

19 years ago * dlltool.c: Warning fixes.
Alan Modra [Wed, 23 Feb 2005 12:25:57 +0000 (12:25 +0000)]
* dlltool.c: Warning fixes.
* objdump.c: Likewise.

19 years ago(make_instruction): Move argument structure into inner scope and ensure that
Nick Clifton [Wed, 23 Feb 2005 11:53:31 +0000 (11:53 +0000)]
(make_instruction): Move argument structure into inner scope and ensure that
all of its fields are initialised before they are used.

19 years agoInitialise bitfield.
Nick Clifton [Wed, 23 Feb 2005 11:39:14 +0000 (11:39 +0000)]
Initialise bitfield.

19 years ago(elf32_m68hc11_relocate_section): Initialise variables that are passed by
Nick Clifton [Wed, 23 Feb 2005 11:18:11 +0000 (11:18 +0000)]
(elf32_m68hc11_relocate_section): Initialise variables that are passed by
reference to m68hc11_get_relocation_value in case that function does not
initialise them.

19 years agoconfigure: Regenerate.
Nick Clifton [Wed, 23 Feb 2005 10:07:06 +0000 (10:07 +0000)]
configure: Regenerate.

19 years ago(cr16c_elf_final_link_relocate): Remove duplicated return statements and
Nick Clifton [Wed, 23 Feb 2005 09:56:44 +0000 (09:56 +0000)]
(cr16c_elf_final_link_relocate): Remove duplicated return statements and
replace with a single return at the end of the function.  This helps pacify
the flow analysis code in gcc 4.0.

19 years ago(_bfd_elf_compute_section_file_positions): Initialise strtab to avoid compile
Nick Clifton [Wed, 23 Feb 2005 09:46:49 +0000 (09:46 +0000)]
(_bfd_elf_compute_section_file_positions): Initialise strtab to avoid compile
time warning.

19 years ago * opncls.c (bfd_zalloc): Document this function.
Ben Elliston [Wed, 23 Feb 2005 03:49:41 +0000 (03:49 +0000)]
* opncls.c (bfd_zalloc): Document this function.

19 years ago * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
Catherine Moore [Wed, 23 Feb 2005 02:44:18 +0000 (02:44 +0000)]
* read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
* doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.

19 years ago2005-02-22 Eric Christopher <echristo@redhat.com>
Eric Christopher [Tue, 22 Feb 2005 23:54:41 +0000 (23:54 +0000)]
2005-02-22  Eric Christopher  <echristo@redhat.com>

* ld-mips-elf/reloc-merge-lo16.d: Correct symbol
table size for __start.

2005-02-22  Eric Christopher  <echristo@redhat.com>

* config/tc-mips.c (struct proc): Change isym to
func_sym. New member func_end_sym.
(s_mips_ent): Update.
(s_mips_end): Ditto. Add code to compute function size.

19 years ago2005-02-22 Eric Christopher <echristo@redhat.com>
Eric Christopher [Tue, 22 Feb 2005 23:37:30 +0000 (23:37 +0000)]
2005-02-22  Eric Christopher  <echristo@redhat.com>

* gas/mips/elf-rel10.d: Update for label change.

19 years agodaily update
Alan Modra [Tue, 22 Feb 2005 23:00:07 +0000 (23:00 +0000)]
daily update

19 years ago* gas/mips/mips16-dwarf2.d: Pass -mabi=32. Include relocation
Maciej W. Rozycki [Tue, 22 Feb 2005 20:50:11 +0000 (20:50 +0000)]
* gas/mips/mips16-dwarf2.d: Pass -mabi=32.  Include relocation
information.
* gas/mips/mips16-dwarf2-n32.d: New test to check DWARF2 line
information for MIPS16 for the n32 ABI.
* gas/mips/mips.exp. Run the new test.

19 years ago2005-02-22 Eric Christopher <echristo@redhat.com>
Eric Christopher [Tue, 22 Feb 2005 19:39:06 +0000 (19:39 +0000)]
2005-02-22  Eric Christopher  <echristo@redhat.com>

* gas/mips/elf-rel10.s: Add label for frob.

19 years ago * ldlang.c (section_already_linked): Don't call
Daniel Jacobowitz [Tue, 22 Feb 2005 18:35:32 +0000 (18:35 +0000)]
* ldlang.c (section_already_linked): Don't call
bfd_section_already_linked for dynamic objects.

19 years ago * ld-elfvsb/hidden2.d: Expect OBJECT.
Daniel Jacobowitz [Tue, 22 Feb 2005 18:29:20 +0000 (18:29 +0000)]
* ld-elfvsb/hidden2.d: Expect OBJECT.
* ld-elfvsb/hidden2.s: Force type OBJECT.
* ld-elfvsb/hidden2.ld: Place .dynamic explicitly.
* ld-elf/start.s: Provide __start for MIPS.
* ld-elfcomm/elfcomm.exp: Accept MIPS common section.  XFAIL size change
test.
* ld-elf/warn1.d: Use group.ld instead of -Ttext.

19 years ago * arc-ext.c: Warning fixes.
Alan Modra [Tue, 22 Feb 2005 13:01:53 +0000 (13:01 +0000)]
* arc-ext.c: Warning fixes.
* arc-ext.h: Likewise.
* cgen-opc.c: Likewise.
* ia64-gen.c: Likewise.
* maxq-dis.c: Likewise.
* ns32k-dis.c: Likewise.
* w65-dis.c: Likewise.
* ia64-asmtab.c: Regenerate.

19 years ago * ldexp.c: Warning fixes.
Alan Modra [Tue, 22 Feb 2005 13:00:26 +0000 (13:00 +0000)]
* ldexp.c: Warning fixes.
* ldwrite.c: Likewise.
* emultempl/elf32.em: Likewise.

19 years ago * basic_blocks.c: Warning fixes.
Alan Modra [Tue, 22 Feb 2005 12:59:21 +0000 (12:59 +0000)]
* basic_blocks.c: Warning fixes.
* gmon_io.c: Likewise.
* hist.c: Likewise.
* hist.h: Likewise.

19 years ago * read.c: Warning fixes.
Alan Modra [Tue, 22 Feb 2005 12:58:35 +0000 (12:58 +0000)]
* read.c: Warning fixes.
* config/obj-elf.c: Likewise.

19 years ago * Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
Alan Modra [Tue, 22 Feb 2005 12:57:27 +0000 (12:57 +0000)]
* Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
(syslex.o, sysinfo.o, dlltool.o, rescoff.o): Remove duplicate
dependencies.  Run "make dep-am".
* nlmconv.c: Warning fixes.
* readelf.c: Likewise.
* srconv.c: Likewise.
* sysdump.c: Likewise.
* sysinfo.y: Likewise.
* syslex.l: Likewise.  Use yyleng instead of strlen, memcpy instead
of strcpy.
* Makefile.in: Regenerate.

19 years agogas/:
Maciej W. Rozycki [Tue, 22 Feb 2005 12:32:26 +0000 (12:32 +0000)]
gas/:
* config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
emitting insn.

gas/testsuite/:
* gas/mips/mips16-dwarf2.d: New test to check DWARF2 line
information for MIPS16.
* gas/mips/mips16-dwarf2.s: Source for the new test.
* gas/mips/mips.exp: Run the new test.

19 years agoAllow darwin targeted ports to build tk, itcl and libgui.
Nick Clifton [Tue, 22 Feb 2005 09:16:10 +0000 (09:16 +0000)]
Allow darwin targeted ports to build tk, itcl and libgui.

19 years agobfd/
H.J. Lu [Tue, 22 Feb 2005 00:50:07 +0000 (00:50 +0000)]
bfd/

2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with
SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK.
Replace SEC_SHARED with SEC_COFF_SHARED.
(styp_to_sec_flags): Likewise.

* elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0.
(TARGET_LITTLE_SYM): Likewise.

* section.c (SEC_ARCH_BIT_0): Removed.
(SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with
SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE.
(SEC_SHARED): Renamed to ...
(SEC_COFF_SHARED): This.
(SEC_BLOCK): Renamed to ...
(SEC_TIC54X_BLOCK): This.
(SEC_CLINK): Renamed to ...
(SEC_TIC54X_CLINK): This.
(SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY,
SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the
end.
* bfd-in2.h: Regenerated.

binutils/

2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* objcopy.c (parse_flags): Replace SEC_SHARED with
SEC_COFF_SHARED.

* objdump.c (dump_section_header): Dump SEC_TIC54X_BLOCK and
SEC_TIC54X_CLINK for TI c54x only. Remove SEC_ARCH_BIT_0. Dump
SEC_COFF_SHARED for COFF only.

gas/

2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
SEC_COFF_SHARED.

* config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
SEC_TIC54X_BLOCK.
(demand_empty_rest_of_line): Likewise.
(tic54x_sblock): Likewise.
(tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.

ld/

2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
tic54x input only.
(lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
and ECOFF output only.

19 years agoRegenerate cgen files
Alan Modra [Tue, 22 Feb 2005 00:33:20 +0000 (00:33 +0000)]
Regenerate cgen files

19 years agodaily update
Alan Modra [Mon, 21 Feb 2005 23:00:05 +0000 (23:00 +0000)]
daily update

19 years agoApproved by nickc@redhat.com:
Fred Fish [Mon, 21 Feb 2005 18:00:17 +0000 (18:00 +0000)]
Approved by nickc@redhat.com:

2005-02-21  Fred Fish  <fnf@specifixinc.com>
* dwarf2.c (find_abstract_instance_name): Call recursively
to handle a DW_AT_specification.

19 years ago * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym,
Thiemo Seufer [Mon, 21 Feb 2005 13:57:56 +0000 (13:57 +0000)]
* elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym,
mips_elf_create_dynamic_relocation,
_bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link):
Remove #if 0'd code.

19 years ago PR libgcj/10353
Eric Botcazou [Mon, 21 Feb 2005 12:29:05 +0000 (12:29 +0000)]
PR libgcj/10353
* configure.in (noconfigdirs) <sparc-*-solaris2.[0-6]>: Add libgcj.
* configure: Regenerate.

19 years ago * config.in: Regenerate.
Alan Modra [Mon, 21 Feb 2005 11:49:47 +0000 (11:49 +0000)]
* config.in: Regenerate.
* configure: Regenerate.

19 years ago * Makefile.am (HFILES): Add itbl-lex.h.
Alan Modra [Mon, 21 Feb 2005 11:49:31 +0000 (11:49 +0000)]
* Makefile.am (HFILES): Add itbl-lex.h.
(itbl-lex.o, itbl-parse.o): Depend on itbl-lex.h
* Makefile.in: Regenerate.
* configure: Regenerate.
* po/POTFILES.in: Regenerate.

19 years ago * Makefile.am: Run "make dep-am"
Alan Modra [Mon, 21 Feb 2005 11:48:59 +0000 (11:48 +0000)]
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.

19 years ago * Makefile.am: Run "make dep-am"
Alan Modra [Mon, 21 Feb 2005 11:48:33 +0000 (11:48 +0000)]
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.

19 years agobfd/
Alan Modra [Mon, 21 Feb 2005 11:48:00 +0000 (11:48 +0000)]
bfd/
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.
bfd/doc/
* Makefile.in: Regenerate.

19 years ago * coffgen.c (bfd_coff_get_comdat_section): Check that
Alan Modra [Mon, 21 Feb 2005 11:21:29 +0000 (11:21 +0000)]
* coffgen.c (bfd_coff_get_comdat_section): Check that
coff_section_data isn't NULL.

19 years ago * lib/ld-lib.exp (run_dump_test): Don't require a dump program if
Alan Modra [Mon, 21 Feb 2005 10:30:49 +0000 (10:30 +0000)]
* lib/ld-lib.exp (run_dump_test): Don't require a dump program if
#warning given.  Rearrange to allow $program to remain unset.
Don't allow gas errors.  Append objcopy_as_link output to that
from the linker before testing against expected output.  Fail the
test if warning not found when expected.  Conversely fail the
test if ld errors or warnings given when not expected.

19 years ago * gas/d10v/instruction_packing-005.d: Adjust.
Alan Modra [Mon, 21 Feb 2005 10:07:08 +0000 (10:07 +0000)]
* gas/d10v/instruction_packing-005.d: Adjust.
* gas/d10v/instruction_packing-008.d: Ignore disassembled stabs.
* gas/d10v/instruction_packing-009.d: Likewise.
* gas/d10v/instruction_packing-010.d: Likewise.
* gas/d10v/warning-001.d: Use #warning instead of #error.
* gas/d10v/warning-002.d: Likewise.
* gas/d10v/warning-003.d: Likewise.
* gas/d10v/warning-004.d: Likewise.
* gas/d10v/warning-005.d: Likewise.
* gas/d10v/warning-006.d: Likewise.
* gas/d10v/warning-007.d: Likewise.
* gas/d10v/warning-008.d: Likewise.
* gas/d10v/warning-009.d: Likewise.
* gas/d10v/warning-010.d: Likewise.
* gas/d10v/warning-011.d: Likewise.
* gas/d10v/warning-012.d: Likewise.
* gas/d10v/warning-013.d: Likewise.
* gas/d10v/warning-015.d: Likewise.
* gas/d10v/warning-016.d: Likewise.
* gas/d10v/warning-017.d: Likewise.
* gas/d10v/warning-018.d: Likewise.
* gas/d10v/warning-019.d: Likewise.
* lib/gas-defs.exp (run_dump_test): Don't require a dump program if
#warning given.  Rearrange to allow $program to remain unset.
Fail the test if warning not found when expected.  Conversely fail
the test if assembler errors or warnings given when not expected.

19 years agogas/
Alan Modra [Mon, 21 Feb 2005 08:39:53 +0000 (08:39 +0000)]
gas/
* read.c (address_bytes): New function.
(TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
(potable): Add "dc.a".
(cons_worker): Handle "dc.a".
* doc/internals.texi (TC_ADDRESS_BYTES): Document.
ld/testsuite/
* ld-elf/exclude1.s: Use ".dc.a".
* ld-elfvsb/hidden2.s: Likewise.

19 years ago * ld-elf/warn1.d: Specify -Ttext.
Alan Modra [Mon, 21 Feb 2005 08:18:49 +0000 (08:18 +0000)]
* ld-elf/warn1.d: Specify -Ttext.
* ld-scripts/align.exp (align2a, align2b: Don't run on aout targets.
* ld-scripts/align2.t: Discard all but .text and .data.
* ld-scripts/align2a.d: Accept non-readonly for coff.
* ld-scripts/align2b.d: Likewise.
* lib/ld-lib.exp (is_aout_format): New function.

19 years ago * input-file.c (input_file_open): Rearrange to avoid warning.
Alan Modra [Mon, 21 Feb 2005 03:03:02 +0000 (03:03 +0000)]
* input-file.c (input_file_open): Rearrange to avoid warning.

19 years ago * readelf.c (BYTE_GET8): Delete. Replace uses with BYTE_GET.
Alan Modra [Mon, 21 Feb 2005 02:55:56 +0000 (02:55 +0000)]
* readelf.c (BYTE_GET8): Delete.  Replace uses with BYTE_GET.
(byte_get_little_endian): Don't handle size of -8.
(byte_get_signed, byte_get_big_endian): Likewise.
(print_dec_vma, print_hex_vma): New functions.
(print_vma): Use them.  Return chars output.
(get_dynamic_data): Return a bfd_vma array.  Add ent_size parm.
(process_symbol_table): Handle alpha and s390 .hash.

19 years agodaily update
Alan Modra [Sun, 20 Feb 2005 23:00:06 +0000 (23:00 +0000)]
daily update

19 years agoinclude/
Alan Modra [Sun, 20 Feb 2005 14:59:07 +0000 (14:59 +0000)]
include/
* xtensa-isa-internal.h (xtensa_length_decode_fn): Warning fix.
* xtensa-isa.h (xtensa_insnbuf_to_chars): Likewise.
(xtensa_insnbuf_from_chars, xtensa_isa_length_from_chars): Likewise.
include/coff/
* xcoff.h (struct xcoff_loader_info): Warning fix.
bfd/
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix.
* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise.
* coff-rs6000.c (xcoff_write_armap_big): Warning fixes.  Remove
useless assignments.
(xcoff_write_archive_contents_big): Likewise.
(_bfd_xcoff_put_ldsymbol_name): Likewise.
* coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
* coffgen.c (coff_write_symbols): Make "written" a bfd_vma.
* cofflink.c (process_embedded_commands): Warning fixes.
* cpu-arm.c: Delete unnecessary prototypes.  Convert to C90.
Warning fixes.
* dwarf2.c: Warning fixes.
* elf-bfd.h: Likewise.
* elf-eh-frame.c: Likewise.
* elf-strtab.c: Likewise.
* elf.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-sh-symbian.c: Likewise.
* elf32-sh.c: Delete unnecessary prototypes.  Warning fixes.
* elf64-sh64.c: Likewise.
* peicode.h: Likewise.
* elf64-mmix.c: Warning fixes.
* elfcode.h: Likewise.
* elfxx-mips.c: Likewise.
* libbfd-in.h: Likewise.
* libbfd.c: Likewise.
* mach-o.c: Likewise.
* merge.c: Likewise.
* mmo.c: Likewise.
* opncls.c: Likewise.
* pef.c: Likewise.
* srec.c: Likewise.
* vms-hdr.c: Likewise.
* vms-tir.c: Likewise.
* xtensa-isa.c: Likewise.
* xtensa-modules.c: Likewise.
* xsym.c: Likewise.
(pstrcmp): Use correct choice of string lengths.  Fix return value.
(bfd_sym_module_name): Correct string length.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

19 years agodaily update
Alan Modra [Sat, 19 Feb 2005 23:00:06 +0000 (23:00 +0000)]
daily update

19 years ago * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
Alan Modra [Sat, 19 Feb 2005 08:56:08 +0000 (08:56 +0000)]
* config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
* read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
* doc/internals.texi (TC_EQUAL_IN_INSN): Delete.

19 years agodaily update
Alan Modra [Fri, 18 Feb 2005 23:00:07 +0000 (23:00 +0000)]
daily update

19 years ago /gas/ChangeLog
Thiemo Seufer [Fri, 18 Feb 2005 22:12:53 +0000 (22:12 +0000)]
/gas/ChangeLog
* config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
uses after .set noat.
(load_address): Likewise.
(macro): Likewise. Don't try to avoid $at use by sacrificing
the target register before it is stored, it won't work.

/gas/testsuite/ChangeLog
* gas/mips/noat-1.s, gas/mips/noat-1.d, gas/mips/noat-2.s,
gas/mips/noat2.l, gas/mips/noat-3.s, gas/mips/noat-3.l,
gas/mips/noat-4.s, gas/mips/noat-4.l, gas/mips/noat-5.s,
gas/mips/noat-5.l, gas/mips/noat-6.s, gas/mips/noat-6.l,
gas/mips/noat-7.s, gas/mips/noat-7.l: New files, testcases for
.set noat in macro expansions.
* gas/mips/mips.exp: Run new testcases.
* gas/mips/rol-hw.d, gas/mips/rol-hw.l, gas/mips/rol.d,
gas/mips/rol.l, gas/mips/rol.s, gas/mips/rol64-hw.d,
gas/mips/rol64-hw.l, gas/mips/rol64.d, gas/mips/rol64.l,
gas/mips/rol64.s, gas/mips/uld2-eb.d, gas/mips/uld2-el.d,
gas/mips/uld2.l, gas/mips/uld2.s, gas/mips/ulh2-eb.d,
gas/mips/ulh2-el.d, gas/mips/ulh2.l, gas/mips/ulh2.s,
gas/mips/ulw2-eb-ilocks.d, gas/mips/ulw2-eb.d,
gas/mips/ulw2-el-ilocks.d, gas/mips/ulw2-el.d, gas/mips/ulw2.l,
gas/mips/ulw2.s: Don't try to test .set noat.

19 years ago2005-02-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 18 Feb 2005 15:58:45 +0000 (15:58 +0000)]
2005-02-18  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (display_debug_loc): Print out offset for end of
list.

19 years ago * Makefile.am (TOOL_PROGS): Add objdump.
Joseph Myers [Fri, 18 Feb 2005 02:22:03 +0000 (02:22 +0000)]
* Makefile.am (TOOL_PROGS): Add objdump.
* Makefile.in: Regenerate.

19 years agoRespect bundle directives.
Jim Wilson [Fri, 18 Feb 2005 01:59:08 +0000 (01:59 +0000)]
Respect bundle directives.
* config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
see an instruction that specifies a template.

19 years ago * ld-scripts/align2a.d: Don't assume anything about section
Alan Modra [Fri, 18 Feb 2005 01:55:16 +0000 (01:55 +0000)]
* ld-scripts/align2a.d: Don't assume anything about section
padding or alignment, or max page size.  Allow 64-bit addresses.
* ld-scripts/align2b.d: Likewise.

19 years ago * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
Alan Modra [Fri, 18 Feb 2005 00:49:03 +0000 (00:49 +0000)]
* config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
* config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
* config/tc-tic80.c (build_insn): Init insn[1] to silence warning.

19 years agogas/
H.J. Lu [Thu, 17 Feb 2005 23:22:05 +0000 (23:22 +0000)]
gas/

2005-02-17  H.J. Lu  <hongjiu.lu@intel.com>

* NEWS: Mention "-mhint.b=[ok|warning|error]".

* config/tc-ia64.c (md): Add hint_b.
(emit_one_bundle): Handle md.hint_b for "hint".
(md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
(md_show_usage): Add "-mhint.b=[ok|warning|error]".
(ia64_init): Set md.hint_b to error.
(md_assemble): Handle md.hint_b for "hint.b".

* doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
* doc/c-ia64.texi: Likewise.

gas/testsuite/

2005-02-17  H.J. Lu  <hongjiu.lu@intel.com>

* gas/ia64/hint.b-err.l: New file.
* gas/ia64/hint.b-err.s: Likewise.
* gas/ia64/hint.b-warn.l: Likewise.
* gas/ia64/hint.b-warn.s: Likewise.

* gas/ia64/ia64.exp: Run hint.b-err and hint.b-warn.

* gas/ia64/opc-b.d: Pass -mhint.b=ok to as.

19 years agodaily update
Alan Modra [Thu, 17 Feb 2005 23:00:05 +0000 (23:00 +0000)]
daily update

19 years ago * ldexp.c (assigning_to_dot): New global flag.
Zack Weinberg [Thu, 17 Feb 2005 20:57:01 +0000 (20:57 +0000)]
* ldexp.c (assigning_to_dot): New global flag.
(fold_name): If assigning_to_dot is true, object immediately to
an undefined symbol.
(exp_fold_tree): Set and clear assigning_to_dot around the
recursive call to exp_fold_tree to process the right-hand side
of an assignment to the location counter.
testsuite:
* ld-scripts/align.exp: Rename existing "ALIGN" test to "align1".
Add dump tests "align2a", "align2b", "align2c".
* ld-scripts/align2.t, ld-scripts/align2a.s, ld-scripts/align2a.d
* ld-scripts/align2b.s, ld-scripts/align2b.d
* ld-scripts/align2c.s, ld-scripts/align2c.d: New files.

19 years agobfd/ChangeLog:
Alexandre Oliva [Thu, 17 Feb 2005 17:11:01 +0000 (17:11 +0000)]
bfd/ChangeLog:
* elf32-frv.c (elf32_frv_relocate_section): Remove warning from
uninitialized check_segment[1] in TLSMOFF case.
Reported by Alan Modra.
(elf32_frv_relocate_section): Improve errors and warnings.
ld/testsuite/ChangeLog:
* ld-frv/fdpic-static-6.d: Update.
* ld-frv/fdpic*.d: Remove explicit -mfdpic from #as.  Update
spelling of errors and warnings.

19 years ago * tc.h (struct relax_type, relax_typeS): Move from here..
Alan Modra [Thu, 17 Feb 2005 13:46:05 +0000 (13:46 +0000)]
* tc.h (struct relax_type, relax_typeS): Move from here..
* as.h: ..to here.  Make rlx_forward and rlx_backward an offsetT.
* ecoff.c (ecoff_new_file): Add appfile param.
* ecoff.h (ecoff_new_file): Likewise.
* itbl-lex.h: New file.
* itbl-lex.l: Include itbl-lex.h.
* itbl-parse.y: Likewise.
(insntbl_line, yyparse, yylex): Move to itbl-lex.h.
* read.c (s_app_file_string): Mark appfile possibly unused.
* subsegs.c (seg_not_empty_p): Make sec possibly unused.
* subsegs.h (struct seg_info_trash): Delete.
(seg_info): Use segment_info_type instead.
* config/obj-coff.c (struct filename_list): Make filename const char *.
* config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
* config/obj-elf.c (elf_file_symbol): Similarly.
* config/tc-a29k.c (md_apply_fix3): Make val a valueT.  Don't use
signed right shift.
* config/tc-arc.c (md_operand): Warning fix.
* config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
(md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
* config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
* config/tc-frv.c (frv_force_relocation): Warning fix.
* config/tc-m68k.c (md_parse_option): Delete unused var.
* config/tc-mcore.c (mylog2): Rename from log2 throughout.
* config/tc-sparc.c: Likewise.
(s_common): Warning fix.
* config/tc-mips.c (append_insn): Use unsigned long long expressions.
* config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
addressT.
* config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
* config/tc-sh.c (sh_cfi_frame_initial_instructions,
sh_regname_to_dw2regnum): Only define for OBJ_ELF.
* config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
(tic4x_do_align): Use TIC_NOP_OPCODE.
* config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
* config/tc-vax.c: Include netinet/in.h.
(tc_headers_hook): Formatting.
* config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.

19 years ago2005-02-17 Paul Brook <paul@codesourcery.com>
Paul Brook [Thu, 17 Feb 2005 13:24:59 +0000 (13:24 +0000)]
2005-02-17  Paul Brook  <paul@codesourcery.com>

* scripttempl/armbpabi.sc: Add dummy name to version block.

19 years ago * ldexp.c (new_abs): Init new.str.
Alan Modra [Thu, 17 Feb 2005 13:06:14 +0000 (13:06 +0000)]
* ldexp.c (new_abs): Init new.str.

19 years ago * deflex.l (YY_NO_UNPUT): Define.
Alan Modra [Thu, 17 Feb 2005 12:59:59 +0000 (12:59 +0000)]
* deflex.l (YY_NO_UNPUT): Define.
* rclex.l (YY_NO_UNPUT): Define.
* rcparse.y (null_unichar): New static var.
(res_null_text): Use it rather than attempting to init from wchar_t.
* windres.c: Include assert.h and time.h before getopt.h.
Include config.h and unistd.h too.

19 years ago * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
Alan Modra [Thu, 17 Feb 2005 12:39:17 +0000 (12:39 +0000)]
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.

19 years agogas/
Jan Beulich [Thu, 17 Feb 2005 07:43:12 +0000 (07:43 +0000)]
gas/
2005-02-17  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
parsing inN, locN, outN. Set 'idx' to offset register number starts
at. Don't handle numbers with leading zeroes or beyond 95. Remove
pointless cast.

gas/testsuite/
2005-02-17  Jan Beulich  <jbeulich@novell.com>

* gas/ia64/nostkreg.[ds]: New.
* gas/ia64/ia64.exp: Run new test.

19 years agodaily update
Alan Modra [Wed, 16 Feb 2005 23:00:06 +0000 (23:00 +0000)]
daily update

19 years ago * config/tc-mips.c (load_address): Fix formatting.
Thiemo Seufer [Wed, 16 Feb 2005 15:49:13 +0000 (15:49 +0000)]
* config/tc-mips.c (load_address): Fix formatting.
(macro): Don't use AT if .set noat is in effect. Fix formatting.
Catch macros which are unexpandable without AT. Remove duplicate
zeroing of used_at.
(macro2): Remove duplicate zeroing of used_at.

19 years agoRemove prototype for localetime altogether. It should not be needed on modern
Nick Clifton [Wed, 16 Feb 2005 12:55:43 +0000 (12:55 +0000)]
Remove prototype for localetime altogether.  It should not be needed on modern
systems and older systems can live with the warning.

19 years ago * configure.in (AC_CHECK_FUNCS): Add glob.
Mark Mitchell [Wed, 16 Feb 2005 07:49:26 +0000 (07:49 +0000)]
* configure.in (AC_CHECK_FUNCS): Add glob.
* configure: Regenerated.
* emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
not defined.
(gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
if HAVE_GLOB is not defined.

19 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
Kaz Kojima [Wed, 16 Feb 2005 05:10:02 +0000 (05:10 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
lib_path if NATIVE is yes.

19 years ago * gas/all/gas.exp (quad): Don't run on i960.
Alan Modra [Wed, 16 Feb 2005 05:04:33 +0000 (05:04 +0000)]
* gas/all/gas.exp (quad): Don't run on i960.

19 years ago * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
Alan Modra [Wed, 16 Feb 2005 05:04:09 +0000 (05:04 +0000)]
* dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
than zero.

19 years ago * mach-o.c (bfd_mach_o_scan): Don't ignore return value of
Alan Modra [Wed, 16 Feb 2005 04:45:23 +0000 (04:45 +0000)]
* mach-o.c (bfd_mach_o_scan): Don't ignore return value of
bfd_mach_o_scan_start_address.
* elfxx-ia64.c (elfNN_ia64_relax_brl): Rewrite for 32-bit bfd_vma.
* elfxx-mips.c: Remove unnecessary prototypes.
(sort_dynamic_relocs_64): Abort if not BFD64.

19 years ago * coff-arm.c (coff_arm_is_local_label_name): Warning fix.
Alan Modra [Wed, 16 Feb 2005 02:38:53 +0000 (02:38 +0000)]
* coff-arm.c (coff_arm_is_local_label_name): Warning fix.
* elf32-frv.c (frvfdpic_relocs_info_hash): Likewise.
* pef.c (bfd_pef_scan): Don't ignore return value of
bfd_pef_scan_start_address.

19 years agobfd/
Alan Modra [Wed, 16 Feb 2005 02:20:13 +0000 (02:20 +0000)]
bfd/
* elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero.
Skip toc reloc adjust if reloc_count is zero.
ld/
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
an error creating fake bfd fatal.
(ppc_before_allocation): Continue on after errors.
(gld${EMULATION_NAME}_finish): Likewise.

19 years agodaily update
Alan Modra [Tue, 15 Feb 2005 23:00:06 +0000 (23:00 +0000)]
daily update

19 years agobfd/:
Maciej W. Rozycki [Tue, 15 Feb 2005 19:57:54 +0000 (19:57 +0000)]
bfd/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
reloc howtos.  Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
(elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
(elf_mips16_gprel_howto): Likewise.  Redefine src_mask and
dst_mask.
(mips16_gprel_reloc): Remove bit shuffling; call
_bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
and _bfd_mips16_elf_reloc_shuffle() instead.
(mips16_reloc_map): New reloc map for MIPS16 relocs.
(bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
relocs.
(mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from
elf_mips16_howto_table_rel.
* elf64-mips.c (mips16_elf64_howto_table_rel): New array for
MIPS16 REL reloc howtos.  Add R_MIPS16_HI16 and R_MIPS16_LO16
relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
(elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel.
(elf_mips16_gprel_howto): Likewise.  Redefine src_mask and
dst_mask.
(mips16_elf64_howto_table_rela): New array for MIPS16 RELA
reloc howtos.  Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and
R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16
placeholders.
(mips16_gprel_reloc): Remove bit shuffling; call
_bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
and _bfd_mips16_elf_reloc_shuffle() instead.
(mips16_reloc_map): New reloc map for MIPS16 relocs.
(bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
relocs.
(mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from
mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel.
* elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
REL reloc howtos.  Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
(elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
(elf_mips16_gprel_howto): Likewise.  Redefine src_mask and
dst_mask.
(mips16_gprel_reloc): Remove bit shuffling; call
_bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
and _bfd_mips16_elf_reloc_shuffle() instead.
(mips16_reloc_map): New reloc map for MIPS16 relocs.
(bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
relocs.
(mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from
elf_mips16_howto_table_rela or elf_mips16_howto_table_rel.
* elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to
handle bit shuffling for MIPS16 relocs.
(_bfd_mips16_elf_reloc_shuffle): Likewise.
(_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle()
and _bfd_mips16_elf_reloc_shuffle().
(_bfd_mips_elf_generic_reloc): Likewise.
(mips_elf_calculate_relocation): Likewise.  Handle R_MIPS16_HI16
and R_MIPS16_LO16.
(mips_elf_obtain_contents): Remove bit shuffling.
(mips_elf_perform_relocation): Likewise; call
_bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle()
instead.
(_bfd_mips_elf_relocate_section): Likewise.  Handle R_MIPS16_HI16
and R_MIPS16_LO16.
* elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare.
(_bfd_mips16_elf_reloc_shuffle): Likewise.
* reloc.c (BFD_RELOC_MIPS16_HI16): New reloc.
(BFD_RELOC_MIPS16_HI16_S): Likewise.
(BFD_RELOC_MIPS16_LO16): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

gas/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* config/tc-mips.c (reloc_needs_lo_p): Handle
BFD_RELOC_MIPS16_HI16_S.
(fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
(append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
complaints on.
(mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
Call my_getSmallExpression() to parse percent operators.
(percent_op_match, mips_percent_op): Separate definitions.
(mips16_percent_op): Define percent operators for the MIPS16 mode.
(parse_relocation): Handle the MIPS16 mode using
mips16_percent_op.
(md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.

gas/testsuite/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* gas/mips/mips16-hilo.d: New test for the R_MIPS16_HI16 and
R_MIPS16_LO16 relocs.
* gas/mips/mips16-hilo-n32.d: Likewise, for the n32 ABI.
* gas/mips/mips16-hilo.s: Source for the new tests.
* gas/mips/mips.exp: Run the new tests.

include/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* elf/mips.h (R_MIPS16_GOT16): New reloc code.
(R_MIPS16_CALL16): Likewise.
(R_MIPS16_HI16): Likewise.
(R_MIPS16_LO16): Likewise.
(R_MIPS16_min): New fake reloc code.
(R_MIPS16_max): Likewise.

ld/testsuite/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* ld-mips-elf/mips16-hilo.d: New test for the R_MIPS16_HI16 and
R_MIPS16_LO16 relocs.
* ld-mips-elf/mips16-hilo-n32.d: Likewise, for the n32 ABI.
* ld-mips-elf/mips16-hilo.s: Auxiliary source for the new tests.
* ld-mips-elf/mips-elf.exp: Run the new tests.