OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
16 years ago2007-12-24 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 24 Dec 2007 16:55:39 +0000 (16:55 +0000)]
2007-12-24  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/5449
* elf.c (rewrite_elf_program_header): Don't adjust p_paddr if
p_paddr is set to 0.
(copy_private_bfd_data): Call rewrite_elf_program_header if
p_paddr is set to 0.

* elfcode.h (elf_swap_phdr_out): Set p_paddr to 0 if needed.

* elfxx-ia64.c (ELF_MAXPAGESIZE): Don't redefine it for HPUX.

16 years agoUpdated Russian translation.
Nick Clifton [Mon, 24 Dec 2007 16:18:14 +0000 (16:18 +0000)]
Updated Russian translation.

16 years agoFix a typo in comment.
H.J. Lu [Mon, 24 Dec 2007 06:10:17 +0000 (06:10 +0000)]
Fix a typo in comment.

16 years agogas/
H.J. Lu [Mon, 24 Dec 2007 05:27:39 +0000 (05:27 +0000)]
gas/

2007-12-23  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (set_intel_mnemonic): New.
(intel_mnemonic): Likewise.
(old_gcc): Likewise.
(OPTION_MMNEMONIC): Likewise.
(OPTION_MSYNTAX): Likewise.
(OPTION_MINDEX_REG): Likewise.
(OPTION_MNAKED_REG): Likewise.
(OPTION_MOLD_GCC): Likewise.
(md_pseudo_table): Add .intel_mnemonic and .att_mnemonic.
(match_template): Don't allow AT&T/Intel mnemonic if Intel/AT&T
mnemonic is specified.  Don't allow old gcc support if old_gcc
is 0.
(md_longopts): Add -mmnemonic, -msyntax, -mindex-reg,
-mmnaked-reg and -mold-gcc.
(md_parse_option): Handle OPTION_MMNEMONIC, OPTION_MSYNTAX,
OPTION_MINDEX_REG, OPTION_MNAKED_REG and OPTION_MOLD_GCC.

* doc/c-i386.texi: Docoument -mmnemonic, -msyntax, --mnaked-reg
and AT&T mnemonic vs. Intel mnemonic.

gas/testsuite/

2007-12-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/compat-intel.d: Pass -mmnemonic=att to assembler.
* gas/i386/compat.d: Likewise.

* gas/i386/i386.exp: Pass -mmnemonic=att to assembler for
"float".  Pass -mold-gcc to assembler for  "general".

opcodes/

2007-12-23  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Add OldGcc, ATTMnemonic and
IntelMnemonic.

* i386-opc.h (OldGcc): New.
(ATTMnemonic): Likewise.
(IntelMnemonic): Likewise.
(Opcode_Modifier_Max): Updated.
(i386_opcode_modifier): Add oldgcc, attmnemonic and
intelmnemonic.

* i386-opc.tbl: Update fadd, fdiv, fdivp, fdivr, fdivrp, fmul,
fsub, fsubp, fsubr and fsubrp with OldGcc, ATTMnemonic and
IntelMnemonic.
* i386-tbl.h: Regeneratd.

16 years agodaily update
Alan Modra [Sun, 23 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 22 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agobinutils/
H.J. Lu [Sat, 22 Dec 2007 14:06:31 +0000 (14:06 +0000)]
binutils/

2007-12-22  H.J. Lu  <hongjiu.lu@intel.com>

* doc/binutils.texi: Document the new intel-mnemonic and
intel-mnemonic options for i386 disassembler.

gas/testsuite/

2007-12-22  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/compat-intel.d: New file.
* gas/i386/compat.d: Likewise.
* gas/i386/compat.s: Likewise.

* gas/i386/i386.exp: Run compat.

opcodes/

2007-12-22  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (intel_mnemonic): New.
(print_i386_disassembler_options): Display att-mnemonic and
intel-mnemonic options.
(print_insn): Handle att-mnemonic and intel-mnemonic.
(float_reg): Replace SYSV386_COMPAT with "!M" and "M".
(putop): Handle "!M" and "M".

16 years agoUse a simpler hash function.
Ian Lance Taylor [Sat, 22 Dec 2007 01:53:39 +0000 (01:53 +0000)]
Use a simpler hash function.

16 years agoCorrect contributor name on new tests, remove #if 0 code.
Ian Lance Taylor [Sat, 22 Dec 2007 00:50:43 +0000 (00:50 +0000)]
Correct contributor name on new tests, remove #if 0 code.

16 years agoFrom Cary Coutant: Fix handling of versioned symbols, add some tests.
Ian Lance Taylor [Fri, 21 Dec 2007 23:31:19 +0000 (23:31 +0000)]
From Cary Coutant: Fix handling of versioned symbols, add some tests.

16 years ago * elf32-xtensa.c (relax_section): Update DIFF relocations in the
Bob Wilson [Fri, 21 Dec 2007 23:11:28 +0000 (23:11 +0000)]
* elf32-xtensa.c (relax_section): Update DIFF relocations in the
same way as other relocations.

16 years agoCorrect handling of non-section symbol in merged section. Avoid some
Ian Lance Taylor [Fri, 21 Dec 2007 23:08:25 +0000 (23:08 +0000)]
Correct handling of non-section symbol in merged section.  Avoid some
64-bit signed/unsigned warnings.

16 years agodaily update
Alan Modra [Fri, 21 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoSpeed up relocations against local symbols in merged sections.
Ian Lance Taylor [Fri, 21 Dec 2007 21:19:45 +0000 (21:19 +0000)]
Speed up relocations against local symbols in merged sections.

16 years ago2007-12-21 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 21 Dec 2007 17:04:04 +0000 (17:04 +0000)]
2007-12-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (i386-gen.o): Also depend on
$(srcdir)/../include/opcode/i386.h.
* Makefile.in: Regenerated.

16 years agodaily update
Alan Modra [Thu, 20 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agoFix buglet in last patch.
Ian Lance Taylor [Thu, 20 Dec 2007 21:26:17 +0000 (21:26 +0000)]
Fix buglet in last patch.

16 years agoConvert more instances of off_t to be 32-bit types.
Ian Lance Taylor [Thu, 20 Dec 2007 21:21:24 +0000 (21:21 +0000)]
Convert more instances of off_t to be 32-bit types.

16 years ago * config/tc-xtensa.c (xtensa_elf_cons): Set frag flags for
Bob Wilson [Thu, 20 Dec 2007 17:21:07 +0000 (17:21 +0000)]
* config/tc-xtensa.c (xtensa_elf_cons): Set frag flags for
expressions without suffixes.
(get_frag_property_flags): Preserve is_no_transform flag for frags
not marked as either instructions or literals.

16 years agoUpdate comments about output offsets and merged input sections.
Ian Lance Taylor [Thu, 20 Dec 2007 16:27:34 +0000 (16:27 +0000)]
Update comments about output offsets and merged input sections.

16 years ago * ld-elf/seg.d: Restrict to linux and vxworks.
Hans-Peter Nilsson [Thu, 20 Dec 2007 11:36:56 +0000 (11:36 +0000)]
* ld-elf/seg.d: Restrict to linux and vxworks.

16 years agoRemove one inline.
Ian Lance Taylor [Thu, 20 Dec 2007 01:32:10 +0000 (01:32 +0000)]
Remove one inline.

16 years agoMake functions on hot path inline. Remove a mistaken virtual
Ian Lance Taylor [Thu, 20 Dec 2007 01:29:04 +0000 (01:29 +0000)]
Make functions on hot path inline.  Remove a mistaken virtual
declaration.

16 years agodaily update
Alan Modra [Wed, 19 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 19 Dec 2007 20:47:45 +0000 (20:47 +0000)]
2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.LIBGLOSS: Update default copyright.

16 years ago2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 19 Dec 2007 19:12:23 +0000 (19:12 +0000)]
2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Update default copyright.

16 years ago2007-12-19 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 19 Dec 2007 15:54:06 +0000 (15:54 +0000)]
2007-12-19  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/seg.d: Adjusted for 64bit targets.

16 years ago * ld-elf/seg.t: New.
Nathan Sidwell [Wed, 19 Dec 2007 10:22:02 +0000 (10:22 +0000)]
* ld-elf/seg.t: New.
* ld-elf/seg.d: New.
* ld-elf/seg.s: New.

16 years agoMove Stringpool offsets into a chunked_vector indexed by keys.
Ian Lance Taylor [Wed, 19 Dec 2007 01:23:46 +0000 (01:23 +0000)]
Move Stringpool offsets into a chunked_vector indexed by keys.

16 years agoAvoid some warnings which showed up in 64-bit mode.
Ian Lance Taylor [Wed, 19 Dec 2007 01:18:41 +0000 (01:18 +0000)]
Avoid some warnings which showed up in 64-bit mode.

16 years agoUse string length when available when calling Stringpool. Compare
Ian Lance Taylor [Wed, 19 Dec 2007 00:29:28 +0000 (00:29 +0000)]
Use string length when available when calling Stringpool.  Compare
pointers first when looking up Stringpool entries.

16 years agodaily update
Alan Modra [Tue, 18 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoDon't write unattached after_input sections twice.
Ian Lance Taylor [Tue, 18 Dec 2007 21:45:28 +0000 (21:45 +0000)]
Don't write unattached after_input sections twice.

16 years agoPrint statistics about merge sections with --stats.
Ian Lance Taylor [Tue, 18 Dec 2007 21:24:10 +0000 (21:24 +0000)]
Print statistics about merge sections with --stats.

16 years ago * section.c (BFD_FAKE_SECTION): Update.
Daniel Jacobowitz [Tue, 18 Dec 2007 19:48:07 +0000 (19:48 +0000)]
* section.c (BFD_FAKE_SECTION): Update.
* bfd-in2.h: Regenerate.

16 years ago * bfd-in2.h: Regenerate.
Daniel Jacobowitz [Tue, 18 Dec 2007 19:38:26 +0000 (19:38 +0000)]
* bfd-in2.h: Regenerate.

16 years ago/tmp/foo.diff
Richard Sandiford [Tue, 18 Dec 2007 07:37:34 +0000 (07:37 +0000)]
/tmp/foo.diff

16 years ago/tmp/foo.diff
Richard Sandiford [Tue, 18 Dec 2007 07:34:56 +0000 (07:34 +0000)]
/tmp/foo.diff

16 years agoAdd section_size_type and section_offset_type, use them to replace a
Ian Lance Taylor [Tue, 18 Dec 2007 00:48:04 +0000 (00:48 +0000)]
Add section_size_type and section_offset_type, use them to replace a
lot of instances of off_t.

16 years agodaily update
Alan Modra [Mon, 17 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-12-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 17 Dec 2007 19:41:57 +0000 (19:41 +0000)]
2007-12-17  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (output_insn): Use ARRAY_SIZE.
(lex_got): Likewise.

16 years ago2007-12-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 17 Dec 2007 18:53:06 +0000 (18:53 +0000)]
2007-12-17  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (output_insn): Use FRAG_APPEND_1_CHAR
instead of frag_more/md_number_to_chars.
(md_short_jump_size): Removed.
(md_long_jump_size): Likewise.
(md_create_short_jump): Likewise.
(md_create_long_jump): Likewise.

16 years ago * config.bfd: Add arm-*-mingw32ce* target.
Pedro Alves [Mon, 17 Dec 2007 01:50:44 +0000 (01:50 +0000)]
* config.bfd: Add arm-*-mingw32ce* target.

16 years agodaily update
Alan Modra [Sun, 16 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 15 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agold/
Richard Sandiford [Sat, 15 Dec 2007 09:43:40 +0000 (09:43 +0000)]
ld/
* scripttempl/armbpabi.sc (.text): Don't KEEP (*(.text.*personality*)).
(.data): Don't KEEP (*(.gnu.linkonce.d.*personality*)).
* scripttempl/elf.sc: As for armbpabi.sc.
* scripttempl/elfxtensa.sc: Likewise.
* scripttempl/mep.sc: Likewise.

16 years agobfd/
Richard Sandiford [Sat, 15 Dec 2007 09:42:02 +0000 (09:42 +0000)]
bfd/
* elf-bfd.h (eh_cie_fde): Replace u.cie.merged with a union of
a merged field and a sec field.
(eh_frame_hdr_info): Remove offsets_adjusted.
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Update accesses to
the CIE merged field.
(_bfd_elf_gc_mark_fdes): Likewise.
(_bfd_elf_discard_section_eh_frame): Likewise.  Set u.cie.u.sec
when clearing the removed flag.
(_bfd_elf_eh_frame_section_offset): Remove offsets_adjusted handling.
(_bfd_elf_write_section_eh_frame): Likewise.  Apply output_offsets
where appropriate.

16 years agobfd/
Richard Sandiford [Sat, 15 Dec 2007 09:41:15 +0000 (09:41 +0000)]
bfd/
* elf-bfd.h (eh_cie_fde): Move add_fde_encoding and
per_encoding_relative to u.cie.  Add commentary.
* elf-eh-frame.c (cie): Remove make_relative.
(extra_augmentation_string_bytes): Update use of add_fde_encoding.
(extra_augmentation_data_bytes): Likewise.  Use an FDE's own
add_augmentation_size field, rather than referring to the CIE.
(_bfd_elf_parse_eh_frame): Don't set the struct cie
make_relative field; set the eh_cie_fde field directly.
Update setting of add_fde_encoding and per_encoding_relative.
Copy make_relative and add_augmentation_size from the CIE
to the FDE.
(_bfd_elf_discard_section_eh_frame): Use the FDE's own
make_relative field.
(_bfd_elf_eh_frame_section_offset): Likewise.
(_bfd_elf_write_section_eh_frame): Update accesses to
add_fde_encoding and per_encoding_relative.  Use the FDE's
own make_relative and add_augmentation_size fields.

16 years agobfd/
Richard Sandiford [Sat, 15 Dec 2007 09:35:58 +0000 (09:35 +0000)]
bfd/
* elf-bfd.h (eh_cie_fde): Remove need_lsda_relative.
Move make_lsda_relative to u.cie.
* elf-eh-frame.c (cie): Rename make_lsda_relative to
can_make_lsda_relative.
(_bfd_elf_parse_eh_frame): Don't set the old eh_cie_fde
make_lsda_relative field.  Update after cie renaming.
Set u.cie.make_lsda_relative if can_make_lsda_relative
and if we find a relocation against the LSDA.
(_bfd_elf_discard_section_eh_frame): Copy make_lsda_relative when
changing a CIE's group representative.
(_bfd_elf_eh_frame_section_offset): Don't set need_ldsa_relative here.
(_bfd_elf_write_section_eh_frame): Check u.cie.make_lsda_relative
rather than need_lsda_relative.

16 years agobfd/
Richard Sandiford [Sat, 15 Dec 2007 09:34:48 +0000 (09:34 +0000)]
bfd/
* elf-bfd.h (eh_cie_fde): Add u.fde.next_for_section and
u.cie.gc_mark.
(bfd_elf_section_data): Add fde_list.
(elf_fde_list): New macro.
(elf_obj_tdata): Add eh_frame_section.
(elf_eh_frame_section): New macro.
(_bfd_elf_gc_mark_reloc): Remove last parameter.
(_bfd_elf_gc_mark_fdes): Declare.
* elf-eh-frame.c (_bfd_elf_get_eh_frame_sec_info): Chain the FDEs
for each input section.
(mark_entry, _bfd_elf_gc_mark_fdes): New functions.
* elflink.c (_bfd_elf_gc_mark_reloc): Remove is_eh parameter.
(_bfd_elf_gc_mark): Update call accordingly.  Mark the relocations
againts the section's FDEs.  Don't mark the bfd's elf_eh_frame_section.
(bfd_elf_gc_sections): Parse each input bfd's .eh_frame before
marking any input sections.  Remove the current EH handling.
* section.c (bfd_section): Remove gc_mark_from_eh.
* ecoff.c (bfd_debug_section): Update initializer accordingly.

16 years agobfd/
Richard Sandiford [Sat, 15 Dec 2007 09:33:51 +0000 (09:33 +0000)]
bfd/
* elf-bfd.h (eh_cie_fde): Add u.cie.  Document how u.fde.cie_inf
changes when removed == 0.
(eh_frame_hdr_info): Add parsed_eh_frames.
(_bfd_elf_begin_eh_frame_parsing): Declare.
(_bfd_elf_parse_eh_frame): Declare.
(_bfd_elf_end_eh_frame_parsing): Declare.
* elf-eh-frame.c (_bfd_elf_begin_eh_frame_parsing): New function.
(_bfd_elf_parse_eh_frame): New function, split out from
_bfd_elf_discard_section_eh_frame.  Make a first pass through the
buffer to calculate the number of entries and CIEs.  Allocate memory
for them before the main loop.  Replace current extended cie
representation with a pair of pointers, one to the local eh_cie_fde
and one to the full struct cie.  Allocate a separate array of struct
cies if not merging.  Merge CIEs during the main loop and set up each
u.cie.merged field.  Point an FDE's cie_inf field directly at the
local CIE.  Initially assume that all entries should be removed.
(_bfd_elf_end_eh_frame_parsing): New function.
(_bfd_elf_discard_section_eh_frame): Assume that the section has
already been parsed.  Use a separate pass to mark entries that
need to be kept.  Use the u.cie.merged field to track a CIE's
group representative.
* elflink.c (bfd_elf_discard_info): Call _bfd_elf_parse_eh_frame
before _bfd_elf_discard_section_eh_frame.  Wrap loop with calls to
_bfd_elf_begin_eh_frame_parsing and _bfd_elf_end_eh_frame_parsing.

16 years agobfd/
Richard Sandiford [Sat, 15 Dec 2007 09:32:38 +0000 (09:32 +0000)]
bfd/
* elf-bfd.h (eh_cie_fde): Put cie_inf in a union.  Add a reloc_index
field.  Use bitfields for fde_encoding, lsda_encoding and lsda_offset.
* elf-eh-frame.c (extra_augmentation_data_bytes): Adjust cie_inf
accesses after the above change.
(_bfd_elf_eh_frame_section_offset): Likewise.
(_bfd_elf_write_section_eh_frame): Likewise.
(_bfd_elf_discard_section_eh_frame): Likewise.  Set up reloc_index.

16 years agobfd/
Richard Sandiford [Sat, 15 Dec 2007 09:31:41 +0000 (09:31 +0000)]
bfd/
* elf-bfd.h (_bfd_elf_gc_mark_rsec, _bfd_elf_gc_mark_reloc): Declare.
(_bfd_elf_gc_mark): Use elf_gc_mark_hook_fn.
* elflink.c (init_reloc_cookie, fini_reloc_cookie)
(init_reloc_cookie_rels, fini_reloc_cookie_rels): New functions,
split out from...
(bfd_elf_discard_info): ...here.
(init_reloc_cookie_for_section): New function.
(fini_reloc_cookie_for_section): Likewise.
(_bfd_elf_gc_mark_rsec, _bfd_elf_gc_mark_reloc): New functions,
split out from...
(_bfd_elf_gc_mark): ...here.  Use init_reloc_cookie_for_section
and fini_reloc_cookie_for_section.

16 years agoMinor speedup to Output_merge_string::do_add_input_section.
Ian Lance Taylor [Sat, 15 Dec 2007 01:01:48 +0000 (01:01 +0000)]
Minor speedup to Output_merge_string::do_add_input_section.

16 years agodaily update
Alan Modra [Fri, 14 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago * ld-scripts/rgn-over.exp: Add --no-overlays for spu.
Alan Modra [Fri, 14 Dec 2007 21:54:50 +0000 (21:54 +0000)]
* ld-scripts/rgn-over.exp: Add --no-overlays for spu.

16 years agoRewrite workqueue. This version eliminates the master thread, and
Ian Lance Taylor [Fri, 14 Dec 2007 19:00:21 +0000 (19:00 +0000)]
Rewrite workqueue.  This version eliminates the master thread, and
reduces the amount of locking required to find a new thread to run.

16 years agoAdd const to Object::read and Object::sized_target.
Ian Lance Taylor [Fri, 14 Dec 2007 18:50:01 +0000 (18:50 +0000)]
Add const to Object::read and Object::sized_target.

16 years agoMake some File_read methods const.
Ian Lance Taylor [Fri, 14 Dec 2007 18:22:06 +0000 (18:22 +0000)]
Make some File_read methods const.

16 years agoAdd some missing dependencies for the new linker.
Ian Lance Taylor [Fri, 14 Dec 2007 05:27:45 +0000 (05:27 +0000)]
Add some missing dependencies for the new linker.

16 years agoFrom Craig Silverstein: size hash tables to avoid resizing.
Ian Lance Taylor [Fri, 14 Dec 2007 05:24:17 +0000 (05:24 +0000)]
From Craig Silverstein: size hash tables to avoid resizing.

16 years agoFix --thread-count-middle and --thread-count-final.
Ian Lance Taylor [Fri, 14 Dec 2007 04:53:22 +0000 (04:53 +0000)]
Fix --thread-count-middle and --thread-count-final.

16 years agoMerge from gcc:
DJ Delorie [Fri, 14 Dec 2007 01:28:55 +0000 (01:28 +0000)]
Merge from gcc:
2007-12-10  Andreas Tobler  <a.tobler@schweiz.org>

* configure.ac: Enable libjava for x86_64-*-darwin9.
* configure: Regenerate.

16 years agodaily update
Alan Modra [Thu, 13 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agogas/
Bob Wilson [Thu, 13 Dec 2007 19:03:45 +0000 (19:03 +0000)]
gas/
* config/tc-xtensa.c (xg_symbolic_immeds_fit): Relax for weak
references but not weak definitions.
gas/testsuite/
* gas/xtensa/all.exp: Run new weak-call test.
* gas/xtensa/weak-call.d: New.
* gas/xtensa/weak-call.s: New.

16 years agodaily update
Alan Modra [Wed, 12 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoWrap long line in previous entry.
Bob Wilson [Wed, 12 Dec 2007 21:18:46 +0000 (21:18 +0000)]
Wrap long line in previous entry.

16 years ago * config/tc-xtensa.c (xg_symbolic_immeds_fit): Do not relax calls to ...
Bob Wilson [Wed, 12 Dec 2007 21:16:47 +0000 (21:16 +0000)]
    * config/tc-xtensa.c (xg_symbolic_immeds_fit): Do not relax calls to            weak symbols if longcalls are disabled.

16 years ago * elf32-xtensa.c (elf_xtensa_do_reloc): Update self_address along with
Bob Wilson [Wed, 12 Dec 2007 21:11:10 +0000 (21:11 +0000)]
    * elf32-xtensa.c (elf_xtensa_do_reloc): Update self_address along with
        address.
        (print_action_list): Fix name for ta_convert_longcall.

16 years agoFrom Cary Coutant: Test TLS initial-exec model.
Ian Lance Taylor [Tue, 11 Dec 2007 23:33:11 +0000 (23:33 +0000)]
From Cary Coutant: Test TLS initial-exec model.

16 years agoFrom Cary Coutant: Set DF_STATIC_TLS as appropriate.
Ian Lance Taylor [Tue, 11 Dec 2007 23:30:52 +0000 (23:30 +0000)]
From Cary Coutant: Set DF_STATIC_TLS as appropriate.

16 years agodaily update
Alan Modra [Tue, 11 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years ago * config/tc-xtensa.c (frag_format_size): Handle frags that expand to
Bob Wilson [Tue, 11 Dec 2007 21:52:39 +0000 (21:52 +0000)]
* config/tc-xtensa.c (frag_format_size): Handle frags that expand to
wide branches.
(get_aligned_diff): For RELAX_ALIGN_NEXT_OPCODE, skip to the next
non-empty frag to find the LOOP instruction.  Change comma typo to
a semicolon.
(relax_frag_immed, convert_frag_immed): Rename wide_insn variable to
from_widen_insn.

16 years agoFrom Cary Coutant: Fix x86_64 TLS problem.
Ian Lance Taylor [Tue, 11 Dec 2007 21:21:14 +0000 (21:21 +0000)]
From Cary Coutant: Fix x86_64 TLS problem.

16 years agoFrom Craig Silverstein: Speed up ODR violation reporting.
Ian Lance Taylor [Tue, 11 Dec 2007 18:17:31 +0000 (18:17 +0000)]
From Craig Silverstein: Speed up ODR violation reporting.

16 years ago * bfd/elf.c (_bfd_elf_copy_private_symbol_data): Don't copy shndx if
Catherine Moore [Tue, 11 Dec 2007 13:13:59 +0000 (13:13 +0000)]
    * bfd/elf.c (_bfd_elf_copy_private_symbol_data): Don't copy shndx if
        the symbol's section is the undefined section.
        * gas/testsuite/gas/elf/symtab.s: New test.
        gas/testsuite/gas/elf/symtab.d: New expected output.
        gas/testsuite/gas/elf/elf.exp: Run the new symbtab test.

16 years ago * dwarf2.h (DW_AT_hi_user): Correct value.
Daniel Jacobowitz [Tue, 11 Dec 2007 12:56:21 +0000 (12:56 +0000)]
* dwarf2.h (DW_AT_hi_user): Correct value.

16 years agoFrom Cary Coutant: Handle TLS entry for TLS module index.
Ian Lance Taylor [Tue, 11 Dec 2007 04:23:05 +0000 (04:23 +0000)]
From Cary Coutant: Handle TLS entry for TLS module index.

16 years agowarning messages should contain "warning:"
Alan Modra [Mon, 10 Dec 2007 23:44:23 +0000 (23:44 +0000)]
warning messages should contain "warning:"

16 years ago * config/tc-m32r.c (md_begin): Mark .sbss as being bss style section.
Alan Modra [Mon, 10 Dec 2007 23:33:46 +0000 (23:33 +0000)]
* config/tc-m32r.c (md_begin): Mark .sbss as being bss style section.

16 years agodaily update
Alan Modra [Mon, 10 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoKeep views on views_ list so that they can be found again.
Ian Lance Taylor [Mon, 10 Dec 2007 22:55:31 +0000 (22:55 +0000)]
Keep views on views_ list so that they can be found again.

16 years agogas/
Richard Sandiford [Mon, 10 Dec 2007 10:36:00 +0000 (10:36 +0000)]
gas/
* config/tc-mips.h (mips_nop_opcode): Declare.
(NOP_OPCODE): Define.
(mips_segment_info): New structure.
(TC_SEGMENT_INFO_TYPE): Use it instead of insn_label_list.
* config/tc-mips.c (label_list): Adjust for new TC_SEGMENT_INFO_TYPE.
(mips_record_mips16_mode): New function.
(install_insn): Call it.
(mips_align): Likewise.  Turn the fill argument into an "int *".
Use frag_align_code for code segments if no fill data is given.
(s_align): Adjust call accordingly.
(mips_nop_opcode): New function.
(mips_handle_align): Use the first variable byte to decide which
nop sequence is needed.  Use md_number_to_chars and mips16_nop_insn.

gas/testsuite/
* gas/mips/align2.s, gas/mips/align2.d, gas/mips/align2-el.d: New
tests.
* gas/mips/mips.exp: Run them.

16 years agodaily update
Alan Modra [Sun, 9 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 8 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years agoReleased gold-alpha 0.9.
Craig Silverstein [Sat, 8 Dec 2007 03:17:25 +0000 (03:17 +0000)]
Released gold-alpha 0.9.

16 years agoFrom Craig Silverstein: Fix error message, add this->.
Ian Lance Taylor [Sat, 8 Dec 2007 03:05:27 +0000 (03:05 +0000)]
From Craig Silverstein: Fix error message, add this->.

16 years ago * readelf.c (is_32bit_pcrel_reloc): Add Xtensa.
Bob Wilson [Sat, 8 Dec 2007 01:04:59 +0000 (01:04 +0000)]
* readelf.c (is_32bit_pcrel_reloc): Add Xtensa.

16 years agoFrom Cary Coutant: Fix x86_64 TLS. Also set DT_TEXTREL as well as
Ian Lance Taylor [Fri, 7 Dec 2007 23:26:51 +0000 (23:26 +0000)]
From Cary Coutant: Fix x86_64 TLS.  Also set DT_TEXTREL as well as
DF_TEXTREL.

16 years agodaily update
Alan Modra [Fri, 7 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update

16 years ago2007-12-07 Bob Wilson <bob.wilson@acm.org>
Bob Wilson [Fri, 7 Dec 2007 22:52:10 +0000 (22:52 +0000)]
2007-12-07  Bob Wilson  <bob.wilson@acm.org>

include/elf/
* xtensa.h (R_XTENSA_32_PCREL): New.

bfd/
* elf32-xtensa.c (elf_howto_table): Add R_XTENSA_32_PCREL.
(elf_xtensa_reloc_type_lookup): Handle BFD_RELOC_32_PCREL.
(elf_xtensa_check_relocs): Use default case for all relocations that
need nothing done here.
(elf_xtensa_do_reloc): Compute self_address for all relocation types.
Handle R_XTENSA_32_PCREL.
(elf_xtensa_relocate_section): Check for R_XTENSA_32_PCREL for dynamic
symbols.
(check_section_ebb_pcrels_fit): Ignore R_XTENSA_32_PCREL relocations.

gas/
* config/tc-xtensa.c (O_pcrel): Define.
(suffix_relocs): Add pcrel suffix.
(md_pseudo_table): Add 4byte and 2byte directives.
(xtensa_elf_cons): Pass correct pcrel argument to fix_new_exp.
(xg_assemble_literal): Likewise.  Check for O_pcrel.
(expression_maybe_register): Reorganize.  Handle BFD_RELOC_32_PCREL.
(xg_valid_literal_expression): Allow O_pcrel.
(md_pcrel_from, md_apply_fix): Handle BFD_RELOC_32_PCREL.
(tc_gen_reloc): Fix punctuation in error message.

gas/testsuite/
* gas/xtensa/all.exp: Run new pcrel test.
* gas/xtensa/err-pcrel.s: New.
* gas/xtensa/pcrel.d: New.
* gas/xtensa/pcrel.s: New.
* gas/xtensa/xtensa-err.exp: New.

16 years agoFrom Cary Coutant: Fix handling of RELATIVE RELA relocs.
Ian Lance Taylor [Fri, 7 Dec 2007 19:32:59 +0000 (19:32 +0000)]
From Cary Coutant: Fix handling of RELATIVE RELA relocs.

16 years agoFix ehframe header handling for shared libraries.
Ian Lance Taylor [Fri, 7 Dec 2007 06:44:01 +0000 (06:44 +0000)]
Fix ehframe header handling for shared libraries.

16 years ago * config/tc-xtensa.c (xg_force_frag_space): Delete.
Bob Wilson [Fri, 7 Dec 2007 01:07:33 +0000 (01:07 +0000)]
    * config/tc-xtensa.c (xg_force_frag_space): Delete.
        (xg_finish_frag, xg_assemble_literal_space): Replace calls to it.
        (xtensa_create_property_segments, xtensa_create_xproperty_segments):
        Set output_section for new property sections.  Use subseg_set and
        seg_info instead of retrieve_segment_info.  Adjust arguments to
        add_xt_block_frags and add_xt_prop_frags.  Use standard functions
        to create frags and fix records.
        (retrieve_segment_info): Delete.
        (add_xt_block_frags, add_xt_prop_frags): Replace calls to
        retrieve_segment_info.  Remove unused xt_block_sec arguments.

16 years agoFrom Cary Coutant: Some x86_64 shared library fixes.
Ian Lance Taylor [Fri, 7 Dec 2007 00:59:31 +0000 (00:59 +0000)]
From Cary Coutant: Some x86_64 shared library fixes.

16 years agoFrom Cary Coutant: Remove commented out assert. Also add comment for
Ian Lance Taylor [Fri, 7 Dec 2007 00:54:28 +0000 (00:54 +0000)]
From Cary Coutant: Remove commented out assert.  Also add comment for
bitfield check.

16 years agodaily update
Alan Modra [Thu, 6 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update

16 years agoconfig/
Richard Sandiford [Thu, 6 Dec 2007 17:44:07 +0000 (17:44 +0000)]
config/
* mt-sde (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Use +=, not =.
* mt-mips-elfoabi: Likewise.

16 years agoFrom Craig Silverstein: Reorganize testsuite Makefile.am.
Ian Lance Taylor [Thu, 6 Dec 2007 17:07:24 +0000 (17:07 +0000)]
From Craig Silverstein: Reorganize testsuite Makefile.am.

16 years agoInitialize variable to avoid warning.
Ian Lance Taylor [Thu, 6 Dec 2007 06:03:00 +0000 (06:03 +0000)]
Initialize variable to avoid warning.