OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
22 years ago * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
Alan Modra [Sat, 8 Sep 2001 05:47:01 +0000 (05:47 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
as well as DEF_DYNAMIC in test for avoided copy relocs.
(allocate_plt_and_got_and_discard_relocs): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
(allocate_plt_and_got_and_discard_relocs): Likewise.

22 years agomischeckin. fixed.
Eric Christopher [Sat, 8 Sep 2001 04:16:12 +0000 (04:16 +0000)]
mischeckin.  fixed.

22 years ago2001-09-07 Eric Christopher <echristo@redhat.com>
Eric Christopher [Sat, 8 Sep 2001 02:34:56 +0000 (02:34 +0000)]
2001-09-07  Eric Christopher  <echristo@redhat.com>

* gas/mips/mips64.d: Change to use mipsisa64.
* gas/mips/mips32.d: Change to use mipsisa32.

22 years ago * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq with
Richard Henderson [Sat, 8 Sep 2001 01:12:00 +0000 (01:12 +0000)]
    * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq with
        require_seq and allow_seq.  Let !literal omit the sequence number.
        (tokenize_arguments): Reject sequence numbers of !allow_seq.

22 years ago * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE
Jakub Jelinek [Fri, 7 Sep 2001 22:41:03 +0000 (22:41 +0000)]
* config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE
section symbols the same way as externs.

22 years ago * emulparams/h8300helf.sh: Move stack to a much higher memory address.
Jeff Law [Fri, 7 Sep 2001 17:35:04 +0000 (17:35 +0000)]
    * emulparams/h8300helf.sh: Move stack to a much higher memory address.
        * emulparams/h8300self.sh: Similarly.

22 years ago Fix wrong ChangeLog entries
Thiemo Seufer [Fri, 7 Sep 2001 06:09:45 +0000 (06:09 +0000)]
Fix wrong ChangeLog entries

22 years ago Reallow unrestricted use of .set mipsX pseudo-op in gas.
Thiemo Seufer [Fri, 7 Sep 2001 05:54:12 +0000 (05:54 +0000)]
Reallow unrestricted use of .set mipsX pseudo-op in gas.
Update testcases accordingly.

22 years ago * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
Thiemo Seufer [Fri, 7 Sep 2001 05:00:37 +0000 (05:00 +0000)]
* elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
of R_MIPS_PC16.

* config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL.
(macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded
PIC, BFD_RELOC_16_PCREL for the rest.
(mips_ip): Likewise.
        (md_pcrel_from): return the right offset for the differently shifted
        pcrel relocs.
(md_apply_fix): Handle BFD_RELOC_16_PCREL.

* gas/mips/beq.d: Check branches to external labels.
* gas/mips/beq.s: Likewise.
* gas/mips/bge.d: Likewise.
* gas/mips/bge.s: Likewise.
* gas/mips/bgeu.d: Likewise.
* gas/mips/bgeu.s: Likewise.
* gas/mips/blt.d: Likewise.
* gas/mips/blt.s: Likewise.
* gas/mips/bltu.d: Likewise.
* gas/mips/bltu.s: Likewise.
* gas/mips/elempic.d: Switch from R_MIPS_GNU_REL16_S2 to R_MIPS_PC16.
* gas/mips/empic.d: Likewise.
* gas/mips/empic.s: Likewise.
* gas/mips/telempic.d: Likewise.
* gas/mips/tempic.d: Likewise.

22 years ago * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
Thiemo Seufer [Thu, 6 Sep 2001 21:30:15 +0000 (21:30 +0000)]
* elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
definitions.
(mips_elf64_howto_table_rel): Likewise.

22 years ago * gas/mips/tmips16-f.d: New file, testcase for big endian MIPS16
Thiemo Seufer [Thu, 6 Sep 2001 20:02:20 +0000 (20:02 +0000)]
* gas/mips/tmips16-f.d: New file, testcase for big endian MIPS16
relocations, tradtional variant.

22 years agoFix import symbols for AIX.
Tom Rix [Thu, 6 Sep 2001 15:20:01 +0000 (15:20 +0000)]
Fix import symbols for AIX.

22 years ago * config/tc-ia64.c (FUNC_IPLT_RELOC): New.
Richard Henderson [Wed, 5 Sep 2001 20:20:37 +0000 (20:20 +0000)]
    * config/tc-ia64.c (FUNC_IPLT_RELOC): New.
        (pseudo_func): Add @iplt.
        (pseudo_opcode): Add data16 and data16.ua.
        (md_begin): Set iplt pseudo.
        (ia64_cons_fix_new): Handle 16 byte iplt reloc specially.

22 years agoSet correct value for default (PE) stack size.
Nick Clifton [Wed, 5 Sep 2001 16:00:13 +0000 (16:00 +0000)]
Set correct value for default (PE) stack size.

22 years ago * elf64-alpha.c (SKIP_HOWTO): New.
Richard Henderson [Wed, 5 Sep 2001 03:00:14 +0000 (03:00 +0000)]
    * elf64-alpha.c (SKIP_HOWTO): New.
        (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
        Fix sizes of 16-bit mem format relocs.
        (elf64_alpha_reloc_map): Update to match.
        (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
        (elf64_alpha_relax_without_lituse): Likewise.
        (elf64_alpha_check_relocs): Handle GPREL16.
        (elf64_alpha_relocate_section): Likewise.
        * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
        (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
        * bfd-in2.h, libbfd.h: Rebuild.

22 years ago * alpha.h (R_ALPHA_OP*, R_ALPHA_IMMED*, R_ALPHA_GPVALUE): Remove.
Richard Henderson [Wed, 5 Sep 2001 02:54:37 +0000 (02:54 +0000)]
    * alpha.h (R_ALPHA_OP*, R_ALPHA_IMMED*, R_ALPHA_GPVALUE): Remove.
        (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.

22 years ago * alpha.h (struct alpha_operand): Pack elements into bitfields.
Richard Henderson [Wed, 5 Sep 2001 02:52:17 +0000 (02:52 +0000)]
    * alpha.h (struct alpha_operand): Pack elements into bitfields.

22 years ago * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.
Richard Henderson [Wed, 5 Sep 2001 02:39:43 +0000 (02:39 +0000)]
  * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.
  (MACRO_LITERAL, MACRO_BASE, MACRO_BYTOFF, MACRO_JSR): Remove.
  (alpha_macros): Remove occurrences of same.
  (O_lituse_addr, O_gprel): New.
  (DUMMY_RELOC_LITUSE_*): New.
  (s_alpha_ucons, s_alpha_arch): Prototype.
  (alpha_reloc_op): Construct elements via DEF macro.
  (ALPHA_RELOC_SEQUENCE_OK): Remove.
  (struct alpha_reloc_tag): Rename from alpha_literal_tag; rename
  members to not be literal specific.
  (next_sequence_num): New.
  (md_apply_fix3): Cope with missing GPDISP_LO16.  Adjust for
  added/removed BFD relocations.
  (alpha_force_relocation, alpha_fix_adjustable): Likewise.
  (alpha_adjust_symtab_relocs): Handle GPDISP relocs as well.
  (tokenize_arguments): Parse ! relocations properly.
  (find_macro_match): Delete unused macro argument types.
  (assemble_insn): Add reloc parameter; emit that instead of the
  default as appropriate.
  (get_alpha_reloc_tag): New.  Split from ...
  (emit_insn): ... here.  Allocate a reloc tag for GPDISP.
  (assemble_tokens): Don't search macros if user relocation present.
  Copy reloc sequence number to insn struct.
  (emit_ldgp): Remove user reloc handling.
  (load_expression, emit_lda, emit_ldah, emit_ir_load): Likewise.
  (emit_loadstore, emit_ldXu, emit_ldil, emit_stX): Likewise.
  (emit_sextX, emit_division, emit_jsrjmp, emit_retjcr): Likewise.
  * config/tc-alpha.h (tc_adjust_symtab): Always define.
  (struct alpha_fix_tag): Name members less literal specific.

  * gas/alpha/alpha.exp: New file.
  * gas/alpha/elf-reloc-1.[sd]: New test.
  * gas/alpha/elf-reloc-2.[sl]: New test.
  * gas/alpha/elf-reloc-3.[sl]: New test.
  * gas/alpha/elf-reloc-4.[sd]: New test.
  * gas/alpha/fp.exp: Remove file.
  * gas/alpha/fp.s: Output to .data not .rdata.
  * gas/alpha/fp.d: Adjust to match.

22 years ago * readelf.c: Include elf/h8 for H8 series definitions.
Jeff Law [Wed, 5 Sep 2001 02:26:04 +0000 (02:26 +0000)]
* readelf.c: Include elf/h8 for H8 series definitions.
(guess_is_rela): H8 series if RELA.
(dump_relocations): Handle H8 series relocations.

* testsuite/binutils/all/readelf.exp: Expect readelf -wi to
fail for the H8 series.

22 years agoTue Sep 4 20:06:09 2001 Jeffrey A Law (law@cygnus.com)
Jeff Law [Wed, 5 Sep 2001 02:05:07 +0000 (02:05 +0000)]
Tue Sep  4 20:06:09 2001  Jeffrey A Law  (law@cygnus.com)

        * gas/all/gas.exp (930509a): Expect failure on the H8/300 ELF port.

        * gas/h8300/ffxx1-elf.d: Update due to recent changes to H8/300
        ELF toolchain.
        * gas/h8300/h8300-elf.exp: Likewise.

        * gas/macros/macros.exp: Expect failure on all H8/300 ports.

        * gas/vtable/vtable.exp: Do not run tests on H8/300 ELF ports.

22 years ago * tc-h8300.c (tc_gen_reloc): Give an error if we try to take the
Jeff Law [Wed, 5 Sep 2001 02:01:08 +0000 (02:01 +0000)]
* tc-h8300.c (tc_gen_reloc): Give an error if we try to take the
address of two symbols in different sections.

22 years agomerge from gcc
DJ Delorie [Tue, 4 Sep 2001 21:33:56 +0000 (21:33 +0000)]
merge from gcc

22 years ago * elf32-h8300.c (elf32_h8_relax_section): New function.
Jeff Law [Tue, 4 Sep 2001 21:06:01 +0000 (21:06 +0000)]
    * elf32-h8300.c (elf32_h8_relax_section): New function.
        (elf32_h8_relax_delete_bytes): Likewise.
        (elf32_h8_symbol_address_p): Likewise.
        (elf32_h8_get_relocated_section_contents): Likewise.
        (bfd_elf32_bfd_relax_section): Define.
        (bfd_elf32_bfd_get_relocated_section_contents): Likewise.

22 years ago * elf32-h8300.c (special): New function.
Jeff Law [Tue, 4 Sep 2001 17:29:36 +0000 (17:29 +0000)]
    * elf32-h8300.c (special): New function.
        (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
        all relocations.
        (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
        relocations.  Fix problems with the true 24bit reloc R_H8_DIR24R8.
        Fix minor problems with 8bit and 16bit PC relative relocations.

22 years ago * i386-dis.c (grps): Don't print the implicit al/ax/eax register
Alan Modra [Tue, 4 Sep 2001 01:58:07 +0000 (01:58 +0000)]
* i386-dis.c (grps): Don't print the implicit al/ax/eax register
for opcode 0xf6 or 0xf7 forms of mul, imul, div, idiv insns.

22 years ago2001-09-03 Jeff Holcomb <jeffh@redhat.com>
Jeff Holcomb [Mon, 3 Sep 2001 19:47:48 +0000 (19:47 +0000)]
2001-09-03  Jeff Holcomb  <jeffh@redhat.com>

        * configure.in: Enable libstdc++-v3 for h8300 targets.

22 years ago * emultempl/beos.em: Declare prototypes for comparions functions,
Andreas Jaeger [Mon, 3 Sep 2001 07:29:50 +0000 (07:29 +0000)]
* emultempl/beos.em: Declare prototypes for comparions functions,
adjust definitions.

22 years ago * emultempl/aix.em: Add missing prototype.
Andreas Jaeger [Mon, 3 Sep 2001 06:43:37 +0000 (06:43 +0000)]
* emultempl/aix.em: Add missing prototype.
* emultempl/lnk960.em: Likewise.
* emultempl/vanilla.em: Likewise.
* emultempl/armcoff.em: Likewise.
* emultempl/armelf_oabi.em: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/gld960.em: Likewise.

* emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
for prototype declaration.

22 years ago * vms-tir.c: Add missing prototypes.
Andreas Jaeger [Sat, 1 Sep 2001 10:29:27 +0000 (10:29 +0000)]
* vms-tir.c: Add missing prototypes.
* vms-hdr.c: Likewise.
* vms-gsd.c: Likewise.
* vms-misc.c: Likewise.

22 years ago * config/tc-h8300.c (build_bytes): For OBJ_ELF, make relocation's
Jeff Law [Fri, 31 Aug 2001 22:43:55 +0000 (22:43 +0000)]
    * config/tc-h8300.c (build_bytes): For OBJ_ELF, make relocation's
        offset match H8 ELF spec.
        (md_section_align): Alternate implementation for BFD_ASSEMBLER.
        (md_apply_fix): Fix argument and return types for BFD_ASSEMBLER.

22 years ago2001-08-31 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 31 Aug 2001 21:41:10 +0000 (21:41 +0000)]
2001-08-31  H.J. Lu  <hjl@gnu.org>

* elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
with bad relocation.

22 years ago2001-08-31 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 21:28:05 +0000 (21:28 +0000)]
2001-08-31  Eric Christopher  <echristo@redhat.com>
    Jason Eckhardt  <jle@redhat.com>

* ldmain.c (get_emulation): Add support for -mips32 and -mips64.

22 years ago2001-08-31 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 21:24:28 +0000 (21:24 +0000)]
2001-08-31  Eric Christopher  <echristo@redhat.com>
    Jason Eckhardt  <jle@redhat.com>

* bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
mips32_4k and mips64.
* bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
bfd_mach_mips64.  Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
* bfd/cpu-mips.c: Ditto.
* bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
* bfd/bfd-in2.h: Regenerate.

22 years agomips3264 support
Eric Christopher [Fri, 31 Aug 2001 21:21:54 +0000 (21:21 +0000)]
mips3264 support

22 years ago2001-08-31 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 21:15:00 +0000 (21:15 +0000)]
2001-08-31  Eric Christopher  <echristo@redhat.com>
    Jason Eckhardt    <jle@redhat.com>

* mips-dis.c: Add support for bfd_mach_mipsisa32 and
bfd_mach_mipsisa64. Remove bfd_mach_mips32, bfd_mach_mips32_4k,
bfd_mach_mips64.

22 years ago2001-08-31 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 21:06:40 +0000 (21:06 +0000)]
2001-08-31  Eric Christopher  <echristo@redhat.com>
    Jason Eckhardt  <jle@redhat.com>

* config/tc-mips.c (mips_cpu_info): Add support for mipsisa32,
5kc, and 20kc.  Clean up old entries.

22 years ago * tic54x-opc.c: Add default initializers to avoid warnings.
Andreas Jaeger [Fri, 31 Aug 2001 20:05:24 +0000 (20:05 +0000)]
* tic54x-opc.c: Add default initializers to avoid warnings.

* arc-opc.c: Include "sysdep.h" to get stdio.h as include file.
* arc-ext.c: Likewise.

22 years ago * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
Jakub Jelinek [Fri, 31 Aug 2001 19:20:12 +0000 (19:20 +0000)]
* elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
value into R_ALPHA_RELATIVE's addend.
(elf64_alpha_finish_dynamic_symbol): Likewise.

22 years ago * tc-h8300.c (relocation mappings): Remove. Moved to tc-h8300.h.
Jeff Law [Fri, 31 Aug 2001 17:43:52 +0000 (17:43 +0000)]
    * tc-h8300.c (relocation mappings): Remove.  Moved to tc-h8300.h.
        (build_bytes): Mark fixups for PCrel branches as signed.  For
        OBJ_ELF, make sure the reloc's offset points to the first byte
        to be modified.
        (md_convert_frag): Update definiton based on BFD_ASSEMBLER.
        * tc-h8300.h (relocation mappings): Add.

22 years agoamend entry to mention only if not USE_REL
Nick Clifton [Fri, 31 Aug 2001 16:24:39 +0000 (16:24 +0000)]
amend entry to mention only if not USE_REL

22 years agoDo not rightshift recomputed addend during relocatable link if not USE_REL.
Nick Clifton [Fri, 31 Aug 2001 16:23:25 +0000 (16:23 +0000)]
Do not rightshift recomputed addend during relocatable link if not USE_REL.

22 years agoFix off-by-one error whilst sweeping vtable relocs
Nick Clifton [Fri, 31 Aug 2001 16:16:14 +0000 (16:16 +0000)]
Fix off-by-one error whilst sweeping vtable relocs

22 years ago * emultempl/pe.em: Add missing prototypes.
Andreas Jaeger [Fri, 31 Aug 2001 13:30:13 +0000 (13:30 +0000)]
* emultempl/pe.em: Add missing prototypes.
(gld_${EMULATION_NAME}_after_open): Remove extra args to
pe_find_data_imports.
(pr_sym): Add unused attribute.

22 years ago2001-08-30 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 06:37:20 +0000 (06:37 +0000)]
2001-08-30  Eric Christopher  <echristo@redhat.com>
    Jason Eckhardt  <jle@redhat.com>

* config.sub: Add support for mipsisa32.

22 years ago2001-08-30 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 05:45:40 +0000 (05:45 +0000)]
2001-08-30  Eric Christopher  <echristo@redhat.com>

* config.sub, config.guess: Import latest from subversions.

22 years ago2001-08-30 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 30 Aug 2001 21:26:26 +0000 (21:26 +0000)]
2001-08-30  H.J. Lu  <hjl@gnu.org>

* elf32-mips.c (mips_elf_calculate_relocation): Revert the last
2 changes.
(_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
relocations for weak definitions.

22 years ago * gas/h8300/h8300.exp (do_h8300_cbranch): Remove invocation.
Joern Rennecke [Thu, 30 Aug 2001 21:08:43 +0000 (21:08 +0000)]
* gas/h8300/h8300.exp (do_h8300_cbranch): Remove invocation.
(do_h8300_branch, do_h8300h_cbranch, do_h8300h_branch): Likewise.
(do_h8300s_cbranch, do_h8300s_branch, ffxx1): Likwise.
* gas/h8300/h8300-coff.exp, gas/h8300/h8300-elf.exp: New files.
* gas/h8300/branch-elf.s, gas/h8300/branchh-elf.s: Likewise.
* gas/h8300/branchs-elf.s, gas/h8300/ffxx1-elf.d: Likewise.
* gas/h8300/ffxx1-elf.s: Likewise.
* gas/h8300/branch.s, gas/h8300/branchh.s: Move to:
* gas/h8300/branch-coff.s, gas/h8300/branchh-coff.s
* gas/h8300/branchs.s, gas/h8300/ffxx1.d: Move to:
* gas/h8300/branchs-coff.s, gas/h8300/ffxx1-coff.d .
* gas/h8300/ffxx1.s: Move to:
* gas/h8300/ffxx1-coff.s .

22 years agoNuts. Checked in wrong version of previous patch. Fixed.
Jeff Law [Thu, 30 Aug 2001 20:38:35 +0000 (20:38 +0000)]
Nuts.  Checked in wrong version of previous patch.  Fixed.

22 years agoThu Aug 30 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
Jeff Law [Thu, 30 Aug 2001 20:15:06 +0000 (20:15 +0000)]
Thu Aug 30 12:05:13 2001  J"orn Rennecke <amylaar@redhat.com>

        * tc-h8300.c (tc_crawl_symbol_chain, tc_headers_hook): Don't
        define for BFD_ASSEMBLER.
        (tc_reloc_mangle): Likewise.
        (tc_gen_reloc): New function for BFD_ASSEMBLER.
More of Joern's patches with minor changes s/OBJ_ELF/BFD_ASSEMBLER/

22 years ago2001-08-30 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 30 Aug 2001 16:02:40 +0000 (16:02 +0000)]
2001-08-30  H.J. Lu  <hjl@gnu.org>

* Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
(BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
* Makefile.in: Rebuild.

22 years ago2001-08-30 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 30 Aug 2001 15:24:18 +0000 (15:24 +0000)]
2001-08-30  H.J. Lu  <hjl@gnu.org>

* elf32-mips.c (mips_elf_calculate_relocation): Don't create
dynamic relocation for undefined weak symbols when creating
executables. Check h->root.root.type, instead of h->root.type.

22 years agoFix for xty_ld symbols
Tom Rix [Thu, 30 Aug 2001 12:48:35 +0000 (12:48 +0000)]
Fix for xty_ld symbols

22 years agoomitted in previous delta
Nick Clifton [Thu, 30 Aug 2001 12:19:49 +0000 (12:19 +0000)]
omitted in previous delta

22 years ago * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
Jeff Law [Thu, 30 Aug 2001 02:15:58 +0000 (02:15 +0000)]
* elf32-h8300.c (h8_elf_howto_table): Add new PC relative
relocations.
(h8_reloc_map): Similarly.
(elf32_h8_final_link_relocate): Remove incorrect overflow tests.
Add support for PC relative relocations.

22 years ago * elf32-h8300.c: Put all prototypes together.
Jeff Law [Thu, 30 Aug 2001 00:08:12 +0000 (00:08 +0000)]
    * elf32-h8300.c: Put all prototypes together.
        (elf32_h8_info_to_howto): Parameter elf_reloc is used.
        (elf32_h8_final_link_relocate): New function for linker.
        (elf32_h8_relocate_section): Similarly.
        (elf_backend_relocate_section): Define.

22 years agomerge from gcc
DJ Delorie [Wed, 29 Aug 2001 20:03:08 +0000 (20:03 +0000)]
merge from gcc

22 years ago * tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
Jeff Law [Wed, 29 Aug 2001 18:56:50 +0000 (18:56 +0000)]
    * tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
        assorted coff relocations to the corresponding elf relocations.
        * tc-h8300.h (TARGET_ARCH, TARGET_FORMAT): Define appropriately.
More of Joern's patches.

22 years ago * config/tc-h8300.c (h8300hmode): Record the machine type
Jeff Law [Wed, 29 Aug 2001 18:50:56 +0000 (18:50 +0000)]
* config/tc-h8300.c (h8300hmode): Record the machine type
if BFD_ASSEMBLER is defined.
(h8300smode, md_begin): Similarly.

22 years ago2001-08-29 Joel Sherrill <joel@OARcorp.com>
Phil Blundell [Wed, 29 Aug 2001 18:47:28 +0000 (18:47 +0000)]
2001-08-29  Joel Sherrill <joel@OARcorp.com>

* configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
default from coff to elf.

22 years ago2001-08-29 Joel Sherrill <joel@OARcorp.com>
Phil Blundell [Wed, 29 Aug 2001 18:45:28 +0000 (18:45 +0000)]
2001-08-29  Joel Sherrill <joel@OARcorp.com>

* configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change
default from coff to elf.
* configure: Regenerate.

22 years agoFix brown-paper-bag thinko in last change.
Jeff Law [Wed, 29 Aug 2001 18:45:18 +0000 (18:45 +0000)]
Fix brown-paper-bag thinko in last change.

22 years ago * lib/gas-defs.exp: (regexp_diff) At verbosity 3, also show
Jeff Law [Wed, 29 Aug 2001 18:11:19 +0000 (18:11 +0000)]
    * lib/gas-defs.exp: (regexp_diff) At verbosity 3, also show
        where mismatch occurs due to regexp mismatch.

Another patch from Joern.

22 years ago * configure.in: Add case for h8300-*-elf.
Jeff Law [Wed, 29 Aug 2001 17:44:39 +0000 (17:44 +0000)]
* configure.in: Add case for h8300-*-elf.
* configure: Regenerate.

Checking in parts of Joern's patch.

22 years ago * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
Jeff Law [Wed, 29 Aug 2001 17:35:27 +0000 (17:35 +0000)]
* emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
ARCH specification.
* emulparams/h8300self.sh: Similarly.

22 years agoFix typos in ChangeLog dates.
Jeff Law [Wed, 29 Aug 2001 17:24:40 +0000 (17:24 +0000)]
Fix typos in ChangeLog dates.

22 years ago * h8.h (EF_H8_MACH): New mask for encoded machine type.
Jeff Law [Wed, 29 Aug 2001 17:23:39 +0000 (17:23 +0000)]
    * h8.h (EF_H8_MACH): New mask for encoded machine type.
        (E_H8_MACH_H8300, E_H8_MACH_H8300H, E_H8_MACH_H8300S): New
        machine types.

22 years ago * cpu-h8300.c (h8300_scan, compatible): Prototype.
Jeff Law [Wed, 29 Aug 2001 17:23:16 +0000 (17:23 +0000)]
    * cpu-h8300.c (h8300_scan, compatible): Prototype.
        (h8300_scan): Handle architecture:machine encodings typically
        found in linker scripts.
        * elf.c (prep_headers): Do not try to do H8 machine recognition
        here.
        * elf32-h8300.c:  Add some missing prototypes.
        (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
        (elf32_h8_object_p): Similarly.

22 years agoAdd missing changelog entry
Nick Clifton [Wed, 29 Aug 2001 17:18:52 +0000 (17:18 +0000)]
Add missing changelog entry

22 years ago * MAINTAINERS: Include ARC Maintainer.
Peter Targett [Wed, 29 Aug 2001 15:19:38 +0000 (15:19 +0000)]
* MAINTAINERS: Include ARC Maintainer.

22 years ago * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
Joern Rennecke [Wed, 29 Aug 2001 12:51:26 +0000 (12:51 +0000)]
* Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
eh8300self.o .
(eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
* configure.tgt (h8300-*-elf*): New case.
* emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
* emulparams/h8300self.sh: New file.
* Makefile.in: Regenerated.

22 years agoTypo fix.
Joern Rennecke [Wed, 29 Aug 2001 12:24:30 +0000 (12:24 +0000)]
Typo fix.

22 years ago * doc/internals.texi (MD_PCREL_FROM_SECTION): Change
Joern Rennecke [Wed, 29 Aug 2001 12:22:27 +0000 (12:22 +0000)]
* doc/internals.texi (MD_PCREL_FROM_SECTION): Change
docuemntation to reflect reality.

22 years ago2001-08-29 Ben Elliston <bje@redhat.com>
Ben Elliston [Wed, 29 Aug 2001 10:55:43 +0000 (10:55 +0000)]
2001-08-29  Ben Elliston  <bje@redhat.com>

* stabs.c (stab_demangle_template): Initialise s4.

22 years ago * targmatch.sed: Delete case statements.
Alan Modra [Wed, 29 Aug 2001 03:39:47 +0000 (03:39 +0000)]
* targmatch.sed: Delete case statements.
* config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
aix4.3 and above.

22 years ago * Makefile.am (elf32-h8300.lo): New target.
Joern Rennecke [Wed, 29 Aug 2001 01:33:52 +0000 (01:33 +0000)]
* Makefile.am (elf32-h8300.lo): New target.
* config.bfd (h8300*-*-elf): New case.
* configure.in (bfd_elf32_h8300_vec): New case.
* elf.c (prep_headers): Add case for bfd_arch_h8300.
* reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
(BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
(BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
* targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
* elf32-h8300.c: New file.
* Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.

22 years ago * h8.h: New file.
Joern Rennecke [Tue, 28 Aug 2001 22:33:27 +0000 (22:33 +0000)]
* h8.h: New file.

22 years ago * m68hc11-dis.c: Add missing prototypes.
Andreas Jaeger [Tue, 28 Aug 2001 16:27:55 +0000 (16:27 +0000)]
* m68hc11-dis.c: Add missing prototypes.
(forgotten in last checkin)

22 years agoAdd missing prototypes
Nick Clifton [Tue, 28 Aug 2001 09:35:16 +0000 (09:35 +0000)]
Add missing prototypes

22 years ago * ppc-opc.c (icbt): Order correctly.
Matthew Green [Tue, 28 Aug 2001 05:47:29 +0000 (05:47 +0000)]
* ppc-opc.c (icbt): Order correctly.

22 years agomerge from gcc
DJ Delorie [Mon, 27 Aug 2001 20:05:03 +0000 (20:05 +0000)]
merge from gcc

22 years ago * tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
Thiemo Seufer [Mon, 27 Aug 2001 18:48:27 +0000 (18:48 +0000)]
* tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
(macro): Reflect change to MAX_GPREL_OFFSET.

22 years ago * elf32-i386.c: Add missing prototypes.
Daniel Jacobowitz [Mon, 27 Aug 2001 18:04:37 +0000 (18:04 +0000)]
    * elf32-i386.c: Add missing prototypes.
        * elf32-ppc.c: Likewise.
        * elf32-sh-lin.c: Likewise.
        * elfarm-nabi.c: Likewise.

22 years ago * elf32-i386.c (elf_i386_grok_prstatus): New function.
Daniel Jacobowitz [Mon, 27 Aug 2001 17:36:32 +0000 (17:36 +0000)]
    * elf32-i386.c (elf_i386_grok_prstatus): New function.
        (elf_i386_grok_psinfo): New function.
        (elf_backend_grok_prstatus): Define.
        (elf_backend_grok_psinfo): Likewise.
        * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
        (ppc_elf_grok_psinfo): New function.
        (elf_backend_grok_prstatus): Define.
        (elf_backend_grok_psinfo): Likewise.
        * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
        (elf32_shlin_grok_psinfo): New function.
        (elf_backend_grok_prstatus): Define.
        (elf_backend_grok_psinfo): Likewise.
        * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
        (elf32_arm_nabi_grok_psinfo): New function.
        (elf_backend_grok_prstatus): Define.
        (elf_backend_grok_psinfo): Likewise.

22 years ago2001-08-27 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 27 Aug 2001 15:40:38 +0000 (15:40 +0000)]
2001-08-27  H.J. Lu  <hjl@gnu.org>

* elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
sanity check.
(mips_elf_calculate_relocation): Create dynamic relocation for
symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
bit is not set.

22 years ago2001-08-27 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 27 Aug 2001 14:47:33 +0000 (14:47 +0000)]
2001-08-27  H.J. Lu  <hjl@gnu.org>

* elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
(_bfd_mips_elf_copy_indirect_symbol): Likewise.
(_bfd_elf32_mips_grok_prstatus): Likewise.
(_bfd_elf32_mips_grok_psinfo): Likewise.
(_bfd_mips_elf_hide_symbol): Make it static and cast to
`struct mips_elf_link_hash_entry *'.
(_bfd_mips_elf_copy_indirect_symbol): Make it static.

22 years ago * gas/macros/macros.exp: xfail powerpc-*-aix.
Alan Modra [Mon, 27 Aug 2001 10:51:20 +0000 (10:51 +0000)]
* gas/macros/macros.exp: xfail powerpc-*-aix.
* gas/ppc/astest64.s: New.
* gas/ppc/astest64.d: New.
* gas/ppc/astest2_64.s: New.
* gas/ppc/astest2_64.d: New.
* gas/ppc/test1elf.asm: New.
* gas/ppc/test1xcoff.asm: New.
* gas/ppc/generate.sh: New. Generate new files below from above .asm
* gas/ppc/test1elf32.s: New.
* gas/ppc/test1elf32.d: New.
* gas/ppc/test1elf64.s: New.
* gas/ppc/test1elf64.d: New.
* gas/ppc/test1xcoff32.s: New.
* gas/ppc/test1xcoff32.d: New.
* gas/ppc/ppc.exp: Run new tests.
* gas/ppc/simpshft.s: Tweak align now that we get nops.

22 years ago * ld-checks/checks.exp: .lcomm is incompatible with ppc coff.
Alan Modra [Mon, 27 Aug 2001 10:49:55 +0000 (10:49 +0000)]
* ld-checks/checks.exp: .lcomm is incompatible with ppc coff.
* ld-scripts/cross1.t: Add .toc section.
* ld-scripts/cross2.t: Likewise.
* ld-scripts/phdrs.exp: powerpc64 is 64 bit.
* ld-srec/srec.exp: xfail powerpc64

22 years ago * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
Alan Modra [Mon, 27 Aug 2001 10:45:55 +0000 (10:45 +0000)]
* Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
(eelf64ppc.c, eelf64lppc.c): Add make targets.
Run "make dep-am"
* Makefile.in: Regenerate.
* configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
entries to correct alphabetical position.
* emulparams/elf64ppc.sh: New.
* emulparams/elf64lppc.sh: New.

22 years ago * configure.in: Recognise powerpc*le*, not just powerpcle*.
Alan Modra [Mon, 27 Aug 2001 10:42:16 +0000 (10:42 +0000)]
* configure.in: Recognise powerpc*le*, not just powerpcle*.
* configure: Regenerate.
* config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
(md_assemble): Use them.
(ppc_machine): Support stub for ELF64 as well as XCOFF.
(md_pseudo_table): Add "llong", "quad".
(md_parse_option): Match default_cpu of powerpc*.
(ppc_arch): Likewise.
(ppc_subseg_align): Only for OBJ_XCOFF.
(ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
(md_begin): Select PPC_OPCODE_64 for 64 bit.
(ppc_insert_operand): Don't bother testing 'file' before calling
as_bad_where.  Use as_bad_where for operand->insert errors.
(mapping): Add ELF64 relocation modifiers.
(ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
expressions with abs_symbol.
(ppc_elf_cons): Correct offset for little endian targets.
(ppc_elf_frob_symbol): New.
(md_assemble): Add support for 64 bit ELF relocs.
(ppc_tc): Ensure 8 byte alignment when 64 bit.
(ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF.  Match
".toc" section for 64 bit ELF.
(ppc_fix_adjustable): New.  Macro body moved from tc-ppc.h.
(md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED.  Only do
the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF.  For 64 bit,
use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
Expand on comments, error message.  Add support for 64 bit relocs,
and use PPC_HI etc. macros.
* config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
(HANDLE_ALIGN): Define to generate nops in code sections rather
than zeros.
(TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
(ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
(tc_fix_adjustable): Move body of macro to tc-ppc.c.
(ppc_fix_adjustable): Declare.
(tc_frob_symbol): Define.
(ppc_elf_frob_symbol): Declare.

22 years ago * binutils-all/readelf.s-64: Adjust offsets for powerpc64. Don't
Alan Modra [Mon, 27 Aug 2001 10:38:41 +0000 (10:38 +0000)]
* binutils-all/readelf.s-64: Adjust offsets for powerpc64.  Don't
use constructs like [45][08] when all combinations are not valid.
Instead use (48|50) to explicitly state which values are correct.

22 years agoAdd missing prototypes
Nick Clifton [Mon, 27 Aug 2001 10:35:20 +0000 (10:35 +0000)]
Add missing prototypes

22 years ago * readelf.c (dump_relocations): Recognise EM_PPC64.
Alan Modra [Mon, 27 Aug 2001 10:33:19 +0000 (10:33 +0000)]
* readelf.c (dump_relocations): Recognise EM_PPC64.

22 years ago * ppc-opc.c (DS): Add PPC_OPERAND_DS flag.
Alan Modra [Mon, 27 Aug 2001 10:27:48 +0000 (10:27 +0000)]
* ppc-opc.c (DS): Add PPC_OPERAND_DS flag.
(LS): Define.
(insert_ds): Complain if not a multiple of 4.
(XSYNC): Define.
(XSYNC_MASK): Define.
(powerpc_opcodes): Add "slbmte", "lwsync", "ptesync", "slbmfev",
"slbmfee".  Modify "sync" to use XSYNC_MASK and LS.

22 years ago * ppc.h (PPC_OPERAND_DS): Define.
Alan Modra [Mon, 27 Aug 2001 10:26:57 +0000 (10:26 +0000)]
* ppc.h (PPC_OPERAND_DS): Define.

22 years ago * ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.
Alan Modra [Mon, 27 Aug 2001 10:26:34 +0000 (10:26 +0000)]
* ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.

22 years ago * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
Alan Modra [Mon, 27 Aug 2001 10:22:03 +0000 (10:22 +0000)]
* config.bfd: Add powerpc64 target.  Add powerpc64 vectors to
targ64_selvecs for 32 bit powerpc targets.
* Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
(BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
Run "make dep-am".
* Makefile.in: Regenerate.
* configure.in: Add elf64_powerpc vecs.
* configure: Regenerate.
* cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
* elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
* targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
* elf64-ppc.c: New file.
* reloc.c: Add powerpc64 relocs.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.

22 years ago * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
Andreas Schwab [Mon, 27 Aug 2001 09:16:10 +0000 (09:16 +0000)]
* elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf32_m68k_reloc_type_class): New function.
(elf_backend_reloc_type_class): Define.

22 years ago * xcoff.h (struct __rtinit): Make proper prototype for rtl.
Andreas Jaeger [Mon, 27 Aug 2001 09:08:38 +0000 (09:08 +0000)]
* xcoff.h (struct __rtinit): Make proper prototype for rtl.

22 years ago * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
Andreas Jaeger [Mon, 27 Aug 2001 08:59:08 +0000 (08:59 +0000)]
* elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_s390_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.

* elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_s390_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.

* elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
is against read-only section.
(ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(ppc_elf_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.

22 years agoDeclare BSIZE as static
Nick Clifton [Mon, 27 Aug 2001 08:52:50 +0000 (08:52 +0000)]
Declare BSIZE as static