OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
19 years ago2005-05-19 Paul Brook <paul@codesourcery.com>
Paul Brook [Thu, 19 May 2005 20:25:24 +0000 (20:25 +0000)]
2005-05-19  Paul Brook  <paul@codesourcery.com>

* configure.in: Rewrite misleading error message when requested
language cannot be built.
* configure: Regenerate.

19 years ago * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
Alan Modra [Thu, 19 May 2005 08:27:34 +0000 (08:27 +0000)]
* config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.

19 years ago * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
Alan Modra [Thu, 19 May 2005 08:26:56 +0000 (08:26 +0000)]
* elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
init_offset.  Add init_got_refcount, init_plt_refcount,
init_got_offset and init_plt_offset.
* elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change.
(_bfd_elf_link_hash_hide_symbol): Likewise.
(_bfd_elf_link_hash_table_init): Likewise.
* elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
* elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise.
(bfd_elf_size_dynamic_sections): Likewise.
* elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns.
(LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30,
LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete.
(ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30,
LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define.
(struct plt_entry): New.
(ppc_elf_link_hash_table_create): Set new init_plt fields.
(ppc_elf_copy_indirect_symbol): Handle merge of plt plist.  Don't
use _bfd_elf_link_hash_copy_indirect.
(update_plt_info, find_plt_ent): New functions.
(ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend
and adjust for use of plt list rather than refcount.
(ppc_elf_gc_sweep_hook): Likewise.
(ppc_elf_tls_optimize): Likewise.
(ppc_elf_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.  Adjust R_PPC_PLTREL24 addends
when performing a relocatable link.
(ppc_elf_finish_dynamic_symbol): Likewise.  Write .glink stubs here..
(ppc_elf_finish_dynamic_sections): ..rather than here.  Use new
pic resolver stub.

19 years ago * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
Alan Modra [Thu, 19 May 2005 07:02:14 +0000 (07:02 +0000)]
* config/tc-ppc.c (parse_cpu): Handle "-mpower5".
(md_show_usage): Document it.
(ppc_setup_opcodes): Insert POWER5 mnemonics.
* doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".

19 years ago * ppc-dis.c (powerpc_dialect): Handle "-Mpower5".
Alan Modra [Thu, 19 May 2005 07:00:40 +0000 (07:00 +0000)]
* ppc-dis.c (powerpc_dialect): Handle "-Mpower5".
(print_ppc_disassembler_options): Document it.
* ppc-opc.c (SCV_LEV): Define.
(LEV): Allow optional operand.
(POWER5): Define.
(powerpc_opcodes): Extend "sc".  Adjust "svc" and "svcl".  Add
"hrfid", "popcntb", "fsqrtes", "fsqrtes.", "fre" and "fre.".

19 years ago * ppc.h (PPC_OPCODE_POWER5): Define.
Alan Modra [Thu, 19 May 2005 06:59:36 +0000 (06:59 +0000)]
* ppc.h (PPC_OPCODE_POWER5): Define.

19 years ago * elf.c (assign_file_positions_for_segments): Use maximum of
Alan Modra [Thu, 19 May 2005 06:51:01 +0000 (06:51 +0000)]
* elf.c (assign_file_positions_for_segments): Use maximum of
maxpagesize and section alignment when adjusting initial
segment offset and section offsets.

19 years agogas/
Jan Beulich [Thu, 19 May 2005 06:32:01 +0000 (06:32 +0000)]
gas/
2005-05-19  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
relocations in unwind section.

gas/testsuite/
2005-05-19  Jan Beulich  <jbeulich@novell.com>

* gas/ia64/reloc-uw.s: New.
* gas/ia64/reloc-uw.d: New.
* gas/ia64/reloc-uw-ilp32.d: New.
* gas/ia64/ia64.exp: Run new test.

19 years ago2005-05-19 Kelley Cook <kcook@gcc.gnu.org>
Kelley Cook [Thu, 19 May 2005 03:50:19 +0000 (03:50 +0000)]
2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>

* accross.m4: Delete file.

19 years ago2005-05-19 Kelley Cook <kcook@gcc.gnu.org>
Kelley Cook [Thu, 19 May 2005 03:18:04 +0000 (03:18 +0000)]
2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in:  Regenerate.

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

19 years agobinutils/ChangeLog
Ben Elliston [Wed, 18 May 2005 22:42:09 +0000 (22:42 +0000)]
binutils/ChangeLog
* readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
value of DW_ATE_GNU_decimal_float.

include/elf/ChangeLog
* dwarf2.h (enum dwarf_type): Assign DW_ATE_GNU_decimal_float from
the user-defined encoding space pending inclusion in the standard.

19 years ago * bfd/elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
Zack Weinberg [Wed, 18 May 2005 16:48:15 +0000 (16:48 +0000)]
* bfd/elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
unconditional.
* include/elf/arm.h: Make all #ifndef OLD_ARM_ABI blocks
unconditional, delete all #ifdef OLD_ARM_ABI blocks.

19 years ago2005-05-18 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 18 May 2005 13:41:59 +0000 (13:41 +0000)]
2005-05-18  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (group_signature): Check if the symbol table section is
correct.

19 years ago(md_apply_fix3): Only use the insertion routine if one exists.
Nick Clifton [Wed, 18 May 2005 09:42:13 +0000 (09:42 +0000)]
(md_apply_fix3): Only use the insertion routine if one exists.
Ignore any error messages it may produce, just allow it to perform the insertion.

19 years agogas/testsuite/
Jan Beulich [Wed, 18 May 2005 06:12:08 +0000 (06:12 +0000)]
gas/testsuite/
2005-05-18  Jan Beulich  <jbeulich@novell.com>

* gas/all/altmacro.s: Parenthesize operand of %.

19 years agoinclude/elf:
Zack Weinberg [Wed, 18 May 2005 05:40:12 +0000 (05:40 +0000)]
include/elf:
* arm.h: Import complete list of official relocation names
and numbers from AAELF.  Define FAKE_RELOCs for old names.
Remove a few old names no longer used anywhere.

bfd:
* elf32-arm.c: Wherever possible, use official reloc names
from AAELF.
(elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
(elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
(elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
(elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
(elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
(elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
Add many new relocations from AAELF.
(elf32_arm_howto_from_type): Update to match.
(elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
(elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
(elf32_arm_final_link_relocate): Add support for
R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6.  Remove
case entries redundant with default.

* reloc.c: Reorganize ARM relocations.  Add Thumb
assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
* bfd-in2.h, libbfd.h: Regenerate.

opcodes:
* arm-dis.c (thumb_opcodes): Add disassembly for V6T2 16-bit
instructions.  Adjust disassembly of some opcodes to match
unified syntax.
(thumb32_opcodes): New table.
(print_insn_thumb): Rename print_insn_thumb16; don't handle
two-halfword branches here.
(print_insn_thumb32): New function.
(print_insn): Choose among print_insn_arm, print_insn_thumb16,
and print_insn_thumb32.  Be consistent about order of
halfwords when printing 32-bit instructions.

gas:
* hash.c (hash_lookup): Add len parameter.  All callers changed.
(hash_find_n): New interface.
* hash.h: Prototype hash_find_n.
* sb.c: Include as.h.
(scrub_from_sb, sb_to_scrub, scrub_position): New statics.
(sb_scrub_and_add_sb): New interface.
* sb.h: Prototype sb_scrub_and_add_sb.
* input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.

* config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
reference to BFD_RELOC_ARM_GOT12 which is never generated.
* config/tc-arm.c: Rewrite, adding Thumb-2 support.

gas/testsuite:
* gas/arm/arm.exp: Convert all existing "gas_test" tests to
"run_dump_test" tests.  Run more tests unconditionally.  Run new tests.
* gas/arm/arch4t.s, gas/arm/arch6zk.s, gas/arm/arm3.s, gas/arm/arm6.s
* gas/arm/arm7dm.s, gas/arm/bignum1.s, gas/arm/float.s
* gas/arm/immed.s, gas/arm/iwmmxt.s, gas/arm/offset.s, gas/arm/thumb.s:
Adjust to work as a dump test.
* gas/arm/arch4t.d, gas/arm/arch6zk.d, gas/arm/arm3.d, gas/arm/arm6.d
* gas/arm/arm7dm.d, gas/arm/bignum1.d, gas/arm/float.d
* gas/arm/immed.d, gas/arm/iwmmxt.d, gas/arm/offset.d, gas/arm/thumb.d:
New files.

* gas/arm/armv1-bad.l, gas/arm/armv1-bad.s: Remove tests for
diagnostics that don't happen in the first pass anymore.

* gas/arm/iwmmxt-bad.l, gas/arm/r15-bad.l, gas/arm/req.l
* gas/arm/vfp-bad.l:
Update expected diagnostics.
* gas/arm/pic.d: Update expected reloc name.
* gas/arm/thumbv6.d: CPY no longer appears in disassembly.
* gas/arm/r15-bad.s: Avoid two-argument mul.
* gas/arm/req.s: Adjust comments.
* gas/arm/maverick.d, gas/arm/maverick.s: Avoid inappropriate
use of PC.

* gas/arm/macro-1.d, gas/arm/macro1.s
* gas/arm/t16-bad.l, gas/arm/t16-bad.s
* gas/arm/tcompat.d, gas/arm/tcompat.s
* gas/arm/tcompat2.d, gas/arm/tcompat2.s
* gas/arm/thumb32.d, gas/arm/thumb32.s
New test pair.

ld/testsuite:
* ld-arm/mixed-app.d: Adjust expected disassembly a little.

19 years agodaily update
Alan Modra [Wed, 18 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago * elf.c (_bfd_elf_write_object_contents): Check for non-NULL
Daniel Jacobowitz [Tue, 17 May 2005 19:44:55 +0000 (19:44 +0000)]
* elf.c (_bfd_elf_write_object_contents): Check for non-NULL
elf_shstrtab.
* format.c (bfd_check_format_matches): Set output_has_begun
for both_direction.
* section.c (bfd_set_section_contents): Use bfd_write_p.  Remove
special case for both_direction.

19 years agobinutils/
Daniel Jacobowitz [Tue, 17 May 2005 19:43:52 +0000 (19:43 +0000)]
binutils/
* doc/Makefile.am (config.texi): Don't use $<.
* doc/Makefile.in: Regenerated.
ld/
* Makefile.am (ldver.texi): Don't use $<.
* Makefile.in: Regenerated.
gas/
* doc/Makefile.am (gasver.texi): Don't use $<.
* doc/Makefile.in: Regenerated.

19 years ago * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
Daniel Jacobowitz [Tue, 17 May 2005 19:41:29 +0000 (19:41 +0000)]
* Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
$(srcdir) before $(BFDDIR)/doc.
* Makefile.in: Regenerated.

19 years ago(group_signature): Check for a group section which is actually a (corrupt)
Nick Clifton [Tue, 17 May 2005 18:08:08 +0000 (18:08 +0000)]
(group_signature): Check for a group section which is actually a (corrupt)
symbol table section in disguise and prevent an infinite loop from occurring.

19 years ago2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 17 May 2005 17:26:27 +0000 (17:26 +0000)]
2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

* elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
2005-02-16.

19 years ago2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 17 May 2005 17:23:37 +0000 (17:23 +0000)]
2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

* elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original
predicate on slot 0 only if slot 0 isn't br.

19 years agobfd/
H.J. Lu [Tue, 17 May 2005 16:43:02 +0000 (16:43 +0000)]
bfd/

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

PR 797
* elf32-i386.c (elf_i386_size_dynamic_sections): Also remove
empty sdynbss section.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.

ld/

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

PR 797
* ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
take take a bfd_boolean, mark_used. Ignore assert failure if
mark_used is TRUE.
(exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
(exp_fold_tree_no_dot): Updated to take a bfd_boolean,
mark_used and pass down.
(fold_unary): Likewise.
(fold_binary): Likewise.
(fold_trinary): Likewise.
(exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
(exp_trinop): Likewise.
(exp_unop): Likewise.
(exp_nameop): Likewise.
(exp_get_vma): Likewise.
(exp_get_fill): Likewise.
(exp_get_abs_int): Likewise.
(fold_name): Likewise. Set SEC_KEEP in output section flags.
(exp_mark_used_section): New.

* ldexp.h (exp_mark_used_section): New.

* ldlang.c (lang_output_section_statement_lookup_1): Set the
ignored field to FALSE.
(lang_mark_used_section_1): New.
(lang_mark_used_section): Call lang_mark_used_section_1.
(strip_excluded_output_sections): Call lang_mark_used_section
and check for unused sections.
(lang_size_sections_1): Skip an output section if it should
be ignored.
(lang_do_assignments_1): Likewise.
(lang_process): Don't call lang_mark_used_section here.

* ldlang.h (lang_output_section_statement_type): Change
all_input_readonly to bitfield. Add ignored.

ld/testsuite/

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

PR 797
* empty-aligned.d: New file.
* empty-aligned.exp: Likewise.
* empty-aligned.s: Likewise.
* empty-aligned.t: Likewise.

19 years ago(bfd_section_from_shdr): Add sanity check when parsing dynamic sections.
Nick Clifton [Tue, 17 May 2005 16:23:26 +0000 (16:23 +0000)]
(bfd_section_from_shdr): Add sanity check when parsing dynamic sections.

19 years agoIgnore CRs
Nick Clifton [Tue, 17 May 2005 16:08:54 +0000 (16:08 +0000)]
Ignore CRs

19 years agoAdfd entry for patch to symbols.c that was accidentally omitted.
Nick Clifton [Tue, 17 May 2005 15:59:38 +0000 (15:59 +0000)]
Adfd entry for patch to symbols.c that was accidentally omitted.

19 years ago(GENERATE_PIE_SCRIPT): Define as "yes".
Nick Clifton [Tue, 17 May 2005 15:16:55 +0000 (15:16 +0000)]
(GENERATE_PIE_SCRIPT): Define as "yes".

19 years agoldlang.c (print_assignment): Do not rely upon a valid result having a section
Nick Clifton [Tue, 17 May 2005 14:39:18 +0000 (14:39 +0000)]
ldlang.c (print_assignment): Do not rely upon a valid result having a section
  associated with it.
elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle the situation
  where a symbols's section is not known but a section relative R_ARM_RELATIVE
  reloc has to be generated for the Symbian OS.

19 years ago* ldlang.c (Scan_for_self_assignment): Check an assignment tree to
Nick Clifton [Tue, 17 May 2005 14:35:21 +0000 (14:35 +0000)]
* ldlang.c (Scan_for_self_assignment): Check an assignment tree to
see if the same value is being used on the rhs as on the lhs.
(print_assignment): Call scan_for_self_assignment and if it
returns true, do no display the result of the computation but
instead just the final value of the symbol on the lhs.
* ld.texinfo: Document this behaviour and provide an example of
when it will happen.

19 years agogas/
Jan Beulich [Tue, 17 May 2005 14:02:30 +0000 (14:02 +0000)]
gas/
2005-05-17  Jan Beulich  <jbeulich@novell.com>

* read.c (_find_end_of_line): New.
(find_end_of_line): New.
(HANDLE_CONDITIONAL_ASSEMBLY): Use it.
(read_a_source_file): Use it.
(s_globl): Use it.
(s_macro): Use it.
(get_line_sb): Use it.
(s_errwarn): Replace discard_rest_of_line by ignore_rest_of_line.
(s_comm_internal): Likewise.
(s_lsym): Likewise.
(s_macro): Likewise.
(s_ignore): Use ignore_rest_of_line.
* read.h (find_end_of_line): Prototype.
(discard_rest_of_line): Remove prototype. #define to
ignore_rest_of_line.

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

* gas/mmix/err-byte1.s: Adjust expected error text on line 10.

19 years ago * elf32-ppc.c (LIS_11. LIS_12): Define.
Alan Modra [Tue, 17 May 2005 13:55:02 +0000 (13:55 +0000)]
* elf32-ppc.c (LIS_11. LIS_12): Define.
(LWZU_0_X_12, LWZ_0_X_12, LWZ_12_4_12, LWZ_12_X_12): Define.
(ppc_elf_finish_dynamic_sections): Provide non-pic plt call stub
for --data-plt when building non-pie executables.

19 years ago* config/tc-v850,h (TC_FIX_TYPE): Define. (TC_INIT_FIX_TYPE): Define.
Nick Clifton [Tue, 17 May 2005 11:56:13 +0000 (11:56 +0000)]
* config/tc-v850,h (TC_FIX_TYPE): Define. (TC_INIT_FIX_TYPE): Define.
* config/tc-v850.c (md_assemble): When creating a fix record the operand in the
    tc_fix_data field.
    (md_apply_fix3): When applying a resolved fix use the operand's insertion
    procedure to store the value, if the operand has been recorded.
* gas/v850/split-lo16.s: Add test for a lo() pseudo reloc corrupting an ld.w
    instruction.
* gas/v850/split-lo16.d: Add expected, correct (ie not corrupt) output.

19 years ago(v850_elf_relocate_section): Move code to test for the presence of a symbol
Nick Clifton [Tue, 17 May 2005 10:22:40 +0000 (10:22 +0000)]
(v850_elf_relocate_section): Move code to test for the presence of a symbol
table to just before the symbol table is actually used.

19 years agodaily update
Alan Modra [Tue, 17 May 2005 00:00:07 +0000 (00:00 +0000)]
daily update

19 years agomerge from gcc
DJ Delorie [Mon, 16 May 2005 18:02:47 +0000 (18:02 +0000)]
merge from gcc

19 years ago2005-05-16 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 16 May 2005 17:55:55 +0000 (17:55 +0000)]
2005-05-16  H.J. Lu  <hongjiu.lu@intel.com>

PR 834
* elfxx-ia64.c (elfNN_ia64_relax_br): New.
(elfNN_ia64_relax_section): Use it.

19 years agodaily update
Alan Modra [Mon, 16 May 2005 00:00:07 +0000 (00:00 +0000)]
daily update

19 years agomerge from gcc
DJ Delorie [Sun, 15 May 2005 18:31:15 +0000 (18:31 +0000)]
merge from gcc

19 years ago./
Daniel Jacobowitz [Sun, 15 May 2005 18:19:45 +0000 (18:19 +0000)]
./
* ylwrap: Import from Automake 1.9.5.
binutils/
* acinclude.m4: Remove obsolete code.
* configure.in: Update AC_PREREQ.
* doc/Makefile.am (binutils_TEXINFOS): Define.
(config.texi): Depend on distributed files instead of built
files.
(binutils.dvi, binutils.info): Remove unnecessary rules.
(DISTCLEANFILES): Remove.
(install-data-local): Renamed from install.
(info-local): Renamed from info.
* Makefile.in, aclocal.m4, config.in, configure,
doc/Makefile.in: Regenerated.
gas/
* Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap
invocation.
* Makefile.in: Regenerated.
ld/
* Makefile.am (AM_MAKEINFOFLAGS): Define.
(TEXI2DVI): Define.
(ldver.texi): Depend on distributed files instead of built files.
(ld.info): Include $(srcdir) in the rule target.  Remove actions.
(ld.dvi): Remove actions.
(MAINTAINERCLEANFILES): Add configdoc.texi.
(CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
(install-data-local): Renamed from install.
(Makefile): Remove explicit dependency.
* acinclude.m4: Remove obsolete code.
* configure.in: Update AC_PREREQ.  Remove extra $CONFIG_SHELL.
* Makefile.in, aclocal.m4, config.in, configure: Regenerated.
gdb/
* Makefile.in (.y.c): Update ylwrap invocation.

19 years agomerge from gcc
DJ Delorie [Sun, 15 May 2005 17:25:43 +0000 (17:25 +0000)]
merge from gcc

19 years agodaily update
Alan Modra [Sun, 15 May 2005 00:00:04 +0000 (00:00 +0000)]
daily update

19 years ago* elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
Mark Kettenis [Sat, 14 May 2005 13:49:42 +0000 (13:49 +0000)]
* elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
of basename.

19 years agoinclude/elf/
Alan Modra [Sat, 14 May 2005 05:07:20 +0000 (05:07 +0000)]
include/elf/
* ppc.h (DT_PPC_GOT): Rename from DT_PPC_GLINK.
bfd/
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT,
not DT_PPC_GLINK.
(ppc_elf_finish_dynamic_sections): Likewise.
binutils/
* readelf.c (get_ppc_dynamic_type): Display DT_PPC_GOT, not
DT_PPC_GLINK.

19 years ago 2005-05-13 Fred Fish <fnf@specifixinc.com>
Fred Fish [Sat, 14 May 2005 01:38:14 +0000 (01:38 +0000)]
2005-05-13  Fred Fish  <fnf@specifixinc.com>
* readelf.c: Fix a couple of obvious comment typos,
'debug_str' -> 'debug_ranges' and proecess' -> 'process'.

19 years agoFix obvious typo in comment.
Fred Fish [Sat, 14 May 2005 01:31:32 +0000 (01:31 +0000)]
Fix obvious typo in comment.

2005-05-13  Fred Fish  <fnf@specifixinc.com>
* libbfd-in.h: Fix a comment typo, 'neaderst' -> 'nearest'
* libbfd.h: Rebuilt.

19 years ago * elf32-xtensa.c (xtensa_get_property_section_name): Add missing
Bob Wilson [Sat, 14 May 2005 00:26:06 +0000 (00:26 +0000)]
* elf32-xtensa.c (xtensa_get_property_section_name): Add missing
periods in linkonce_kind values.

19 years agodaily update
Alan Modra [Sat, 14 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago2005-05-13 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 13 May 2005 18:35:55 +0000 (18:35 +0000)]
2005-05-13  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (dump_ia64_unwind): Get stamp with proper size.

19 years ago * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify error
Bob Wilson [Fri, 13 May 2005 17:35:17 +0000 (17:35 +0000)]
* config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify error
message.
(xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional
for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.

19 years agoUpdate the address and telephone number of the FSF organization
Nick Clifton [Fri, 13 May 2005 08:04:31 +0000 (08:04 +0000)]
Update the address and telephone number of the FSF organization

19 years agodaily update
Alan Modra [Fri, 13 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago2005-05-12 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 12 May 2005 21:01:42 +0000 (21:01 +0000)]
2005-05-12  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF
against protected function when building executable.

19 years agomerge from gcc
DJ Delorie [Thu, 12 May 2005 20:00:35 +0000 (20:00 +0000)]
merge from gcc

19 years agoPR bootstrap/21230
DJ Delorie [Thu, 12 May 2005 16:35:35 +0000 (16:35 +0000)]
PR bootstrap/21230
* warnings.m4 (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Add
double quotes around GCC variable.

19 years ago * elf32-ppc.c (LWZU_0_X_11): Delete.
Alan Modra [Thu, 12 May 2005 15:24:51 +0000 (15:24 +0000)]
* elf32-ppc.c (LWZU_0_X_11): Delete.
(B, LWZ_11_X_11, LWZ_11_X_30, MTCTR_11): Define.
(ppc_elf_select_plt_layout): Set .got flags too.  Formatting.
(ppc_elf_size_dynamic_sections): Allocate space for .glink branch
table.
(ppc_elf_finish_dynamic_symbol): Point .plt entries into the branch
table.
(ppc_elf_finish_dynamic_sections): Adjust DT_PPC_GLINK value.
Generate .glink branch table and updated stubs.

19 years agoAdd missing \n character to end of warning message created by the previous delta
Nick Clifton [Thu, 12 May 2005 14:09:23 +0000 (14:09 +0000)]
Add missing \n character to end of warning message created by the previous delta

19 years agoIf pointer_size has not been found then assume that it is 4 in order to
Nick Clifton [Thu, 12 May 2005 09:05:36 +0000 (09:05 +0000)]
If pointer_size has not been found then assume that it is 4 in order to
prevent a seg fault when process_extend_line_op attempts to read the line
data.

19 years agoUpdate FSF addresses
Nick Clifton [Thu, 12 May 2005 07:32:09 +0000 (07:32 +0000)]
Update FSF addresses

19 years ago2005-05-11 Eli Zaretskii <eliz@gnu.org>
Ian Lance Taylor [Thu, 12 May 2005 03:45:53 +0000 (03:45 +0000)]
2005-05-11  Eli Zaretskii  <eliz@gnu.org>

* pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
sys/stat.h.
(pex_init): Fix last argument to pex_init_common.
(pex_djgpp_exec_child): Remove leading underscore from _open,
_dup, _dup2, _close, and _spawnv/_spawnvp.  Replace `program',
which is undeclared, with `executable', which was unused.  Remove
unused variable `e'.  Fix casting of last arg to spawnv/spawnvp.
(pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.

19 years ago * scripttempl/elfxtensa.sc: Sync up with elf.sc.
Bob Wilson [Thu, 12 May 2005 00:31:22 +0000 (00:31 +0000)]
    * scripttempl/elfxtensa.sc: Sync up with elf.sc.
        * emulparams/elf32xtensa.sh (PLT, GOT): Define.

19 years agodaily update
Alan Modra [Thu, 12 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago * ld-undefined/undefined.exp: xfail xtensa-*-*.
Bob Wilson [Wed, 11 May 2005 20:52:43 +0000 (20:52 +0000)]
    * ld-undefined/undefined.exp: xfail xtensa-*-*.

19 years ago * readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.
Alan Modra [Wed, 11 May 2005 14:10:59 +0000 (14:10 +0000)]
* readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.
(get_dynamic_type): Call the above.

19 years ago * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,
Alan Modra [Wed, 11 May 2005 14:10:37 +0000 (14:10 +0000)]
* config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,
BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.

19 years ago * ldgram.y: Add SPECIAL token.
Alan Modra [Wed, 11 May 2005 14:10:10 +0000 (14:10 +0000)]
* ldgram.y: Add SPECIAL token.
(sect_constraint): Handle SPECIAL.
* ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
(map_input_to_output_sections): Likewise.
* ldlex.l (SPECIAL): Define.
* emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
GOT, PLT, GOTPLT): Define.
* emultempl/ppc32elf.em (old_plt, old_got): New static vars.
(ppc_after_open): New function.
(PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
(PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
(PARSE_AND_LIST_OPTIONS): Document them.
(PARSE_AND_LIST_ARGS_CASES): Handle them.
(LDEMUL_AFTER_OPEN): Define.
* scripttempl/elf.sc (PLT): Don't override existing define.
(DATA_GOT, SDATA_GOT): Define and use to enable alternate got
placement rather than using NO_SMALL_DATA.  Emit GOTPLT for RELRO_NOW.

19 years ago * reloc.c (BFD_RELOC_HI16_PCREL): Define.
Alan Modra [Wed, 11 May 2005 14:09:43 +0000 (14:09 +0000)]
* reloc.c (BFD_RELOC_HI16_PCREL): Define.
(BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL): Define.
* elf32-ppc.c (GLINK_PLTRESOLVE, GLINK_ENTRY_SIZE): Define.
(CROR_151515, CROR_313131): Delete.
(ADDIS_11_11, ADDI_11_11, SUB_11_11_30, ADD_0_11_11, ADD_11_0_11,
LWZ_0_4_30, MTCTR_0, LWZ_12_8_30, BCTR, ADDIS_11_30,
LWZU_0_X_11): Define.
(ppc_elf_howto_raw): Add R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI
and R_PPC_REL16_HA entries.
(ppc_elf_reloc_type_lookup): Convert new bfd reloc types.
(ppc_elf_addr16_ha_reloc): Also handle R_PPC_REL16_HA.
(struct ppc_elf_link_hash_table): Add glink, glink_pltresolve,
new_plt, and old_plt.
(ppc_elf_create_dynamic_sections): Create .glink section.
(ppc_elf_check_relocs): Set new_plt and old_plt.
(ppc_elf_select_plt_layout): New function.
(ppc_elf_tls_setup): Set plt output section elf type and flags.
(allocate_got): Handle differences between old and new got layout.
(allocate_dynrelocs): Likewise for plt.
(ppc_elf_size_dynamic_sections): Likewise.  Allocate memory for
.glink.  Don't allocate memory for old bss .plt.  Emit DT_PPC_GLINK.
(ppc_elf_relax_section): Rename ppc_info to htab.  Handle .glink
destination of R_PPC_PLTREL24 relocs.
(ppc_elf_relocate_section): Handle new relocs and changed destination
of R_PPC_PLTREL24.
(ppc_elf_finish_dynamic_symbol): Init new style plt and handle
differences in layout.
(ppc_elf_finish_dynamic_sections): Set DT_PPC_GLINK value.  Don't
put a blrl in new got.  Write glink contents.
* elf32-ppc.h (ppc_elf_select_plt_layout): Declare.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.

19 years ago * ppc.h (R_PPC_RELAX32, R_PPC_RELAX32PC, R_PPC_RELAX32_PLT,
Alan Modra [Wed, 11 May 2005 14:08:45 +0000 (14:08 +0000)]
* ppc.h (R_PPC_RELAX32, R_PPC_RELAX32PC, R_PPC_RELAX32_PLT,
R_PPC_RELAX32PC_PLT) Adjust.
(R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI, R_PPC_REL16_HA): Define.
(DT_PPC_GLINK): Define.

19 years ago * elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness
Andreas Schwab [Wed, 11 May 2005 09:23:43 +0000 (09:23 +0000)]
* elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness
warning.

19 years ago2005-05-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 11 May 2005 02:15:46 +0000 (02:15 +0000)]
2005-05-10  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (_bfd_elf_make_section_from_shdr): Only check debug
section if SEC_ALLOC isn't set.

19 years agomerge from gcc
DJ Delorie [Wed, 11 May 2005 02:10:00 +0000 (02:10 +0000)]
merge from gcc

19 years agodaily update
Alan Modra [Wed, 11 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agoUpdate the address and phone number of the FSF organization.
Nick Clifton [Tue, 10 May 2005 15:33:34 +0000 (15:33 +0000)]
Update the address and phone number of the FSF organization.

19 years agogas/
Michael Matz [Tue, 10 May 2005 15:10:08 +0000 (15:10 +0000)]
gas/
        * frags.c (frag_grow): Don't be too greedy in allocating memory.
        * config/tc-hppa.c (pa_block): Check arguments to .block[z].

gas/testsuite/
        * gas/hppa/parse/block1.s: Use official limit (0x3fffffff) for
        .block.

19 years ago PR binutils/886
Hans-Peter Nilsson [Tue, 10 May 2005 12:32:23 +0000 (12:32 +0000)]
PR binutils/886
* config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly.
Handle label-without-colon before ordinary dot-pseudo as an
ordinary label.  Don't leak memory for label-without-colon alone
on a line.  Don't mmixal-munge operands for dot-pseudos.

19 years ago * gas/mmix/relax2.s: Drop ":" off label definitions.
Hans-Peter Nilsson [Tue, 10 May 2005 12:30:11 +0000 (12:30 +0000)]
* gas/mmix/relax2.s: Drop ":" off label definitions.

19 years agoUpdate the address and phone number of the FSF organization
Nick Clifton [Tue, 10 May 2005 10:21:13 +0000 (10:21 +0000)]
Update the address and phone number of the FSF organization

19 years agogas/
Jan Beulich [Tue, 10 May 2005 07:48:24 +0000 (07:48 +0000)]
gas/
2005-05-10  Jan Beulich  <jbeulich@novell.com>

* macro.c (get_any_string): Remove the two last parameters. Replace
references to the former expand parameter by using macro_alternate.
Simplify loop condition for checking for end-of-string.
(get_string): Remove redunant call to sb_skip_white.
(do_formals): Remove two last arguments to get_any_string.
(macro_expand): Likewise.
(expand_irp): Likewise.

19 years agogas/
Jan Beulich [Tue, 10 May 2005 07:45:11 +0000 (07:45 +0000)]
gas/
2005-05-10  Jan Beulich  <jbeulich@novell.com>

* read.c (s_macro): Move local variable 'local' to smaller scope.
Call sb_kill on it when done.

19 years ago * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
Alan Modra [Tue, 10 May 2005 02:27:38 +0000 (02:27 +0000)]
* scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
(DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
(GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END.  Place after
DATA_SEGMENT_RELRO_END in script.

19 years ago2005-05-09 Kelley Cook <kcook@gcc.gnu.org>
Kelley Cook [Tue, 10 May 2005 01:27:54 +0000 (01:27 +0000)]
2005-05-09  Kelley Cook  <kcook@gcc.gnu.org>

* configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
* acinclude.m4: Don't sinclude accross.m4.
* config.in, configure, Makefile.in, doc/Makefile.in: Regenerate.

19 years ago2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 10 May 2005 01:07:30 +0000 (01:07 +0000)]
2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>

* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
Don't use a removed section.

19 years ago2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 10 May 2005 01:06:04 +0000 (01:06 +0000)]
2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>

* ldmain.c (reloc_overflow): Use output_bfd if the symbol
is defined in the ABS section.

19 years agodaily update
Alan Modra [Tue, 10 May 2005 00:00:04 +0000 (00:00 +0000)]
daily update

19 years ago * Makefile.am: Use a temporary file to build chew.
Daniel Jacobowitz [Mon, 9 May 2005 21:13:56 +0000 (21:13 +0000)]
* Makefile.am: Use a temporary file to build chew.
* Makefile.in: Regenerated.

19 years agogas/
Jan Beulich [Mon, 9 May 2005 15:41:47 +0000 (15:41 +0000)]
gas/
2005-05-09  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (optimize_disp): Discard displacement entirely when zero and
not required by encoding constraints.

gas/testsuite/
2005-05-09  Jan Beulich  <jbeulich@novell.com>

* gas/i386/tlsd.[sd]: Adjust to not assume zero displacement will
actually be present in memory addressing.
* gas/i386/tlspic.[sd]: Likewise.

19 years ago2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 9 May 2005 14:20:52 +0000 (14:20 +0000)]
2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>

PR 936
* config/tc-sh64.c (sh64_fake_label): New.

* config/tc-sh64.h (TC_FAKE_LABEL): New.

* doc/internals.texi (TC_FAKE_LABEL): Document.

* write.c (TC_FAKE_LABEL): New.
(adjust_reloc_syms): Use it.
(write_object_file): Likewise.

19 years ago * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym.
Alan Modra [Mon, 9 May 2005 10:30:40 +0000 (10:30 +0000)]
* elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym.
(ppc64_elf_add_symbol_hook): Set has_dotsym.
(ppc64_elf_check_directives): Only process syms when has_dotsym.
(func_desc_adjust): Hide fake function descriptors when function
code entry is defined.
(adjust_opd_syms): Adjust for deleted_section becoming union field.

19 years agoUpdate the address of the FSF
Nick Clifton [Mon, 9 May 2005 06:55:25 +0000 (06:55 +0000)]
Update the address of the FSF

19 years agogas/
Jan Beulich [Mon, 9 May 2005 06:49:01 +0000 (06:49 +0000)]
gas/
2005-05-09  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (parse_insn): Disallow use of prefix separator
and comma in Intel mode.

include/opcode/
2005-05-09  Jan Beulich  <jbeulich@novell.com>

* i386.h (i386_optab): Add ht and hnt.

19 years agogas/
Jan Beulich [Mon, 9 May 2005 06:44:51 +0000 (06:44 +0000)]
gas/
2005-05-09  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode
names to match ABI. Add more registers for 32-bit and 64-bit modes.
Make name array static and const. Adjust lookup to account for NULL
entries (standing for unused register numbers).

19 years agogas/
Jan Beulich [Mon, 9 May 2005 06:38:45 +0000 (06:38 +0000)]
gas/
2005-05-09  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (parse_insn): Consider all matching instructions
when checking for string instruction after string-only prefix.

19 years ago * elfcode.h (elf_object_p): Add more sanity checks on elf header.
Alan Modra [Mon, 9 May 2005 03:35:38 +0000 (03:35 +0000)]
* elfcode.h (elf_object_p): Add more sanity checks on elf header.

19 years agodaily update
Alan Modra [Mon, 9 May 2005 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago2005-05-08 Dave Korn <dave.korn@artimi.com>
Dave Korn [Sun, 8 May 2005 23:48:38 +0000 (23:48 +0000)]
2005-05-08  Dave Korn   <dave.korn@artimi.com>

* coff-tic80.c:  Undefine _CONST after system headers to prevent
clash with tic80-specific definition in include/coff/tic80.h

19 years agoUpdate FSF address
Nick Clifton [Sun, 8 May 2005 14:17:41 +0000 (14:17 +0000)]
Update FSF address

19 years ago2005-05-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sun, 8 May 2005 13:43:48 +0000 (13:43 +0000)]
2005-05-08  H.J. Lu  <hongjiu.lu@intel.com>

PR 939
* elflink.c (elf_link_output_extsym): Use output_bfd if
h->root.u.def.section is bfd_abs_section_ptr when reporting
error.

19 years agodaily update
Alan Modra [Sun, 8 May 2005 00:00:08 +0000 (00:00 +0000)]
daily update

19 years agogas/
H.J. Lu [Sat, 7 May 2005 22:19:37 +0000 (22:19 +0000)]
gas/

2005-05-07  H.J. Lu  <hongjiu.lu@intel.com>

PR 940
* config/tc-ia64.c (start_unwind_section): Properly check
comdat group with SHF_GROUP.

gas/testsuite/

2005-05-07  H.J. Lu  <hongjiu.lu@intel.com>

PR 940
* gas/ia64/group-2.d: New.
* gas/ia64/group-2.s: New.

* gas/ia64/ia64.exp: Add "group-2".