OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
22 years ago * COPYING.NEWLIB: Mention preserved notice in specific parts.
Hans-Peter Nilsson [Sun, 18 Nov 2001 23:43:02 +0000 (23:43 +0000)]
* COPYING.NEWLIB: Mention preserved notice in specific parts.

22 years agodaily update
Alan Modra [Sun, 18 Nov 2001 23:00:04 +0000 (23:00 +0000)]
daily update

22 years agodaily update
Alan Modra [Sat, 17 Nov 2001 23:00:06 +0000 (23:00 +0000)]
daily update

22 years ago* ppc-opc.c (mfvrsave, mtvrsave): New instructions.
Matthew Green [Sat, 17 Nov 2001 22:34:17 +0000 (22:34 +0000)]
* ppc-opc.c (mfvrsave, mtvrsave): New instructions.

22 years agoFix typo in comment in last commit
Hans-Peter Nilsson [Sat, 17 Nov 2001 18:51:15 +0000 (18:51 +0000)]
Fix typo in comment in last commit

22 years ago * config/tc-cris.c (md_apply_fix3): Cast value, not pointer, in
Hans-Peter Nilsson [Sat, 17 Nov 2001 18:39:03 +0000 (18:39 +0000)]
* config/tc-cris.c (md_apply_fix3): Cast value, not pointer, in
val assignment.

22 years ago2001-11-16 Chris Demetriou <cgd@broadcom.cOm>
Chris Demetriou [Sat, 17 Nov 2001 02:59:06 +0000 (02:59 +0000)]
2001-11-16  Chris Demetriou  <cgd@broadcom.cOm>

        * gas/mips/elf-rel5.s, gas/mips/elf-rel5.s: New test
        to test symbol plus offset relocations in various ways.
        * gas/mips/mips.exp: Run new test.

22 years agodaily update
Alan Modra [Fri, 16 Nov 2001 23:00:05 +0000 (23:00 +0000)]
daily update

22 years agomerge from gcc
DJ Delorie [Fri, 16 Nov 2001 22:31:03 +0000 (22:31 +0000)]
merge from gcc

22 years ago * config/tc-m68k.c (md_apply_fix3): Change val back to a signed type.
Alan Modra [Fri, 16 Nov 2001 09:34:28 +0000 (09:34 +0000)]
* config/tc-m68k.c (md_apply_fix3): Change val back to a signed type.

22 years ago2001-11-15 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 16 Nov 2001 07:27:59 +0000 (07:27 +0000)]
2001-11-15  H.J. Lu  <hjl@gnu.org>

* config/tc-hppa.c (md_apply_fix3): Fix a typo.

22 years ago2001-11-15 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 16 Nov 2001 07:17:12 +0000 (07:17 +0000)]
2001-11-15  H.J. Lu  <hjl@gnu.org>

* config/tc-alpha.c (md_apply_fix3): Fix a typo.

22 years ago * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
Daniel Jacobowitz [Fri, 16 Nov 2001 02:56:08 +0000 (02:56 +0000)]
    * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
        local syms from discarded sections.  Update comment.

22 years agodaily update
Alan Modra [Thu, 15 Nov 2001 23:00:05 +0000 (23:00 +0000)]
daily update

22 years agoUpdate all uses of md_apply_fix to use md_apply_fix3. Make it a void function.
Nick Clifton [Thu, 15 Nov 2001 21:29:00 +0000 (21:29 +0000)]
Update all uses of md_apply_fix to use md_apply_fix3.  Make it a void function.

22 years ago2001-11-15 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 15 Nov 2001 19:10:05 +0000 (19:10 +0000)]
2001-11-15  H.J. Lu <hjl@gnu.org>

* ld-sh/ld-r-1.d: Updated.

22 years agomerge from gcc
DJ Delorie [Thu, 15 Nov 2001 19:06:06 +0000 (19:06 +0000)]
merge from gcc

22 years ago * config/tc-i386.h (md_end): Define.
Alan Modra [Thu, 15 Nov 2001 13:19:46 +0000 (13:19 +0000)]
* config/tc-i386.h (md_end): Define.
(i386_elf_emit_arch_note): Declare.
(CpuUnknown): Delete.
* config/tc-i386.c (default_arch): Constify.
(smallest_imm_type): Remove CpuUnknown test.
(md_assemble): Don't bother checking cpu_arch_flags non-zero.
(i386_elf_emit_arch_note): New function.

22 years ago * common.h (NT_ARCH): Define. Remove incorrect comment.
Alan Modra [Thu, 15 Nov 2001 13:19:10 +0000 (13:19 +0000)]
* common.h (NT_ARCH): Define.  Remove incorrect comment.

22 years ago * readelf.c: Fix warnings without terminating newline.
Andreas Schwab [Thu, 15 Nov 2001 13:14:09 +0000 (13:14 +0000)]
* readelf.c: Fix warnings without terminating newline.

22 years ago * binutils-all/objcopy.exp: Allow '? main', to suit powerpc64.
Alan Modra [Thu, 15 Nov 2001 12:51:42 +0000 (12:51 +0000)]
* binutils-all/objcopy.exp: Allow '? main', to suit powerpc64.

22 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
Alan Modra [Thu, 15 Nov 2001 12:44:03 +0000 (12:44 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
function when LDEMUL_FINISH isn't set to the same name.  Don't
call ${LDEMUL_FINISH}.
(ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
* emultempl/armelf.em (arm_elf_finish): Call
gld${EMULATION_NAME}_finish.
* emultempl/hppaelf.em (hppaelf_finish): Rename to
gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
hppaelf_layout_sections_again if necessary.
(need_laying_out): New var.
(hppaelf_layaout_sections_again): Rename to
hppaelf_layout_sections_again.  Clear need_laying_out.
(PARSE_AND_LIST_OPTIONS): Format text.

22 years ago * po/POTFILES.in: Regenerate.
Alan Modra [Thu, 15 Nov 2001 12:27:07 +0000 (12:27 +0000)]
* po/POTFILES.in: Regenerate.

22 years ago * po/SRC-POTFILES.in: Regenerate.
Alan Modra [Thu, 15 Nov 2001 12:18:27 +0000 (12:18 +0000)]
* po/SRC-POTFILES.in: Regenerate.

22 years ago * config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.
Thiemo Seufer [Thu, 15 Nov 2001 09:50:00 +0000 (09:50 +0000)]
* config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.

22 years ago * elflink.h (elf_link_input_bfd): Complain about all relocs
Alan Modra [Thu, 15 Nov 2001 09:31:25 +0000 (09:31 +0000)]
* elflink.h (elf_link_input_bfd): Complain about all relocs
against local syms from discarded sections.
(elf_reloc_symbol_deleted_p): Don't try to swap in external syms.

22 years agorevert last change.
Alan Modra [Thu, 15 Nov 2001 09:16:46 +0000 (09:16 +0000)]
revert last change.

22 years ago2001-11-14 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 15 Nov 2001 07:12:48 +0000 (07:12 +0000)]
2001-11-14  H.J. Lu  <hjl@gnu.org>

* emultempl/armelf.em (arm_elf_finish): Renamed from
gld${EMULATION_NAME}_finish.
(LDEMUL_FINISH): Set to arm_elf_finish.

22 years agogas/ChangeLog
Alan Modra [Thu, 15 Nov 2001 05:18:22 +0000 (05:18 +0000)]
gas/ChangeLog
* dwarf2dbg.c (get_frag_fix): Align last frag size.

22 years ago* elf64-sparc.c (sparc64_elf_relocate_section): Disregard
Alexandre Oliva [Thu, 15 Nov 2001 04:13:35 +0000 (04:13 +0000)]
* elf64-sparc.c (sparc64_elf_relocate_section): Disregard
overflows in the .stab section.

22 years ago2001-11-11 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 15 Nov 2001 01:34:12 +0000 (01:34 +0000)]
2001-11-11  Daniel Jacobowitz  <drow@mvista.com>

* bfd-in.h (bfd_elf32_discard_info): Add prototype.
(bfd_elf64_discard_info): Likewise.
* bfd-in2.h: Regenerate.
* elf-bfd.h (struct elf_reloc_cookie): New.
(struct elf_backend_data): Add elf_backend_discard_info,
elf_backend_ignore_discarded_relocs, and elf_backend_write_section.
(_bfd_elf32_reloc_symbol_deleted_p): Add prototype.
(_bfd_elf64_reloc_symbol_deleted_p): Likewise.
* elf32-mips.c (_bfd_elf32_mips_discard_info): New.
(_bfd_elf32_mips_ignore_discarded_relocs): New.
(_bfd_elf32_mips_write_section): New.
(elf_backend_discard_info): Define.
(elf_backend_ignore_discarded_relocs): Define.
(elf_backend_write_section): Define.
* elfcode.h (elf_bfd_discard_info): Define.
(elf_reloc_symbol_deleted_p): Define.
* elflink.h (elf_link_input_bfd): Check
elf_section_ignore_discarded_relocs.  Call
bed->elf_backend_write_section if available.
(elf_reloc_symbol_deleted_p): New.
(elf_bfd_discard_info): New.
(elf_section_ignore_discarded_relocs): New.
* elfxx-target.h (elf_backend_discard_info): Define.
(elf_backend_ignore_discarded_relocs): Define.
(elf_backend_write_section): Define.
(elfNN_bed): Add elf_backend_discard_info,
elf_backend_ignore_discarded_relocs, and
elf_backend_write_section.
* libbfd-in.h (_bfd_discard_section_stabs): Add prototype.
* libbfd.h: Regenerate.
* stabs.c (_bfd_discard_section_stabs): New.

2001-11-11  Daniel Jacobowitz  <drow@mvista.com>

* emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
(struct ld_emulation_xfer_struct): Use it.

22 years ago * binutils-all/readelf.exp: powerpc-*-eabi* is an ELF target.
Geoffrey Keating [Thu, 15 Nov 2001 01:11:09 +0000 (01:11 +0000)]
* binutils-all/readelf.exp: powerpc-*-eabi* is an ELF target.

22 years agobinutils/ChangeLog
Alan Modra [Thu, 15 Nov 2001 01:08:53 +0000 (01:08 +0000)]
binutils/ChangeLog
* doc/binutils.texi (objdump): Document ppc -M options.
gas/ChangeLog
* config/tc-ppc.c (ppc_insert_operand): Pass (ppc_cpu | ppc_size)
to operand->insert.
(md_assemble): Likewise.
gas/testsuite/ChangeLog
* gas/ppc/booke.d: Modify reloc and target matches for powerpc64.
include/opcode/ChangeLog
* ppc.h (struct powerpc_operand <insert, extract>): Add dialect param.
opcodes/ChangeLog
* ppc-opc.c (PPC64): Revert 2001-10-12. Do include PPC_OPCODE_PPC.
(insert_bat, extract_bat, insert_bba, extract_bba,
insert_bd, extract_bd, insert_bdm, extract_bdm,
insert_bdp, extract_bdp, valid_bo,
insert_bo, extract_bo, insert_boe, extract_boe,
insert_ds, extract_ds, insert_de, extract_de,
insert_des, extract_des, insert_li, extract_li,
insert_mbe, extract_mbe, insert_mb6, extract_mb6,
insert_nb, extract_nb, insert_nsi, extract_nsi,
insert_ral, insert_ram, insert_ras,
insert_rbs, extract_rbs, insert_sh6, extract_sh6,
insert_spr, extract_spr, insert_tbr, extract_tbr): Add dialect param.
(extract_bd, extract_bdm, extract_bdp,
extract_ds, extract_des,
extract_li, extract_nsi): Implement sign extension without conditional.
(insert_bdm, extract_bdm,
insert_bdp, extract_bdp, valid_bo): Handle 64 bit branch hints.
(extract_bdm, extract_bdp): Correct 32 bit validation.
(AT1_MASK, AT2_MASK): Define.
(BBOAT_MASK): Define.
(BBOATCB_MASK, BBOAT2CB_MASK, BBOATBI_MASK): Define.
(BOFM64, BOFP64, BOTM64, BOTP64): Define.
(BODNZM64, BODNZP64, BODZM64, BODZP64): Define.
(PPCCOM32, PPCCOM64): Define.
(powerpc_opcodes): Modify existing 32 bit insns with branch hints
and add new patterns to implement 64 bit branches with hints.  Move
booke instructions so they match before ppc64.
* ppc-dis.c (powerpc_dialect): Set PPC_OPCODE_64 in dialect for
64 bit default targets, and parse "32" and "64" in options.
Formatting fixes.
(print_insn_powerpc): Pass dialect to operand->extract.

22 years agodaily update
Alan Modra [Wed, 14 Nov 2001 23:00:06 +0000 (23:00 +0000)]
daily update

22 years ago2001-11-14 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 14 Nov 2001 20:07:27 +0000 (20:07 +0000)]
2001-11-14  Dave Brolley  <brolley@redhat.com>

* cgen-dis.c (count_decodable_bits): New function.
(add_insn_to_hash_chain): New function.
(hash_insn_array): Call add_insn_to_hash_chain.
(hash_insn_list): Call add_insn_to_hash_chain.

22 years ago2001-11-14 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 14 Nov 2001 19:48:54 +0000 (19:48 +0000)]
2001-11-14  Dave Brolley  <brolley@redhat.com>

* m32r-dis.c: Regenerated.
* fr30-dis.c: Regenerated.

22 years ago * elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc"
Martin Schwidefsky [Wed, 14 Nov 2001 18:48:26 +0000 (18:48 +0000)]
* elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc"
scheme to get rid of an ugly complicated test.
* elf64-s390.c (elf_s390_relocate_section): Likewise.

22 years agoUse frag_make_room() to grow the obstack.
Nick Clifton [Wed, 14 Nov 2001 17:43:32 +0000 (17:43 +0000)]
Use frag_make_room() to grow the obstack.

22 years agoDo not remove the symbol's value from the addend for fixups against local
Nick Clifton [Wed, 14 Nov 2001 14:07:26 +0000 (14:07 +0000)]
Do not remove the symbol's value from the addend for fixups against local
symbols in SEC_MERGE sections - it was not added in, in the first place.

22 years ago * cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
Andreas Jaeger [Wed, 14 Nov 2001 12:01:58 +0000 (12:01 +0000)]
* cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
x86-64 for display.

22 years ago * i386-dis.c (print_insn): Use x86-64 as option.
Andreas Jaeger [Wed, 14 Nov 2001 12:01:12 +0000 (12:01 +0000)]
* i386-dis.c (print_insn): Use x86-64 as option.

22 years ago * doc/binutils.texi (objdump): Fix description to use x86-64.
Andreas Jaeger [Wed, 14 Nov 2001 12:00:59 +0000 (12:00 +0000)]
* doc/binutils.texi (objdump): Fix description to use x86-64.

22 years agoReplace use of mkstemp with mkstemps, provided by libiberty.
Nick Clifton [Wed, 14 Nov 2001 11:56:41 +0000 (11:56 +0000)]
Replace use of mkstemp with mkstemps, provided by libiberty.

22 years agoOnly scan tail of executable for PE targets.
Nick Clifton [Wed, 14 Nov 2001 11:18:42 +0000 (11:18 +0000)]
Only scan tail of executable for PE targets.

22 years ago * dwarf2.c (struct line_head) [total_length]: Change type to
Jakub Jelinek [Wed, 14 Nov 2001 11:16:47 +0000 (11:16 +0000)]
* dwarf2.c (struct line_head) [total_length]: Change type to
bfd_vma.
(struct dwarf2_debug): Add dwarf_str_buffer and dwarf_str_size.
(struct comp_unit): Add stash and offset_size.
(read_8_bytes): Return bfd_vma.
(read_indirect_string): New.
(read_attribute): Handle DW_FORM_strp.
(decode_line_info): Support 64-bit DWARF format.
(_bfd_dwarf2_find_nearest_line): Likewise.
(parse_comp_unit): Set offset_size and stash.

22 years ago2001-11-13 Jeff Holcomb <jeffh@redhat.com>
Jeff Holcomb [Wed, 14 Nov 2001 06:24:41 +0000 (06:24 +0000)]
2001-11-13  Jeff Holcomb  <jeffh@redhat.com>

Merged from net gcc:
2001-07-30  Jeff Sturm  <jsturm@one-pont.com>
* ltcf-c.sh: Use $objext, not $ac_objext.
2001-07-27  Mark Kettenis  <kettenis@gnu.org>
* ltcf-cxx.sh: Add support for GNU.
2001-07-22  Timothy Wall  <twall@redhat.com>
* ltcf-c.sh: Don't disable shared libraries for AIX5/IA64.  Preserve
default settings if using GNU tools with that configuration.
* ltcf-cxx.sh: Ditto.
* ltcf-gcj.sh: Ditto.
2001-07-21  Michael Chastain  <chastain@redhat.com>
* ltconfig: Set max_cmd_len to a maximum of 512Kb, as it seems some
HPUX 11.0 systems have trouble with 1MB.  Mark as gcc-local.
* ltmain.sh: Mark as gcc-local.

22 years ago2001-11-13 Jeff Holcomb <jeffh@redhat.com>
Jeff Holcomb [Wed, 14 Nov 2001 05:49:24 +0000 (05:49 +0000)]
2001-11-13  Jeff Holcomb  <jeffh@redhat.com>

* Makefile.in (all-bison): Revert 2001-10-24.
Don't depend on texinfo.

22 years agobinutils/ChangeLog
Alan Modra [Wed, 14 Nov 2001 03:15:28 +0000 (03:15 +0000)]
binutils/ChangeLog
* doc/binutils.texi (objdump): Document x86 -M options.
include/ChangeLog
  * dis-asm.h (print_insn_i386): Declare.
opcodes/ChangeLog
* disassemble.c (disassembler): Call print_insn_i386.
* i386-dis.c (SUFFIX_ALWAYS): Define.
(struct dis_private): Add orig_sizeflag.
(print_insn_i386): Make it a wrapper, calling..
(print_insn): ..The old body of print_insn_i386.  Avoid longjmp
warning without using volatile by moving orig_sizeflag to priv,
and removing inbuf.  Parse disassembler_options.
(print_insn_i386_att, print_insn_i386_intel): Move initialisation
code to print_insn.
(putop): Remove #ifdef SUFFIX_ALWAYS.

22 years ago * dwarf2.c (read_attribute_value): New function to handle
Richard Henderson [Tue, 13 Nov 2001 23:37:41 +0000 (23:37 +0000)]
    * dwarf2.c (read_attribute_value): New function to handle
        DW_FORM_indirect.
        (read_attribute): Use it.

22 years ago * readelf.c (read_and_display_attr_value): New function to
Richard Henderson [Tue, 13 Nov 2001 23:36:38 +0000 (23:36 +0000)]
    * readelf.c (read_and_display_attr_value): New function to
        handle DW_FORM_indirect.
        (read_and_display_attr): Use it.

22 years agodaily update
Alan Modra [Tue, 13 Nov 2001 23:00:10 +0000 (23:00 +0000)]
daily update

22 years agoIndex: bfd/ChangeLog
Geoffrey Keating [Tue, 13 Nov 2001 20:13:30 +0000 (20:13 +0000)]
Index: bfd/ChangeLog
2001-11-11  Geoffrey Keating  <geoffk@redhat.com>

* dwarf2.c (decode_line_info): Properly deal with unknown standard
opcodes.

Index: binutils/ChangeLog
2001-11-11  Geoffrey Keating  <geoffk@redhat.com>

* readelf.c (display_debug_lines): Deal with unknown standard
opcodes.  Handle DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin,
DW_LNS_set_isa.

Index: include/elf/ChangeLog
2001-11-11  Geoffrey Keating  <geoffk@redhat.com>

* dwarf2.h (dwarf_line_number_ops): Add DWARF 3 opcodes.

22 years ago * emulparams/elf64hppa.sh (OTHER_BSS_END_SECTIONS): Add
Jeff Law [Tue, 13 Nov 2001 18:25:37 +0000 (18:25 +0000)]
    * emulparams/elf64hppa.sh (OTHER_BSS_END_SECTIONS): Add
        additional symbols referenced by newer crt0.o files from HP.

22 years agoremove diff indicators
Timothy Wall [Tue, 13 Nov 2001 14:23:41 +0000 (14:23 +0000)]
remove diff indicators

22 years agoFix tic54x testsuite failures and Lmem disassembly bugs.
Timothy Wall [Tue, 13 Nov 2001 14:22:53 +0000 (14:22 +0000)]
Fix tic54x testsuite failures and Lmem disassembly bugs.

22 years agomerge from gcc
DJ Delorie [Tue, 13 Nov 2001 03:54:15 +0000 (03:54 +0000)]
merge from gcc

22 years ago * section.c (bfd_make_section_anyway): Don't increment section_id
Alan Modra [Tue, 13 Nov 2001 03:52:25 +0000 (03:52 +0000)]
* section.c (bfd_make_section_anyway): Don't increment section_id
and the BFD's section_count if adding the section failed.
* vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway
change.

22 years ago * config/obj-elf.c (obj_elf_version): Ensure terminating NUL is
Alan Modra [Tue, 13 Nov 2001 03:24:25 +0000 (03:24 +0000)]
* config/obj-elf.c (obj_elf_version): Ensure terminating NUL is
put in note section.  Use sizeof instead of hard-coded constants.

22 years ago * i386.h (i386_optab): Add entries for "sldr", "smsw" and "str" to
Alan Modra [Tue, 13 Nov 2001 01:03:55 +0000 (01:03 +0000)]
* i386.h (i386_optab): Add entries for "sldr", "smsw" and "str" to
accept WordReg.
* i386-dis.c (grps): Change "sldt", "str", and "smsw" entries
to "sldtQ", "strQ", "smswQ" respectively; all with Ev operand
category instead of Ew.

22 years ago * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
Hans-Peter Nilsson [Mon, 12 Nov 2001 23:47:02 +0000 (23:47 +0000)]
* elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
core dump format.

22 years agodaily update
Alan Modra [Mon, 12 Nov 2001 23:01:05 +0000 (23:01 +0000)]
daily update

22 years ago * config/tc-mips.c (support_64bit_objects): Define for OBJ_ELF only.
Thiemo Seufer [Mon, 12 Nov 2001 22:22:20 +0000 (22:22 +0000)]
* config/tc-mips.c (support_64bit_objects): Define for OBJ_ELF only.
(md_longopts): Allow OPTION_MABI for ELF compilation only. RE-allow
OPTION_GP32, OPTION_GP64, OPTION_FP32 for non-ELF compilation.
Sort options a bit more logical.
(md_parse_option): Allow OPTION_32, OPTION_N32, OPTION_N64,
OPTION_MABI only for elf targets.
* gas/mips/mips.exp: Change naming of some conditionals to reflect
the object format they actually mean. Don't try mips-abi32 and
mips-abi32-pic tests for ecoff.

22 years ago * config/tc-mips.c (set_at): Add cast needed for varargs.
Thiemo Seufer [Mon, 12 Nov 2001 22:20:44 +0000 (22:20 +0000)]
* config/tc-mips.c (set_at): Add cast needed for varargs.
(load_register): Likewise.
(macro): Likewise. Some code reformatting.
(macro2): Add cast needed for varargs.
(mips16_macro): Likewise.

22 years ago * config/tc-mips.c (md_assemble): Remove superflous casts.
Thiemo Seufer [Mon, 12 Nov 2001 22:19:30 +0000 (22:19 +0000)]
* config/tc-mips.c (md_assemble): Remove superflous casts.
(append_insn): Likewise.
(mips16_macro_build): Likewise.
(macro): Likewise.
(mips16_ip): Likewise.
(s_cpload): Likewise.
(mips_relax_frag): Likewise.

22 years ago2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
Jeff Johnston [Mon, 12 Nov 2001 21:07:42 +0000 (21:07 +0000)]
2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>

        * COPYING.NEWLIB: Add BSD-style license/copyright blurb for my work.

22 years ago * config/tc-mips.c (mips_abi_level): Move in front of
Thiemo Seufer [Mon, 12 Nov 2001 16:54:54 +0000 (16:54 +0000)]
* config/tc-mips.c (mips_abi_level): Move in front of
mips_set_options.
(mips_set_options): Add members gp32, fp32, abi.
(file_mips_gp32): New flag.
(file_mips_fp32): New flag.
(mips_opts): Initialize the new members.
(mips_gp32): Remove.
(mips_fp32): Remove.
(HAVE_32BIT_GPRS): Use the new values from mips_opts.
(HAVE_32BIT_FPRS): Likewise.
(HAVE_NEWABI): Likewise.
(HAVE_64BIT_OBJECTS): Likewise.
(md_begin): Likewise. Save default (file) values.
(md_parse_option): Use the new values from mips_opts.
(s_mipsset): Likewise. Fix logic to keep the ABI selection if
possible. Let .set mipsN work together with .set push/pop.
Enhance error messages.
(mips_elf_final_processing): Use file_mips_* for header processing.

22 years agoFix definitions of wddata[bwl].
Nick Clifton [Mon, 12 Nov 2001 16:36:06 +0000 (16:36 +0000)]
Fix definitions of wddata[bwl].

22 years agoOnly compare the tail end of the two binary files produced in order to avoid
Nick Clifton [Mon, 12 Nov 2001 16:26:17 +0000 (16:26 +0000)]
Only compare the tail end of the two binary files produced in order to avoid
date stamp present in PE binaries.

22 years agoUse mkstemp in place of mktemp.
Nick Clifton [Mon, 12 Nov 2001 16:17:39 +0000 (16:17 +0000)]
Use mkstemp in place of mktemp.

22 years agoNew symbol: DATA_START_SYMBOLS
Nick Clifton [Mon, 12 Nov 2001 14:39:11 +0000 (14:39 +0000)]
New symbol: DATA_START_SYMBOLS

22 years ago * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
Alan Modra [Mon, 12 Nov 2001 00:20:16 +0000 (00:20 +0000)]
* Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
* Makefile.in: Regenerate.

22 years ago2001-11-11 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 11 Nov 2001 23:51:36 +0000 (23:51 +0000)]
2001-11-11  H.J. Lu <hjl@gnu.org>

* elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
_bfd_elf_strtab_size instead of _bfd_stringtab_size.

* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
dynstr type to `struct elf_strtab_hash *'.

22 years agodaily update
Alan Modra [Sun, 11 Nov 2001 23:00:05 +0000 (23:00 +0000)]
daily update

22 years ago * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
Hans-Peter Nilsson [Sun, 11 Nov 2001 22:18:01 +0000 (22:18 +0000)]
* elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
size_t.  Rename second i to j.

22 years agoClarify length reference in comment
Timothy Wall [Sun, 11 Nov 2001 15:45:34 +0000 (15:45 +0000)]
Clarify length reference in comment

22 years ago * ld-mmix/sec-5.d (Sections): Add whitespace missing in commit.
Hans-Peter Nilsson [Sun, 11 Nov 2001 11:47:37 +0000 (11:47 +0000)]
* ld-mmix/sec-5.d (Sections): Add whitespace missing in commit.

22 years ago * gas/mmix/bspec-2.d, gas/mmix/bspec-1.d, gas/mmix/comment-1.d:
Hans-Peter Nilsson [Sun, 11 Nov 2001 11:29:22 +0000 (11:29 +0000)]
* gas/mmix/bspec-2.d, gas/mmix/bspec-1.d, gas/mmix/comment-1.d:
Prune and generalize, adjusting to generic ELF file layout changes.

22 years agodaily update
Alan Modra [Sat, 10 Nov 2001 23:00:05 +0000 (23:00 +0000)]
daily update

22 years ago * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
Jeff Law [Sat, 10 Nov 2001 15:53:31 +0000 (15:53 +0000)]
    * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.

22 years ago * avr.h: Update for new devices.
Denis Chertykov [Sat, 10 Nov 2001 09:40:53 +0000 (09:40 +0000)]
* avr.h: Update for new devices.

22 years ago * config/tc-avr.c (mcu_types): Update for new devices.
Denis Chertykov [Sat, 10 Nov 2001 09:35:53 +0000 (09:35 +0000)]
* config/tc-avr.c (mcu_types): Update for new devices.

22 years ago2001-11-09 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sat, 10 Nov 2001 01:17:58 +0000 (01:17 +0000)]
2001-11-09  H.J. Lu <hjl@gnu.org>

* ld-discard/discard.exp: New. Test ld discard.
* ld-discard/discard.ld: Likewise.
* ld-discard/exit.s: Likewise.
* ld-discard/extern.d: Likewise.
* ld-discard/extern.s: Likewise.
* ld-discard/start.d: Likewise.
* ld-discard/start.s: Likewise.
* ld-discard/static.d: Likewise.
* ld-discard/static.s: Likewise.

22 years ago * unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
Jeff Law [Sat, 10 Nov 2001 01:04:39 +0000 (01:04 +0000)]
    * unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
        (unw_print_grmask, unw_print_frmask, unw_print_abreg): Likewise.
        (unw_print_xyreg, unw_decode_x1, unw_decode_x2): Likewise.
        (unw_decode_x3, unw_decode_r1, unw_decode_r2): Likewise.
        (unw_decode_r3, unw_decode_p1, unw_decode_p2_p5): Likewise.
        (unw_decode_p6, unw_decode_p7_p10, unw_decode_b1): Likewise.
        (unw_decode_b2, unw_decode_b3_b4): Likewise.

22 years ago * readelf.c (get_elf_class): Fix ISO portability glitch.
Jeff Law [Sat, 10 Nov 2001 00:55:48 +0000 (00:55 +0000)]
    * readelf.c (get_elf_class): Fix ISO portability glitch.
        (get_data_encoding, get_osabi_name, request_dump): Likewise.

22 years ago * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
Alan Modra [Sat, 10 Nov 2001 00:23:35 +0000 (00:23 +0000)]
* elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
relocs into shared libs.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elf.c (bfd_section_from_r_symndx): New function.
* elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
(struct sym_sec_cache): New.
(bfd_section_from_r_symndx): Declare.
(struct bfd_elf_section_data): Change local_dynrel type to PTR.
* elflink.h (elf_link_input_bfd): Don't test for removed linkonce
relocs when relocatable.  Don't zero entire reloc, just zero the
addend and sym.
* elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
(elf_i386_link_hash_table_create): Init it.
(elf_i386_check_relocs): Track dynamic relocs needed for local
syms on a per-section basis as we do for globals.
(elf_i386_gc_sweep_hook): Update for local_dynrel change.
Remove dead code.
(allocate_dynrelocs): Warning fix.
(elf_i386_size_dynamic_sections): Don't allocate relocs when
section has been discarded.
(elf_i386_relocate_section): Don't copy STN_UNDEF relocs
into shared libs.
* elf32-hppa.c: Likewise.
* elf32-s390.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.

22 years agodaily update
Alan Modra [Fri, 9 Nov 2001 23:00:05 +0000 (23:00 +0000)]
daily update

22 years ago * ld.texinfo: Use @command for commands, @option for options.
Stephane Carrez [Fri, 9 Nov 2001 20:30:40 +0000 (20:30 +0000)]
* ld.texinfo: Use @command for commands, @option for options.
* Makefile.am (POD2MAN): Use 'GNU Development Tools' for
the page man title.
* Makefile.in: Rebuild.

22 years ago * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for
Stephane Carrez [Fri, 9 Nov 2001 20:24:02 +0000 (20:24 +0000)]
* doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for
the page man title.
* doc/Makefile.in: Rebuild.
* doc/as.texinfo: Do not put man SEEALSO in document;
Use @command for commands, @option for options; Reorganize usage
to clearly identify target specific options.

22 years ago * cgen-asm.c (cgen_parse_keyword): If the keyword is too big to
Richard Sandiford [Fri, 9 Nov 2001 18:05:30 +0000 (18:05 +0000)]
* cgen-asm.c (cgen_parse_keyword): If the keyword is too big to
fit in the buffer, try to match the empty keyword.

22 years agoFix badly placed #if 0...
Nick Clifton [Fri, 9 Nov 2001 10:21:22 +0000 (10:21 +0000)]
Fix badly placed #if 0...

22 years ago* configure.in (--enable-languages): Be more permissive about
DJ Delorie [Fri, 9 Nov 2001 02:21:21 +0000 (02:21 +0000)]
* configure.in (--enable-languages): Be more permissive about
syntax.  Check for empty lists better.  Warn about $LANGUAGES.

22 years agodaily update
Alan Modra [Thu, 8 Nov 2001 23:00:04 +0000 (23:00 +0000)]
daily update

22 years ago * config/tc-mips.c (mips_force_relocation): Remove duplicate code.
Thiemo Seufer [Thu, 8 Nov 2001 19:32:24 +0000 (19:32 +0000)]
* config/tc-mips.c (mips_force_relocation): Remove duplicate code.

22 years ago* elf32-s390: Major rework that introduces all recent changes to
Martin Schwidefsky [Thu, 8 Nov 2001 18:45:46 +0000 (18:45 +0000)]
* elf32-s390: Major rework that introduces all recent changes to
the s390 backends.  Get a closer match to elf32-i386.
(elf_s390_relocate_section): Make use of dynamic section short-cuts.
Localise vars, and delay setting.  Better error reporting, replace
BFD_ASSERT with abort.  Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
symbol is not defined in the regular object file and tread the weak
definition as the normal one.  Don't discard relocs for undefweak or
undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
test for avoided copy relocs.  Reinstate fudge for unresolved relocs
in debugging sections.
(elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc.  Don't do copy
reloc processing for weakdefs.  Remove redundant casts and aborts.
Delay setting of vars until needed.  Move creation of dynamic symbols
and allocation of .plt and .rela.plt to allocate_dynrelocs.  Replace
BFD_ASSERT with abort.  Discard .plt entries for everything with
plt.refcount <= 0.
(elf_s390_check_relocs):  Don't allocate space for dynamic relocs,
.got or .relgot here but do it in allocate_dynrelocs.  Reference count
possible .plt and .got entries.  Don't test input section SEC_READONLY
here to try to avoid copy relocs, and keep dyn_relocs regardless of
ELF_LINK_NON_GOT_REF.  Don't set DF_TEXTREL here.  Delay setting of
variables until needed.  Remove separate switch stmt for creating .got
section.  Initialise local_got_refcounts to 0.  Cache pointer to
"sreloc" section in elf_section_data. Tweak condition under which .got
created.  Report files with bad relocation section names.
(elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
have been forced local.  Use same test to decide if we can use a
relative reloc for got as elf_s390_relocate_section.  Expand SHN_UNDEF
comment.  Move expressions out of function calls.  Replace BFD_ASSERT
with abort.
(elf_s390_finish_dynamic_sections): Migrate common code out of switch
statement.  Replace BFD_ASSERT with abort.
(elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
to "ibfd".  Allocate space for local dyn relocs.  Use DF_TEXTREL flag
instead of looking up section names for DT_TEXTREL.  Replace
BFD_ASSERT with abort.  Zero out the dynamic allocated content space.
Add a comment to remind us that one day this ought to be fixed.
(struct elf_s390_link_hash_entry): Rename "root" to "elf".
(struct elf_s390_link_hash_table): Likewise.
(elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
rid of unnecessary casts.
(struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
Remove "section" field.
(elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
Reference count possible .plt entries.  Don't deallocate .got and
.relgot space here.
(struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
Update comment.
(struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
dyn_relocs.
(elf_s390_discard_copies):  Delete.
(elf_s390_link_hash_traverse): Delete.
(bfd_elf32_bfd_final_link): Delete.  (ie. use regular final link
rather than gc variety).
(struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
srelplt, sdynbss, srelbss fields.
(elf_s390_link_hash_table_create): Init them.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(allocate_dynrelocs): New function.
(create_got_section): New function.
(elf_backend_can_refcount): Define.
(elf_backend_copy_indirect_symbol): Define.
(elf_s390_copy_indirect_symbol): New function.
(elf_s390_create_dynamic_sections): New function.
(readonly_dynrelocs): New function.
* elf64-s390x: Likewise.

22 years agodaily update
Alan Modra [Wed, 7 Nov 2001 23:00:06 +0000 (23:00 +0000)]
daily update

22 years ago * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
Jakub Jelinek [Wed, 7 Nov 2001 16:50:38 +0000 (16:50 +0000)]
* Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
(BFD32_BACKENDS_CFILES): Add elf-strtab.c.
(elf-strtab.lo): Add rule.
* Makefile.in: Rebuilt.
* configure.in (elf): Add elf-strtab.lo.
* configure: Rebuilt.
* elf-bfd.h (elf_strtab_hash): Forward declare.
(struct elf_link_hash_table): Change dynstr type to
struct elf_strtab_hash *.
(struct elf_obj_tdata): Change strtab_ptr type to
struct elf_strtab_hash *.
(_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
_bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
_bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
_bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
_bfd_elf_strtab_finalize): New prototypes.
* elf-strtab.c: New file.
* elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
when forcing dynamic symbol to local.
(elf_link_create_dynamic_sections): Call
_bfd_elf_strtab_init instead of elf_stringtab_init.
(elf_link_record_local_dynamic_symbol): Likewise, change
dynstr type.  Use _bfd_elf_strtab functions instead of
_bfd_stringtab calls.
(size_dynamic_sections): Use _bfd_elf_strtab functions instead of
_bfd_stringtab calls.  For DT_RUNPATH and Verdaux vda_name fields,
call _bfd_elf_strtab_addref.  Call elf_finalize_dynstr.
(elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
(elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
dynamic symbol to local.
(elf_link_assign_sym_version): Likewise.
(elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
_bfd_stringtab_emit.
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
type.  Call _bfd_elf_strtab functions instead of
_bfd_stringtab functions.
* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
* elf.c (_bfd_elf_init_reloc_shdr): Likewise.
(elf_fake_sections): Likewise.
(assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
on shstrtab hash table, call _bfd_elf_strtab_addref on each section
name in the output.  Call _bfd_elf_strtab_finalize and
use _bfd_elf_strtab_offset to finalize sh_name section header fields.
(_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
instead of _bfd_stringtab_size.
(prep_headers): Change shstrtab type.
Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.

22 years ago * readelf.c (debug_str, debug_str_size): New.
Jakub Jelinek [Wed, 7 Nov 2001 16:14:09 +0000 (16:14 +0000)]
* readelf.c (debug_str, debug_str_size): New.
(display_debug_abbrev): If no abbrevs were read, skip the CU.
Call free_abbrevs.
(read_and_display_addr): Handle DW_FORM_strp.
(display_debug_info): Read .debug_str section if present,
so that DW_FORM_strp can be handled.
Fix test for non-existant .debug_abbrev section.

22 years ago * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
Alan Modra [Wed, 7 Nov 2001 04:07:09 +0000 (04:07 +0000)]
* elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
bad symtab segfault.  Formatting and warning fixes.  Improve
error message for internationalisation.

22 years agodaily update
Alan Modra [Tue, 6 Nov 2001 23:00:06 +0000 (23:00 +0000)]
daily update

22 years ago2001-11-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
Eric Christopher [Tue, 6 Nov 2001 21:39:09 +0000 (21:39 +0000)]
2001-11-06  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

* config/tc-mips.c (my_getSmallParser): Fix small parser bug.