OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
21 years ago* config/tc-mips.h (mips_relax_frag): Take segment as argument.
Alexandre Oliva [Sat, 12 Oct 2002 05:23:33 +0000 (05:23 +0000)]
* config/tc-mips.h (mips_relax_frag): Take segment as argument.
(md_relax_frag): Adjust macro.
* config/tc-mips.c (mips_relax_branch): New variable.
(RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
(RELAX_MIPS16_P): Adjust.
(append_insn): Emit branch to non-constant in a frag_var if
branch-relaxation is desirable and possible.
(OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
(OPTION_ELF_BASE): Adjust.
(md_parse_option): Handle new options.
(md_apply_fix3): Update comment on EMBEDDED_PIC conditional
branch relaxation.
(relaxed_branch_length): New function.
(md_estimate_size_before_relax): Handle branch frags.
(mips_relax_frag): Likewise.
(md_convert_frag): Handle branch frags.  Warn if branch is
relaxed.

21 years agodaily update
Alan Modra [Sat, 12 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output
Kaz Kojima [Fri, 11 Oct 2002 14:44:55 +0000 (14:44 +0000)]
* ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output
of linker to the file tmpdir/*-dso.so.
* ld-sh/tlsbin.s, ld-sh/tlsbinpic.s, ld-sh/tlslib.s: New.
* ld-sh/tlsbin-0-dso.d: New.
* ld-sh/tlsbin-1.d: New.
* ld-sh/tlsbin-2.d: New.
* ld-sh/tlsbin-3.d: New.
* ld-sh/tlsbin-4.d: New.
* ld-sh/tlspic1.s, ld-sh/tlspic2.s: New.
* ld-sh/tlspic-1.d: New.
* ld-sh/tlspic-2.d: New.
* ld-sh/tlspic-3.d: New.
* ld-sh/tlspic-4.d: New.

21 years ago * gas/sh/tlsd.s, gas/sh/tlsd.d: New.
Kaz Kojima [Fri, 11 Oct 2002 14:42:51 +0000 (14:42 +0000)]
* gas/sh/tlsd.s, gas/sh/tlsd.d: New.
* gas/sh/tlsnopic.s, gas/sh/tlsnopic.d: New.
* gas/sh/tlspic.s, gas/sh/tlspic.d: New.
* gas/sh/basic.exp: Add new tests.

21 years ago * sh.h: Add SH TLS relocs.
Kaz Kojima [Fri, 11 Oct 2002 14:36:03 +0000 (14:36 +0000)]
* sh.h: Add SH TLS relocs.

21 years ago * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
Kaz Kojima [Fri, 11 Oct 2002 14:34:46 +0000 (14:34 +0000)]
* config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
emitted.
(md_apply_fix3): Add TLS relocs.
(sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
@DTPOFF.

21 years ago * elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,
Kaz Kojima [Fri, 11 Oct 2002 14:32:03 +0000 (14:32 +0000)]
* elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,
sh_elf_object_p, dtpoff_base): New functions.
(sh_elf_howto_table): Add TLS relocs.
(sh_reloc_map): Likewise.
(sh_elf_info_to_howto): Support TLS relocs.
(elf_sh_link_hash_entry): Add tls_type and tls_tpoff32.
(sh_elf_hash_entry, sh_elf_tdata, sh_elf_local_got_tls_type):
New macros.
(sh_elf_obj_tdata): New.
(elf_sh_link_hash_table): Add tls_ldm_got.
(sh_elf_link_hash_table_create): Clear refcount of tls_ldm_got.
(allocate_dynrelocs): Support TLS relocs.
(sh_elf_size_dynamic_sections): Likewise.
(sh_elf_relocate_section): Support TLS relocs.  Don't try to find
.rela.got section when found already.  Return false after printing
error about unresolvable relocation.
(sh_elf_gc_sweep_hook): Support TLS relocs.
(sh_elf_check_relocs): Likewise.
(sh_elf_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject, elf_backend_object_p): Define for TLS case.
* reloc.c: Add SH TLS relocs.
* libbfd.h: Regenerate.

21 years ago * bfd-in2.h: Regenerate.
Kaz Kojima [Fri, 11 Oct 2002 14:28:29 +0000 (14:28 +0000)]
* bfd-in2.h: Regenerate.

21 years ago * Makefile.am: Run dep-am.
Daniel Jacobowitz [Fri, 11 Oct 2002 13:53:33 +0000 (13:53 +0000)]
    * Makefile.am: Run dep-am.
        (BFD32_LIBS): Add simple.lo.
        (BFD32_LIBS_CFILES): Add simple.c.
        * Makefile.in: Regenerated.
        * bfd-in2.h: Regenerated.
        * simple.c: New file.

21 years ago * Makefile.am (BFD_H_DEP): Add simple.c and linker.c.
Daniel Jacobowitz [Fri, 11 Oct 2002 13:52:53 +0000 (13:52 +0000)]
    * Makefile.am (BFD_H_DEP): Add simple.c and linker.c.
        * Makefile.in: Regenerated.

21 years ago * elf64-ppc.c (edit_opd): Correct local sym adjustment.
Alan Modra [Fri, 11 Oct 2002 12:59:06 +0000 (12:59 +0000)]
* elf64-ppc.c (edit_opd): Correct local sym adjustment.

21 years ago * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
Alan Modra [Fri, 11 Oct 2002 08:59:24 +0000 (08:59 +0000)]
* pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.

21 years agoFix numerous occurrences of
Alan Modra [Fri, 11 Oct 2002 08:33:11 +0000 (08:33 +0000)]
Fix numerous occurrences of
warning: dereferencing type-punned pointer will break strict-aliasing rules

21 years ago * ldgram.y (memory_spec): Provide empty action.
Alan Modra [Fri, 11 Oct 2002 07:39:07 +0000 (07:39 +0000)]
* ldgram.y (memory_spec): Provide empty action.
(section <NAME>): Likewise.

21 years ago * elf64-ppc.c (edit_opd): Only zero opd syms when function is
Alan Modra [Fri, 11 Oct 2002 04:36:13 +0000 (04:36 +0000)]
* elf64-ppc.c (edit_opd): Only zero opd syms when function is
completely removed.

21 years ago * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
Alan Modra [Fri, 11 Oct 2002 00:25:32 +0000 (00:25 +0000)]
* config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
(md_estimate_size_before_relax): Likewise for 8 bit branches.

21 years agodaily update
Alan Modra [Fri, 11 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago* elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
Stephen Clarke [Thu, 10 Oct 2002 21:45:14 +0000 (21:45 +0000)]
* elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
Correct mistake in calculation of address of .got.
* elf64-sh64.c (elf_sh64_pic_plt_entry_be,
elf_sh64_pic_plt_entry_le): Likewise.

21 years ago * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
Jakub Jelinek [Thu, 10 Oct 2002 15:59:10 +0000 (15:59 +0000)]
* ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
they have OUTPUT_FORMAT not matching actual output format.
* ldlang.c (lang_get_output_target): New function.
(open_output): Use it.
* ldlang.h (lang_get_output_target): New prototype.

21 years ago * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
Joern Rennecke [Thu, 10 Oct 2002 13:37:32 +0000 (13:37 +0000)]
* config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
inside loop.

21 years ago * ld-i386/combreloc.s: New test.
Jakub Jelinek [Thu, 10 Oct 2002 07:49:11 +0000 (07:49 +0000)]
* ld-i386/combreloc.s: New test.
* ld-i386/combreloc.d: New test.
* ld-i386/i386.exp (i386tests): Add it.

21 years ago * ld-i386/i386.exp (reloc): Turn off combreloc.
Alan Modra [Thu, 10 Oct 2002 02:53:17 +0000 (02:53 +0000)]
* ld-i386/i386.exp (reloc): Turn off combreloc.
* ld-i386/reloc.d: Likewise.
* ld-powerpc/powerpc.exp: Likewise.
* ld-powerpc/reloc.d: Likewise.

21 years ago * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
Alan Modra [Thu, 10 Oct 2002 02:52:27 +0000 (02:52 +0000)]
* emultempl/elf32.em (output_rel_find): Prefer .rel script sections
when orphan is .rel, .rela when orphan is .rela.
(gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
first.  Remove outsecname var.

21 years agodaily update
Alan Modra [Thu, 10 Oct 2002 00:00:03 +0000 (00:00 +0000)]
daily update

21 years ago* gas/elf.exp: Don't run for sh64*-*-linux*, because it sets the
Stephen Clarke [Wed, 9 Oct 2002 19:40:42 +0000 (19:40 +0000)]
* gas/elf.exp: Don't run for sh64*-*-linux*, because it sets the
lsb in SHmedia code addresses.
* gas/sh/basic.exp: Force SHcompact for sh64*-*-linux* to enable
recognition of SH-1/2/3/4 instructions.
(proc do_fp): Do not run dsp tests for sh64*-*-linux*.
* gas/sh/sh64/abi-32.d: Adjust expected output to include
sh64*-*-linux* formats too.
* gas/sh/sh64/abi-64.d, gas/sh/sh64/basic-1.d,
gas/sh/sh64/case-1.d, gas/sh/sh64/case-noexp-1.d,
gas/sh/sh64/crange1-1.d, gas/sh/sh64/crange1-2.d,
gas/sh/sh64/crange2-1.d, gas/sh/sh64/crange2-2.d,
sh/sh64/crange2-noexp-1.d, gas/sh/sh64/crange3-1.d,
gas/sh/sh64/crange4-1.d, gas/sh/sh64/crange5-1.d,
gas/sh/sh64/creg-1.d, gas/sh/sh64/creg-2.d, gas/sh/sh64/datal-2.d,
gas/sh/sh64/datal32-1.d, gas/sh/sh64/datal32-3.d,
gas/sh/sh64/datal64-1.d, gas/sh/sh64/datal64-3.d,
gas/sh/sh64/endian-1.d, gas/sh/sh64/endian-2.d,
gas/sh/sh64/err-noexp-cmd1.s, gas/sh/sh64/immexpr32-1.d,
gas/sh/sh64/immexpr32-2.d, gas/sh/sh64/immexpr64-1.d,
gas/sh/sh64/immexpr64-2.d, gas/sh/sh64/lineno.d,
gas/sh/sh64/localcom-1.d, gas/sh/sh64/mix-1.d,
gas/sh/sh64/mix-noexp-1.d, gas/sh/sh64/movi-3.d,
gas/sh/sh64/movi32-1.d, gas/sh/sh64/movi32-2.d,
gas/sh/sh64/movi32-noexp-2.d, gas/sh/sh64/movi64-1.d,
gas/sh/sh64/movi64-2.d, gas/sh/sh64/movi64-3.d,
gas/sh/sh64/movi64-noexp-2.d, gas/sh/sh64/pt-1.d,
gas/sh/sh64/pt-noexp-1.d, gas/sh/sh64/pt32-1.d,
gas/sh/sh64/pt32-noexp-2.d, gas/sh/sh64/pt64-1.d,
gas/sh/sh64/pt64-32-1.d, gas/sh/sh64/pt64-32-2.d,
gas/sh/sh64/pt64-noexp-2.d, gas/sh/sh64/ptc32-1.d,
gas/sh/sh64/ptc32-noexp-1.d, gas/sh/sh64/ptc64-1.d,
gas/sh/sh64/ptc64-32-1.d, gas/sh/sh64/ptc64-noexp-1.d,
gas/sh/sh64/ptext32-1.d, gas/sh/sh64/ptext32-noexp-1.d,
gas/sh/sh64/ptext64-1.d, gas/sh/sh64/ptext64-32-1.d,
gas/sh/sh64/ptext64-noexp-1.d, gas/sh/sh64/rel32-1.d,
gas/sh/sh64/rel32-2.d, gas/sh/sh64/rel32-3.d,
gas/sh/sh64/rel32-4.d, gas/sh/sh64/rel32-5.d,
gas/sh/sh64/rel64-1.d, gas/sh/sh64/rel64-2.d,
gas/sh/sh64/rel64-3.d, gas/sh/sh64/rel64-4.d,
gas/sh/sh64/rel64-5.d, gas/sh/sh64/relax-1.d,
gas/sh/sh64/relax-2.d, gas/sh/sh64/relax-3.d,
gas/sh/sh64/shift32-1.d, gas/sh/sh64/shift32-3.d,
gas/sh/sh64/shift32-noexp-3.d, gas/sh/sh64/shift64-1.d,
gas/sh/sh64/shift64-2.d, gas/sh/sh64/shift64-3.d,
gas/sh/sh64/shift64-noexp-3.d, gas/sh/sh64/syntax-1.d,
gas/sh/sh64/syntax-2.d, gas/sh/sh64/ua32-1.d,
gas/sh/sh64/ua64-1.d: Likewise.

21 years ago* Makefile.am: Add eshelf32_linux.o and
Stephen Clarke [Wed, 9 Oct 2002 19:09:59 +0000 (19:09 +0000)]
* Makefile.am: Add eshelf32_linux.o and
eshlelf32_linux.o, new emulations for sh64 Linux.
* Makefile.in: Regenerate.
* configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
* emulparams/shelf32_linux.sh: New file.
* emulparams/shlelf32_linux.sh: New file.

21 years ago* config/tc-sh64.c (sh64_target_format): Add support for sh64
Stephen Clarke [Wed, 9 Oct 2002 19:07:43 +0000 (19:07 +0000)]
* config/tc-sh64.c (sh64_target_format): Add support for sh64
Linux environment.

21 years ago* Makefile.am: Add entries for elf32-sh64-lin.c and
Stephen Clarke [Wed, 9 Oct 2002 19:03:57 +0000 (19:03 +0000)]
* Makefile.am: Add entries for elf32-sh64-lin.c and
elf64-sh64-lin.c. Regenerate.
* Makefile.in: Regenerate.
* config.bfd:  Change sh64eb-*-linux* and sh64-*-linux*
to use sh64 vectors rather than sh vectors.
* configure.in: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.
* configure: Regenerate.
* elf32-sh64-lin.c: New file.
* elf64-sh64-lin.c: New file.
* targets.c: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.

21 years ago * readelf.c (display_debug_info): Ignore empty .rela.debug_info
Daniel Jacobowitz [Wed, 9 Oct 2002 13:44:27 +0000 (13:44 +0000)]
    * readelf.c (display_debug_info): Ignore empty .rela.debug_info
        sections.  Allow relocations against the absolute symbol.  Don't
        use the value in compunit.cu_abbrev_offset if we found a RELA
        relocation.

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

21 years ago2002-10-08 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 8 Oct 2002 20:12:45 +0000 (20:12 +0000)]
2002-10-08  H.J. Lu <hjl@gnu.org>

* ldlang.c (lang_file_exist): Removed.
(new_afile): Revert the last change.
* ldlang.h (lang_file_exist): Removed.
* lexsup.c (parse_args): Revert the last change.

21 years ago2002-10-08 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 8 Oct 2002 16:11:07 +0000 (16:11 +0000)]
2002-10-08  H.J. Lu <hjl@gnu.org>

* elf32-i386.c (elf_i386_relocate_section): Re-arrange the
IE->LE transition for R_386_TLS_IE.

21 years ago * elf64-ppc.c (edit_opd): Correct test for discarded sections.
Alan Modra [Tue, 8 Oct 2002 09:51:09 +0000 (09:51 +0000)]
* elf64-ppc.c (edit_opd): Correct test for discarded sections.

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

21 years agoRead in dynamic symbols if no ordinary ones are available.
Nick Clifton [Mon, 7 Oct 2002 17:25:08 +0000 (17:25 +0000)]
Read in dynamic symbols if no ordinary ones are available.

21 years agoAdd tic4x target.
Nick Clifton [Mon, 7 Oct 2002 16:40:56 +0000 (16:40 +0000)]
Add tic4x target.

21 years agoDon't re-export auto-import symbols.
Nick Clifton [Mon, 7 Oct 2002 16:36:11 +0000 (16:36 +0000)]
Don't re-export auto-import symbols.

21 years agoDon't mark relocations in excluded sections.
Nick Clifton [Mon, 7 Oct 2002 16:27:39 +0000 (16:27 +0000)]
Don't mark relocations in excluded sections.

21 years agoAbort if the filename to be added matches the linker output filename.
Nick Clifton [Mon, 7 Oct 2002 16:08:21 +0000 (16:08 +0000)]
Abort if the filename to be added matches the linker output filename.

21 years ago * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
Alan Modra [Mon, 7 Oct 2002 00:14:28 +0000 (00:14 +0000)]
* elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
code.

21 years ago * elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.
Alan Modra [Mon, 7 Oct 2002 00:06:01 +0000 (00:06 +0000)]
* elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.

21 years agodaily update
Alan Modra [Mon, 7 Oct 2002 00:00:03 +0000 (00:00 +0000)]
daily update

21 years agomerge from gcc
DJ Delorie [Sun, 6 Oct 2002 20:21:01 +0000 (20:21 +0000)]
merge from gcc

21 years ago * opncls.c: Formatting.
Alan Modra [Sun, 6 Oct 2002 09:03:06 +0000 (09:03 +0000)]
* opncls.c: Formatting.
(_bfd_new_bfd): Use a smaller section hash table.

21 years agodaily update
Alan Modra [Sun, 6 Oct 2002 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago* elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the type
Alexandre Oliva [Sat, 5 Oct 2002 11:18:13 +0000 (11:18 +0000)]
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the type
of the other two relocations packed with a REL32 to NONE.

21 years agodaily update
Alan Modra [Sat, 5 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago2002-10-03 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 4 Oct 2002 07:40:42 +0000 (07:40 +0000)]
2002-10-03  H.J. Lu <hjl@gnu.org>

* ld-elfvers/vers21.c (_old_foobar): Initialized to -1 for gcc
3.x.

21 years agodaily update
Alan Modra [Fri, 4 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago2002-10-03 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Thu, 3 Oct 2002 23:56:24 +0000 (23:56 +0000)]
2002-10-03  Chris Demetriou  <cgd@broadcom.com>

        * ld-mips-elf/branch-misc-1.d: Link at 0x500000 and use -N, to be
        more compatible with non-embedded targets.
        * ld-mips-elf/branch-misc-2.d: Likewise.

        * ld-mips-elf/mips-elf.exp: Clean up some comments about embedded
        PIC tests.
        (elf): New variable, to control whether generic ELF tests are run.
        (embedded_elf): New variable, to control whether ELF tests
        requiring embedded PIC or embedded relocs are run.

21 years ago2002-10-03 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Thu, 3 Oct 2002 23:53:09 +0000 (23:53 +0000)]
2002-10-03  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/mips-no-jalx.l: Make error message regexps accomodate
        tools which target a specific CPU by default.

21 years ago2002-10-03 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Thu, 3 Oct 2002 19:08:53 +0000 (19:08 +0000)]
2002-10-03  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy.
* Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.
* configure.in: Make SET_LIB_PATH substitution more autoconfy.
* configure.in: Make RPATH_ENVVAR substitution more autoconfy.
* Makefile.in: Regenerate.

21 years ago * contig/tc-sh.c (sh_local_pcrel): New.
Kaz Kojima [Thu, 3 Oct 2002 04:58:28 +0000 (04:58 +0000)]
* contig/tc-sh.c (sh_local_pcrel): New.
(sh_force_relocation): Use sh_local_pcrel.
(md_pcrel_from_section): Check the relocation type whether it
should be resolved locally. Use S_FORCE_RELOC.
* testsuite/gas/sh/pcrel2.d: Check code also.

21 years ago* gas/sh/sh64/ptc32-noexp-1.d: Adjust for changes to *ABS*
Stephen Clarke [Thu, 3 Oct 2002 00:56:06 +0000 (00:56 +0000)]
* gas/sh/sh64/ptc32-noexp-1.d: Adjust for changes to *ABS*
symbol generation.
* gas/sh/sh64/ptc64-noexp-1.d: Likewise.

21 years agodaily update
Alan Modra [Thu, 3 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago* ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,
Stephen Clarke [Wed, 2 Oct 2002 21:56:50 +0000 (21:56 +0000)]
* ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,
ld-sh/sh64/gotplt.s: New test.

21 years ago* elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount.
Stephen Clarke [Wed, 2 Oct 2002 21:53:40 +0000 (21:53 +0000)]
* elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount.
(sh_elf_link_hash_newfunc): Initialize it.
(allocate_dynrelocs): Transfer gotplt refs from plt.refcount
to got.refcount for symbols that are forced local or when
we have direct got refs.
(sh_elf_gc_sweep_hook): Adjust gotplt_refcount.  Use it
to correctly adjust got.refcount and plt.refcount.
(sh_elf_copy_indirect_symbol): Copy gotplt_refcount across.
(sh_elf_check_relocs): Increment gotplt_refcount.

21 years ago* ld-sh/sh64/cmpct1.sd : Fix linked file name.
Stephen Clarke [Wed, 2 Oct 2002 21:19:59 +0000 (21:19 +0000)]
* ld-sh/sh64/cmpct1.sd : Fix linked file name.
* ld-sh/sh64/crange3.dd: Likewise.

21 years ago2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Wed, 2 Oct 2002 19:14:25 +0000 (19:14 +0000)]
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl: Eliminate reference to all-gui, all-libproc.
* Makefile.in: Regenerate.

21 years ago2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Wed, 2 Oct 2002 06:29:04 +0000 (06:29 +0000)]
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.def: Remove order dependency comments.
* Makefile.tpl: Add explicit install-install dependencies.
* Makefile.in: Regenerate.

21 years ago2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Wed, 2 Oct 2002 06:22:08 +0000 (06:22 +0000)]
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl: Remove material now in src-release.  (Finally!)
* Makefile.in: Regenerate.

21 years ago2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Wed, 2 Oct 2002 05:37:46 +0000 (05:37 +0000)]
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure: Restore my original patch by syncing with gcc version.

21 years ago2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Wed, 2 Oct 2002 05:22:11 +0000 (05:22 +0000)]
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* Bring following over from gcc:

2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>

* configure.in (s390*-*-linux*): Enable libgcj.

21 years ago2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Wed, 2 Oct 2002 04:40:23 +0000 (04:40 +0000)]
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.in: Regenerate.  This really ought to fix things. :sigh:

21 years ago * configure: Move stray lines back to where they belong.
Alan Modra [Wed, 2 Oct 2002 03:47:32 +0000 (03:47 +0000)]
* configure: Move stray lines back to where they belong.

21 years ago * configure: Move stray line back to where it belongs.
Alan Modra [Wed, 2 Oct 2002 02:41:36 +0000 (02:41 +0000)]
* configure: Move stray line back to where it belongs.

21 years ago * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
Alan Modra [Wed, 2 Oct 2002 02:21:52 +0000 (02:21 +0000)]
* emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.

21 years agodaily update
Alan Modra [Wed, 2 Oct 2002 00:00:12 +0000 (00:00 +0000)]
daily update

21 years ago2002-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Tue, 1 Oct 2002 23:35:42 +0000 (23:35 +0000)]
2002-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl: Insert configure-target target, for src-release.

21 years ago2002-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Tue, 1 Oct 2002 23:21:51 +0000 (23:21 +0000)]
2002-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure: Finish reverting change which Andrew Cagney started
reverting.  Should fix bustage.

21 years ago2002-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Tue, 1 Oct 2002 22:58:14 +0000 (22:58 +0000)]
2002-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>

* src-release (BINUTILS_SUPPORT_DIRS): Add cpu directory.

21 years ago2002-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Tue, 1 Oct 2002 22:34:16 +0000 (22:34 +0000)]
2002-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>

* src-release: New file.  Contains material for making net
releases for gdb, binutils, et al., formerly in Makefile.in.

21 years agobfd/
Jakub Jelinek [Tue, 1 Oct 2002 10:43:37 +0000 (10:43 +0000)]
bfd/
* elf32-i386.c (elf_i386_relocate_section): Fix
movl foo@indntpoff, %eax IE->LE transition.
ld/testsuite/
* ld-i386/i386.exp: Add tlsindntpoff test.
* ld-i386/tlsindntpoff.s: New test.
* ld-i386/tlsindntpoff.dd: New test.

21 years agobfd/
Jakub Jelinek [Tue, 1 Oct 2002 09:15:34 +0000 (09:15 +0000)]
bfd/
* elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD
sequence and its transitions.
ld/testsuite/
* ld-x86-64/tlspic1.s: Change TLSGD sequences.
* ld-x86-64/tlsbinpic.s: Likewise.
* ld-x86-64/tlspic.dd: Adjust.

21 years agobfd/
Jakub Jelinek [Tue, 1 Oct 2002 09:10:46 +0000 (09:10 +0000)]
bfd/
* elf32-i386.c (elf_i386_relocate_section): Resolve R_386_TLS_LDO_32
to st_value + addend in non-code sections.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Resolve
R_X86_64_DTPOFF32 to st_value + addend in non-code sections.

ld/testsuite/
* ld-i386/i386.exp: Add tlsg test.
* ld-i386/tlsg.s: New test.
* ld-i386/tlsg.sd: New test.
* ld-i386/tlsbin.dd: Change LD into LD -> LE in comments.
* ld-i386/tlsbinpic.s: Likewise.
* ld-x86-64/x86-64.exp: Add tlsg test.
* ld-x86-64/tlsg.s: New test.
* ld-x86-64/tlsg.sd: New test.
* ld-x86-64/tlsbin.dd: Change LD into LD -> LE in comments.
* ld-x86-64/tlsbinpic.s: Likewise.

21 years ago * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
Alan Modra [Tue, 1 Oct 2002 06:15:33 +0000 (06:15 +0000)]
* config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
(TC_FORCE_RELOCATION): Tidy arg.

21 years ago2002-09-30 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 1 Oct 2002 04:37:47 +0000 (04:37 +0000)]
2002-09-30  H.J. Lu <hjl@gnu.org>

* gas/mips/mips.exp: Undo the last change.

21 years ago2002-09-30 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 1 Oct 2002 03:27:56 +0000 (03:27 +0000)]
2002-09-30  H.J. Lu <hjl@gnu.org>

* readelf.c (get_machine_flags): Handle E_MIPS_MACH_4120,
E_MIPS_MACH_5400 and E_MIPS_MACH_5500.

21 years ago2002-09-30 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 1 Oct 2002 00:12:26 +0000 (00:12 +0000)]
2002-09-30  H.J. Lu <hjl@gnu.org>

* gas/mips/vr4120.d: Use "#pass" instead of "#..." to skip the
rest of output.

21 years agodaily update
Alan Modra [Tue, 1 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago2002-09-30 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 30 Sep 2002 21:12:24 +0000 (21:12 +0000)]
2002-09-30  H.J. Lu <hjl@gnu.org>

* gas/mips/mips.exp: Set xfail on empic, empic2, empic3_g1 and
empic3_g2 on Linux/mips.

21 years ago2002-09-30 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 30 Sep 2002 20:59:11 +0000 (20:59 +0000)]
2002-09-30  H.J. Lu <hjl@gnu.org>

* gas/mips/vr4120.d: Pass -m mips:4120 to objdump.

21 years agoFix date in last commit.
Richard Sandiford [Mon, 30 Sep 2002 12:08:05 +0000 (12:08 +0000)]
Fix date in last commit.

21 years ago[gas/]
Richard Sandiford [Mon, 30 Sep 2002 12:04:54 +0000 (12:04 +0000)]
[gas/]
* doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
* config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
(hilo_interlocks): True for CPU_VR5500.
(gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
(mips_fix_vr4122_bugs): New.
(append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
(mips_emit_delays): Likewise.
(macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
[M_ROLI]: Likewise ror if CPU_HAS_ROR.
(validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
(OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
(md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
(OPTION_ELF_BASE): Bump.
(md_parse_option): Handle the new options.
(mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
vr5400 and vr5500.

[gas/testsuite/]
* gas/mips/mips4100.[sd]: Move dmadd16 and madd16 checks to...
* gas/mips/vr4111.[sd]: ...this new test.
* gas/mips/vr4120.[sd],
* gas/mips/vr4122.[sd],
* gas/mips/vr5400.[sd],
* gas/mips/vr5500.[sd]: New tests.
* mips.exp: Run them.

21 years ago[include/opcode/]
Richard Sandiford [Mon, 30 Sep 2002 11:58:10 +0000 (11:58 +0000)]
[include/opcode/]
* mips.h: Update comment for new opcodes.
(OP_MASK_VECBYTE, OP_SH_VECBYTE): New.
(OP_MASK_VECALIGN, OP_SH_VECALIGN): New.
(INSN_4111, INSN_4120, INSN_5400, INSN_5500): New.
(CPU_VR4120, CPU_VR5400, CPU_VR5500): New.
(OPCODE_IS_MEMBER): Handle the new CPU_* values and INSN_* flags.
Don't match CPU_R4111 with INSN_4100.

[opcodes/]
* mips-dis.c (print_insn_arg): Handle '[', ']', 'e' and '%'.
(mips_isa_type): Handle bfd_mach_mips4120, bfd_mach_mips5400
and bfd_mach_mips5500.
* mips-opc.c (V1): Include INSN_4111 and INSN_4120.
(N411, N412, N5, N54, N55): New convenience defines.
(mips_builtin_opcodes): Add vr4120, vr5400 and vr5500 opcodes.
Change dmadd16 and madd16 from V1 to N411.

21 years ago[include/elf]
Richard Sandiford [Mon, 30 Sep 2002 11:53:56 +0000 (11:53 +0000)]
[include/elf]
* mips.h (E_MIPS_MACH_4120, E_MIPS_MACH_5400, E_MIPS_MACH_5500): New.

[bfd/]
* archures.c (bfd_mach_mips4120, bfd_mach_mips5400): New.
(bfd_mach_mips5500): New.
* cpu-mips.c (I_mips4120, I_mips5400, I_mips5500): New.
(arch_info_struct): Add corresponding entries here.
* elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_4120,
E_MIPS_MACH_5400 and E_MIPS_MACH_5500.
(_bfd_mips_elf_final_write_processing): Handle bfd_mach_mips4120,
bfd_mach_mips5400 and bfd_mach_mips5500.
(_bfd_mips_elf_mach_extends_p): New function.
(_bfd_mips_elf_merge_private_bfd_data): Use it to help merge
the EF_MIPS_MACH flags.
* bfd-in2.h: Regenerate.

21 years agoAdd cpu directory.
Nick Clifton [Mon, 30 Sep 2002 10:34:06 +0000 (10:34 +0000)]
Add cpu directory.

21 years ago * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
Alan Modra [Mon, 30 Sep 2002 09:31:31 +0000 (09:31 +0000)]
* scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
* scripttempl/elfm68hc11.sc: Likewise.
* scripttempl/elfm68hc12.sc: Likewise.

21 years ago2002-09-29 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 30 Sep 2002 06:32:00 +0000 (06:32 +0000)]
2002-09-29  H.J. Lu <hjl@gnu.org>

* config/tc-mips.c (md_apply_fix3): Subtract the symbol value
twice if howto->pcrel_offset is true.

21 years ago * ld-powerpc/powerpc.exp: Restrict to 32 bit ELF.
Alan Modra [Mon, 30 Sep 2002 05:54:51 +0000 (05:54 +0000)]
* ld-powerpc/powerpc.exp: Restrict to 32 bit ELF.

21 years ago * ld-powerpc/reloc.s, ld-powerpc/reloc.d: New.
Alan Modra [Mon, 30 Sep 2002 05:25:20 +0000 (05:25 +0000)]
* ld-powerpc/reloc.s, ld-powerpc/reloc.d: New.
* ld-powerpc/powerpc.exp: New.

21 years agoNo need to set OTHER_GOT_RELOC_SECTIONS in emulparams/elf32ppclinux.sh.
H.J. Lu [Mon, 30 Sep 2002 04:23:40 +0000 (04:23 +0000)]
No need to set OTHER_GOT_RELOC_SECTIONS in emulparams/elf32ppclinux.sh.

21 years ago * ld-i386/reloc.s, ld-i386/reloc.d: New.
Alan Modra [Mon, 30 Sep 2002 03:35:18 +0000 (03:35 +0000)]
* ld-i386/reloc.s, ld-i386/reloc.d: New.
* ld-i386/i386.exp: Run new test.

21 years ago * emultempl/elf32.em (output_rel_find): Always place orphan loadable
Alan Modra [Mon, 30 Sep 2002 03:34:46 +0000 (03:34 +0000)]
* emultempl/elf32.em (output_rel_find): Always place orphan loadable
reloc sections just before .rel.plt/.rela.plt.
(gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
Only put loadable reloc sections in hold_rel.

21 years agodaily update
Alan Modra [Mon, 30 Sep 2002 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2002-09-29 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 29 Sep 2002 23:59:49 +0000 (23:59 +0000)]
2002-09-29  H.J. Lu <hjl@gnu.org>

* ld/emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
* ld/emulparams/elf32ppclinux.sh (OTHER_GOT_RELOC_SECTIONS): New.

21 years ago2002-09-29 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Sun, 29 Sep 2002 17:19:28 +0000 (17:19 +0000)]
2002-09-29  Andrew Cagney  <ac131313@redhat.com>

Revert below (note that src does not contain Makefile.tpl):
* Makefile.tpl: Make subsituted variables more autoconfy.
* Makefile.in: Regenerate.

21 years ago2002-09-29 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Sun, 29 Sep 2002 16:12:36 +0000 (16:12 +0000)]
2002-09-29  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure: Revert accidentally applied changes.

21 years ago2002-09-29 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Sun, 29 Sep 2002 15:59:34 +0000 (15:59 +0000)]
2002-09-29  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl: Make more autoconf-friendly.
* Makefile.in: Regenerate.
* configure: Make substitution more autoconf-like.

2002-09-28  Richard Earnshaw  <rearnsha@arm.com>

* configure.in (arm-*-coff, strongarm-*-coff, xscale-*-coff): Use a
single entry to handle all these.
(arm-*-elf, strongarm-*-elf, xscale-*-elf): Likewise.  Also enable
libjava on arm-*-elf.

21 years agodaily update
Alan Modra [Sun, 29 Sep 2002 00:00:04 +0000 (00:00 +0000)]
daily update