OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
15 years agoPrint moxie addresses nicely.
green [Sat, 6 Jun 2009 13:02:21 +0000 (13:02 +0000)]
Print moxie addresses nicely.

15 years ago2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
hjl [Sat, 6 Jun 2009 11:48:11 +0000 (11:48 +0000)]
2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_check_relocs): Make room for dynamic
relocation for R_386_32 against STT_GNU_IFUNC symbol when
building shared object.  Check info->executable instead of
!info->shared when setting non_got_ref.
(elf_i386_allocate_dynrelocs): Allocate dynamic relocation
for non-GOT reference of STT_GNU_IFUNC symbol in shared
object. Allocate GOT relocation agsinst STT_GNU_IFUNC
symbol if needed.
(elf_i386_relocate_section): Output dynamic relocation for
R_386_32 against STT_GNU_IFUNC symbol to get the real
function address when building shared object.
(elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT
relocation for STT_GNU_IFUNC symbol in shared object.

* elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for
dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC
symbol when building shared object.  Check info->executable
instead of !info->shared when setting non_got_ref.
(elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation
for non-GOT reference of STT_GNU_IFUNC symbol in shared
library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol
if needed.
(elf64_x86_64_relocate_section): Output dynamic relocation
for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real
function address when building shared object.
(elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT
relocation for STT_GNU_IFUNC symbol in shared object.

15 years ago * dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.
corinna [Sat, 6 Jun 2009 11:47:29 +0000 (11:47 +0000)]
* dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.
* dll_init.cc: Fix formatting.
(dll_list::alloc): Only allocate as much memory for struct dll as
necessary for given DLL name.
(dll_list::load_after_fork): Only read a single page of parent memory.
Only read more if namelen indicates that it's necessary.

15 years agobfd/
jkratoch [Sat, 6 Jun 2009 07:48:02 +0000 (07:48 +0000)]
bfd/
* Makefile.am: Run "make dep-am".
(BFD32_BACKENDS): Add mach-o-i386.lo.
(BFD32_BACKENDS_CFILES): Add mach-o-i386.c.
* Makefile.in: Regenerate.

15 years ago * elf32-spu.c (spu_elf_relocate_section): Match overlay number
amodra [Sat, 6 Jun 2009 06:36:52 +0000 (06:36 +0000)]
* elf32-spu.c (spu_elf_relocate_section): Match overlay number
when looking for soft-icache stubs.

15 years ago*** empty log message ***
gdbadmin [Sat, 6 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Sat, 6 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago2009-06-05 Doug Kwan <dougkwan@google.com>
dougkwan [Fri, 5 Jun 2009 21:32:56 +0000 (21:32 +0000)]
2009-06-05  Doug Kwan  <dougkwan@google.com>

* Makefile.am (CCFILES): Add target.cc.
* Makefile.in: Regenerate.
* i386.cc (class Target_i386): Define new virtual method to
override do_is_local_label_name in parent.
* object.cc (Sized_relobj::do_count_local_symbols): Discard
local symbols if --discard-locals or -X is given.
* options.h (class General_options): Declare new options
'--discard-locals' and '-X' for discarding locals.
* target.h (class Target): Define new methods is_local_label_name.
Declare new virtual method do_is_local_label_name.
* target.cc: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add discard_locals_test.
(check_SCRIPTS): Add discard_locals_test.sh.
(check_DATA): Add discard_local_tests.syms.
(discard_locals_test_SOURCES, discard_locals_test_LDFLAGS): Define.
(discard_local_tests.syms, discard_locals_test.o): New make rules.
* testsuite/Makefile.in: Regenerate.
* testsuite/discard_locals_test.c: New file.
* testsuite/discard_locals_test.sh: Same.

15 years ago * varobj.c (update_dynamic_varobj_children): Wrap error text in
tromey [Fri, 5 Jun 2009 19:43:01 +0000 (19:43 +0000)]
* varobj.c (update_dynamic_varobj_children): Wrap error text in
_().
(install_visualizer): Likewise.
(varobj_set_visualizer): Likewise.

15 years ago * mi/mi-main.c (mi_cmd_exec_continue)
vprus [Fri, 5 Jun 2009 18:34:21 +0000 (18:34 +0000)]
* mi/mi-main.c (mi_cmd_exec_continue)
(mi_cmd_exec_interrupt): Adjust parsing of thread group
ids to current reality, where they don't have any 'p' prefix.

15 years ago2009-06-05 Doug Kwan <dougkwan@google.com>
dougkwan [Fri, 5 Jun 2009 18:16:31 +0000 (18:16 +0000)]
2009-06-05  Doug Kwan  <dougkwan@google.com>

* object.cc (Sized_relobj::Sized_relobj): Initialize
discarded_eh_frame_shndx_ to -1U.
(Sized_relobj::do_layout): Record index of a discard .eh_frame
section.
(Sized_relobj::do_count_local_symbols): Skip local symbols in
a discarded .eh_frame section.
(Sized_relobj::do_finalize_local_symbols): Ditto.
* object.h (class Sized_relobj): Declare new member
discarded_eh_frame_shndx_.
* testsuite/Makefile.am (check_PROGRAMS): Add local_labels_test.
(local_labels_test.o, local_labels_test): New rules.
* testsuite/Makefile.in: Regenerate.

15 years ago* corelow.c (core_open): Check for core_gdbarch before calling
aristovski [Fri, 5 Jun 2009 18:08:52 +0000 (18:08 +0000)]
* corelow.c (core_open): Check for core_gdbarch before calling
gdbarch_target_signal_from_host.

15 years ago * c-exp.y (parse_number): Don't use K&R definition.
tromey [Fri, 5 Jun 2009 17:18:37 +0000 (17:18 +0000)]
* c-exp.y (parse_number): Don't use K&R definition.
(yylex): Likewise.
(yyerror): Likewise.

15 years ago2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 5 Jun 2009 16:49:14 +0000 (16:49 +0000)]
2009-06-05  H.J. Lu  <hongjiu.lu@intel.com>

* scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.

15 years ago * winbase.h (ilockexch): Fix asm constraints.
davek [Fri, 5 Jun 2009 13:53:01 +0000 (13:53 +0000)]
* winbase.h (ilockexch):  Fix asm constraints.
(ilockcmpexch):  Likewise.

15 years ago * heap.cc (heap_init): Fix typo in comment.
corinna [Fri, 5 Jun 2009 11:15:28 +0000 (11:15 +0000)]
* heap.cc (heap_init): Fix typo in comment.

15 years ago2009-06-05 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 5 Jun 2009 09:19:44 +0000 (09:19 +0000)]
2009-06-05  Tristan Gingold  <gingold@adacore.com>

* mach-o.h: Update copyright year.
(bfd_mach_o_mach_header_magic): New enum.
(bfd_mach_o_cpu_subtype): Now an enum.
(BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
(BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
(BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
(bfd_mach_o_load_command): Field type_required is now a boolean.
Reindent prototypes.
(bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
(bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
(bfd_mach_o_get_symtab_upper_bound): Ditto.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_bfd_print_private_bfd_data): Ditto.
(bfd_mach_o_make_empty_symbol): Ditto.
(bfd_mach_o_write_contents): Ditto.

* mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
bfd_mach_o_mkobject): Defines.
(bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
Do not check with target vector but with flavour.
(struct mach_o_section_name_xlat): New declaration.
(dwarf_section_names_xlat): Ditto.
(text_section_names_xlat): Ditto.
(data_section_names_xlat): Ditto.
(struct mach_o_segment_name_xlat): Ditto.
(segsec_names_xlat): Ditto.
(bfd_mach_o_convert_section_name_to_bfd): New function.
(bfd_mach_o_convert_section_name_to_mach_o): Ditto.
(bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
(bfd_mach_o_bfd_copy_private_section_data): Ditto.
(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
Accept any input and output flavour.  Do not share private data
anymore.
(bfd_mach_o_count_symbols): Add a comment.
(bfd_mach_o_get_symtab_upper_bound): Make it public.
(bfd_mach_o_canonicalize_symtab): Ditto.
(bfd_mach_o_get_symbol_info): Ditto.
(bfd_mach_o_print_symbol): Ditto.
(bfd_mach_o_write_header): Now returns a boolean instead of an int.
Use constants instead of hard-coded values.
(bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_write_section_64): Ditto.
(bfd_mach_o_scan_write_segment): Ditto.
Do not copy sections anymore.
(bfd_mach_o_write_contents): Make it public.
Remove dead code.  Rewrite typeflag assignment.
(bfd_mach_o_build_commands): New function.
(bfd_mach_o_set_section_contents): Ditto.
(bfd_mach_o_make_empty_symbol): Make it public.
(bfd_mach_o_read_header): Make it static.
Convert to bfd_boolean.
Use constants instead of hard-coded values.
(bfd_mach_o_make_bfd_section): Call
bfd_mach_o_convert_section_name_to_bfd to create name.
(bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
values.
(bfd_mach_o_scan_read_section_64): Ditto.
(bfd_mach_o_scan_read_segment): Do not create a bfd section for
a segment anymore.  Use constants instead of hard-coded values.
(bfd_mach_o_scan_read_command): Fix style.
(bfd_mach_o_scan): Use constants instead of hard-coded values.
Get rid of BFD_IO_FUNCS.
(bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
(bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
(bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
(bfd_mach_o_object_p): Removed.
(bfd_mach_o_gen_core_p): New function, replaces ...
(bfd_mach_o_core_p): ... deleted.
(bfd_mach_o_bfd_print_private_bfd_data): Make it public.

* mach-o-i386.c: New file.
* config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
* configure.in (TDEFINES): Add mach_o_i386_vec.
* configure: Regenerated.
* targets.c: Add mach_o_i386_vec.

* mach-o.c: Update copyright years.
(BFD_IO_FUNCS): Remove (was not used).
(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
bfd_mach_o_slurp_extended_name_table,
bfd_mach_o_construct_extended_name_table,
bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
bfd_mach_o_get_section_contents_in_window,
bfd_mach_o_bfd_is_local_label_name,
bfd_mach_o_bfd_is_target_special_symbol,
bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
bfd_mach_o_minisymbol_to_symbol,
bfd_mach_o_bfd_get_relocated_section_contents,
bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
bfd_mach_o_bfd_merge_private_bfd_data,
bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
bfd_mach_o_bfd_copy_private_header_data,
bfd_mach_o_core_file_matches_executable_p): Move these defines ...
* mach-o-target.c: ... here.
Update copyright years.

15 years agodaily update
amodra [Fri, 5 Jun 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Fri, 5 Jun 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago* mepcfgtool.c (do_config_cc_spec): Pass -mivc2 to gcc when
dj [Thu, 4 Jun 2009 23:09:14 +0000 (23:09 +0000)]
* mepcfgtool.c (do_config_cc_spec): Pass -mivc2 to gcc when
appropriate.

15 years agogdb/
jkratoch [Thu, 4 Jun 2009 21:56:22 +0000 (21:56 +0000)]
gdb/
* varobj.c (varobj_update): Fix out of scope varobjs to not to change.

15 years ago2009-06-04 Doug Kwan <dougkwan@google.com>
dougkwan [Thu, 4 Jun 2009 21:14:11 +0000 (21:14 +0000)]
2009-06-04  Doug Kwan  <dougkwan@google.com>

* layout.cc (Layout::section_name_mapping): Add mapping for
special ARM sections.

15 years ago * fhandler_clipboard.cc: Avoid calling system_printf.
corinna [Thu, 4 Jun 2009 17:14:53 +0000 (17:14 +0000)]
* fhandler_clipboard.cc: Avoid calling system_printf.
(set_clipboard): Add basic error checking.  Set errno here.  Per MSDN,
don't call GlobalFree on data block transferred to clipboard.
(fhandler_dev_clipboard::write): Drop setting errno after call to
set_clipboard.
(fhandler_dev_clipboard::read): Add basic error checking. Simplify code.

15 years ago * gdbint.texinfo: Rename formal parameters to gdbarch function
uweigand [Thu, 4 Jun 2009 15:15:48 +0000 (15:15 +0000)]
* gdbint.texinfo: Rename formal parameters to gdbarch function
protoypes from "current_gdbarch" to "gdbarch".

15 years ago * new-features.sgml: Add changes to console BS and Space key.
corinna [Thu, 4 Jun 2009 15:13:40 +0000 (15:13 +0000)]
* new-features.sgml: Add changes to console BS and Space key.

15 years ago * fhandler_console.cc (set_console_title): Convert title string to
corinna [Thu, 4 Jun 2009 14:59:47 +0000 (14:59 +0000)]
* fhandler_console.cc (set_console_title): Convert title string to
wchar_t and call SetConsoleTitleW.

15 years ago * symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
uweigand [Thu, 4 Jun 2009 12:28:38 +0000 (12:28 +0000)]
* symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
* ax-gdb.c (gen_var_ref): Likewise.
* findvar.c (read_var_value, symbol_read_needs_frame): Likewise.
* printcmd.c (address_info): Likewise.
* dwarf2loc.c (dwarf_expr_frame_base): Likewise.
* dwarf2read.c (dwarf2_symbol_mark_computed): Likewise.
* symtab.h: Rename struct symbol_ops to struct symbol_computed_ops.
* dwarf2loc.h: Likewise.
* dwarf2loc.c (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Likewise.

* symtab.h: (struct symbol_register_ops): New struct definition.
(struct symbol): Make "ops" member a union of symbol_computed_ops and
symbol_register_ops callback pointers.
(SYMBOL_REGISTER_OPS): New macro.
* tracepoint.c: Include "objfiles.h".
(scope_info, collect_symbol): Use SYMBOL_REGISTER_OPS register_number
callback to retrieve register numbers.
* ax-gdb.c (gen_var_ref): Likewise.
* findvar.c (read_var_value): Likewise.
* printcmd.c (address_info): Likewise.

* coffread.c (coff_reg_to_regnum): New function.
(coff_register_funcs): New static variable.
(process_coff_symbol): Do not call gdbarch_sdb_reg_to_regnum.
Install SYMBOL_REGISTER_OPS callbacks.
* mdebugread.c (mdebug_reg_to_regnum): New function.
(mdebug_register_funcs): New static variable.
(parse_symbol): Do not call gdbarch_ecoff_reg_to_regnum.
Install SYMBOL_REGISTER_OPS callbacks.
* stabsread.c (stab_reg_to_regnum): New function.
(stab_register_funcs): New static variable.
(define_symbol): Do not call gdbarch_stab_reg_to_regnum.
Install SYMBOL_REGISTER_OPS callbacks.

15 years ago * fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space to
corinna [Thu, 4 Jun 2009 09:57:34 +0000 (09:57 +0000)]
* fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space to
emit a NUL byte.

15 years ago * strings.c (main): Delay parsing of decimal digits.
amodra [Thu, 4 Jun 2009 08:27:54 +0000 (08:27 +0000)]
* strings.c (main): Delay parsing of decimal digits.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
amodra [Thu, 4 Jun 2009 06:57:56 +0000 (06:57 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1): LC_ALL for uniq.
* Makefile.in: Regenerate.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
amodra [Thu, 4 Jun 2009 06:57:40 +0000 (06:57 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1): LC_ALL for uniq.
* Makefile.in: Regenerate.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
amodra [Thu, 4 Jun 2009 06:57:12 +0000 (06:57 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1, DEPTC, DEPOBJ, DEP2): LC_ALL for uniq.
* Makefile.in: Regenerate.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
amodra [Thu, 4 Jun 2009 06:56:53 +0000 (06:56 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1): LC_ALL for uniq.
Run "make dep-am".
* Makefile.in: Regenerate.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
amodra [Thu, 4 Jun 2009 06:56:41 +0000 (06:56 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1): LC_ALL for uniq.
* Makefile.in: Regenerate.

15 years ago * dep-in.sed: Don't use \n in replacement part of s command.
amodra [Thu, 4 Jun 2009 06:51:11 +0000 (06:51 +0000)]
* dep-in.sed: Don't use \n in replacement part of s command.
* Makefile.am (DEP1): LC_ALL for uniq.
Run "make dep-am".
* Makefile.in: Regenerate.

15 years ago * thread.cc (__cygwin_lock_lock): Delete racy optimisation.
davek [Thu, 4 Jun 2009 01:45:05 +0000 (01:45 +0000)]
* thread.cc (__cygwin_lock_lock):  Delete racy optimisation.
(__cygwin_lock_unlock):  Likewise.

15 years ago2009-06-03 Doug Kwan <dougkwan@google.com>
dougkwan [Thu, 4 Jun 2009 01:31:01 +0000 (01:31 +0000)]
2009-06-03  Doug Kwan  <dougkwan@google.com>

* arm.cc (utils::sign_extend): Reverse test in gold_assert.
(utils::has_overflow): Same.

15 years ago * symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
devans [Thu, 4 Jun 2009 00:50:16 +0000 (00:50 +0000)]
* symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
after discarding its contents.

15 years ago * layout.cc (Layout::section_name_mapping): New array, replacing
ian [Thu, 4 Jun 2009 00:43:11 +0000 (00:43 +0000)]
* layout.cc (Layout::section_name_mapping): New array, replacing
Layout::linkonce_mapping.
(Layout::section_name_mapping_count): New variable, replacing
Layout::linkonce_mapping_count.
(Layout::linkonce_output_name): Remove.
(Layout::output_section_name): Rewrite.
* layout.h (class Layout): Rename Linkonce_mapping to
Section_name_mapping, linkonce_mapping to section_name_mapping,
linkonce_mapping_count to section_name_mapping_count.  Don't
declare linkonce_output_name.

15 years ago*** empty log message ***
gdbadmin [Thu, 4 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Thu, 4 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years agomerge from gcc
dj [Wed, 3 Jun 2009 21:02:16 +0000 (21:02 +0000)]
merge from gcc

15 years ago2009-06-03 Doug Kwan <dougkwan@google.com>
dougkwan [Wed, 3 Jun 2009 19:33:05 +0000 (19:33 +0000)]
2009-06-03  Doug Kwan  <dougkwan@google.com>

* gold/arm.cc (namespace utils): New.
(Target_arm::reloc_is_non_pic): Define new method.
(class Arm_relocate_functions): New.
(Target_arm::Relocate::relocate): Handle relocation types used by
Android.

15 years ago * libc/string/wcwidth.c: Optimize for speed.
corinna [Wed, 3 Jun 2009 19:28:22 +0000 (19:28 +0000)]
* libc/string/wcwidth.c: Optimize for speed.

* libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
(loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
(__locale_cjk_lang): New function.
* libc/string/local.h (__locale_cjk_lang): Declare.
* libc/string/wcwidth.c: Fix comments.
(__wcwidth): Handle CJK Ambiguous Width characters according
to setting returned by __locale_cjk_lang.

15 years ago * strfuncs.cc (sys_cp_mbstowcs): Fix condition.
corinna [Wed, 3 Jun 2009 19:04:07 +0000 (19:04 +0000)]
* strfuncs.cc (sys_cp_mbstowcs): Fix condition.

15 years ago * target.c: Include "exec.h".
palves [Wed, 3 Jun 2009 18:50:36 +0000 (18:50 +0000)]
* target.c: Include "exec.h".
(update_current_target): Don't inherit to_sections or
to_sections_end.
(target_get_section_table): New.
(target_section_by_addr): Fetch the section table from the passed
in target.
(memory_xfer_partial): Handle unmapped overlay sections before
anything else.  Get the overlay mapped address here.  Adjust to
use section_table_xfer_memory_partial.
(get_target_memory): Request a TARGET_OBJECT_RAW_MEMORY object
instead of TARGET_OBJECT_MEMORY.
(target_resize_to_sections): Delete.
(remove_target_sections): Adjust to remove target sections from
`current_target_sections', and use resize_section_table.
* target.h (struct target_ops) <to_sections, to_sections_end>:
Remove fields.
<to_get_section_table>: New method.
(xfer_memory, print_section_info): Delete declarations.
(struct target_section_table): New type.
(target_get_section_table): Declare.
(target_resize_to_sections): Delete declaration.
(remove_target_sections): Delete declaration.
* bfd-target.c (target_bfd_xfer_partial): Get the section table
from to_data.
(target_bfd_get_section_table): New.
(target_bfd_xclose): Adjust.
(target_bfd_reopen): Store the section table in the to_data field.
* corelow.c (core_data): New.
(core_close): Adjust to release core_data and its sections.
(core_open): Allocate core_data, and build its target sections
table.
(deprecated_core_resize_section_table): New.
(core_files_info): Pass core_data to print_section_info.
(core_xfer_partial): Adjust to use
section_table_xfer_memory_partial for TARGET_OBJECT_MEMORY xfers.
(init_core_ops): Do not install a deprecated_xfer_memory callback
anymore.
* solib.c (update_solib_list): Add the shared library sections
to the current target sections table.
* exec.c (current_target_sections_1): New global.
(current_target_sections): New global.
(exec_close_1): New function, refactored from exec_close.  Remove
the exec_bfd's sections from the current target sections table.
Adjust to not use to_sections.
(exec_close): Remove all target sections.  Call exec_close_1.
(exec_file_clear): Use exec_close_1 instead of unpushing the
target.
(exec_file_attach): Likewise.  Adjust to not use to_sections.  Add
exec_bfd's sections to the current target sections table.  Don't
push the exec_ops target here.
(resize_section_table): New.
(add_target_sections): New.
(remove_target_sections): Moved here.
(section_table_xfer_memory): Adjust to implement the xfer_partial
interface, and rename to...
(section_table_xfer_memory_partial): ... this, replacing the
current function of that same name.
(exec_get_section_table): New.
(exec_xfer_partial): New.
(xfer_memory): Delete.
(print_section_info): Replace the target_ops parameter by a
target_section_table parameter.
(exec_files_info, set_section_command, exec_set_section_address):
Adjust to use the current sections table.
(init_exec_ops): Do not register a deprecated_xfer_memory
callback.  Register to_xfer_partial and to_get_section_table
callbacks.
* infrun.c (handle_inferior_event): Update comments around
solib_add.
* rs6000-nat.c (xcoff_relocate_core): Adjust to use
deprecated_core_resize_section_table.
* exec.h (resize_section_table): Declare.
(section_table_xfer_memory_partial): Add const char * argument.
(remove_target_sections): Declare here.
(add_target_sections): Declare.
(print_section_info): Declare here.
* gdbcore.h (deprecated_core_resize_section_table): Declare.

15 years ago * value.h (struct internalvar): Remove.
uweigand [Wed, 3 Jun 2009 18:16:43 +0000 (18:16 +0000)]
* value.h (struct internalvar): Remove.
(get_internalvar_integer): Add prototype.
(set_internalvar_integer): Add prototype.
(clear_internalvar): Add prototype.

* value.c (struct internalvar): Move here.  Add type member.  Remove
endian member.  Add union_internalvar member instead of value member.
(init_if_undefined_command): Use intvar->type.
(create_internalvar): Do not initialize value/endian, but type.
(create_internalvar_type_lazy): Call create_internalvar.
(value_of_internalvar): Handle host-side internalvar contents.
(set_internalvar_component): Likewise.
(set_internalvar): Likewise.
(get_internalvar_integer): New function.
(clear_internalvar): Likewise.
(set_internalvar_integer): Likewise.
(preserve_values): Handle host-side internalvar contents.

* breakpoint.c (set_breakpoint_count, set_tracepoint_count): Call
set_internalvar_integer instead of set_internalvar.
* findcmd.c (find_command): Likewise.
* infrun.c (handle_inferior_event): Likewise.
* source.c (forward_search_command, reverse_search_command): Likewise.
* tracepoint.c (set_traceframe_num, set_tracepoint_num,
set_traceframe_context): Likewise.

* printcmd.c (x_command): Call clear_internalvar instead of
set_internalvar.
* tracepoint.c (set_traceframe_context): Likewise.

* breakpoint.c (get_number_trailer): Call get_internalvar_integer
instead of value_of_internalvar.
* linespec.c (decode_dollar): Likewise.

* expprint.c (dump_subexp_body_standard): Use internalvar_name
instead of accessing internalvar private elements.
* valops.c (value_assign): Copy from original source instead of
accessing internalvar private elements.

15 years ago * scm-lang.c (builtin_type_scm): Remove.
uweigand [Wed, 3 Jun 2009 18:10:06 +0000 (18:10 +0000)]
* scm-lang.c (builtin_type_scm): Remove.
(scm_lookup_name): Add GDBARCH parameter.  Use it instead of
objfile architecture.  Use per-architecture builtin_scm_type instead
of builtin_type_scm.
(evaluate_exp): Pass expression architecture to scm_lookup_name.

(scm_get_field): Add SIZE parameter.  Use it instead of
TYPE_LENGTH (builtin_type_scm).

(build_scm_types): New function.
(scm_type_data): New variable.
(builtin_scm_type): New function.
(_initialize_scheme_language): Do not initialize builtin_type_scm.
Register build_scm_types as post-init function for scm_type_data.

* scm-exp.c (scm_lreadr): Use per-architecture builtin_scm_type
instead of builtin_type_scm.

* scm-lang.h (SCM_CAR, SCM_CDR): Pass SCM_SIZE to scm_get_field.
(scm_get_field): Add SIZE paramter.
(scm_scmval_print): Remove prototype.
(builtin_type_scm): Remove.
(struct builtin_scm_type): Add structure definition.
(builtin_scm_type): Add prototype.

* scm-valprint.c (scm_inferior_print): Add TYPE parameter.  Use it
instead of builtin_core_addr type; do not use objfile architecture.
(scm_scmlist_print): Add TYPE parameter.  Use it to define SCM_SIZE.
Pass type to scm_scmval_print.
(scm_ipruk): Add TYPE parameter.  Use it to define SCM_SIZE.
(scm_scmval_print): Make static.  Add TYPE parameter.  Use it to
define SCM_SIZE.  Pass type to scm_ipruk and scm_scmlist_print.
(scm_val_print): Pass type to scm_inferior_print and scm_scmval_print.

15 years agoChangeLog:
uweigand [Wed, 3 Jun 2009 18:08:14 +0000 (18:08 +0000)]
ChangeLog:

* mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short,
mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64,
mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64,
mdebug_type_unsigned_char, mdebug_type_unsigned_short,
mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64,
mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64,
mdebug_type_unsigned_long_long_64, mdebug_type_adr_32,
mdebug_type_adr_64, mdebug_type_float, mdebug_type_double,
mdebug_type_complex, mdebug_type_double_complex,
mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string):
Remove.

(basic_type_data): New global variable.
(basic_type): New function.
(parse_type): Remove static basic type map map_bt.  Call basic_type
to get basic types instead of using mdebug_type_ variables.

(parse_symbol): Use builtin types instead of mdebug_type_ variables.
(upgrade_type): Likewise.
(parse_procedure): Likewise.
(psymtab_to_symtab_1): Likewise.

(_initialize_mdebugread): Do not initialize mdebug_type_ variables.
Initialize basic_type_data.

include/coff/ChangeLog:

* symconst.h (btLong64, btULong64, btLongLong64, btULongLong64,
btAdr64, btInt64, btUInt64): New defines.

15 years ago * dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
uweigand [Wed, 3 Jun 2009 17:47:54 +0000 (17:47 +0000)]
* dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
* dfp.c (promote_decimal): Remove.
(decimal_binop): Convert LEN_RESULT to input parameter.
Remove call to decimal_binop.
(decimal_compare): Remove call to decimal_binop.

* valarith.c (value_binop): Pass desired result type length
to decimal_binop.

15 years ago2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 3 Jun 2009 17:32:02 +0000 (17:32 +0000)]
2009-06-03  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-2-x86-64.d: Pass --64 to as and -melf_x86_64 to
ld.
* ld-ifunc/ifunc-5a-x86-64.d: Likewise.
* ld-ifunc/ifunc-5b-x86-64.d: Likewise.
* ld-ifunc/ifunc-6a-x86-64.d: Likewise.
* ld-ifunc/ifunc-6b-x86-64.d: Likewise.
* ld-ifunc/ifunc-7a-x86-64.d: Likewise.
* ld-ifunc/ifunc-7b-x86-64.d: Likewise.

* ld-ifunc/ifunc-8a-i386.s: New.
* ld-ifunc/ifunc-8a-x86-64.s: Likewise.
* ld-ifunc/ifunc-8b-i386.s: Likewise.
* ld-ifunc/ifunc-8b-x86-64.s: Likewise.
* ld-ifunc/ifunc-8-i386.d: Likewise.
* ld-ifunc/ifunc-8-x86-64.d: Likewise.

15 years ago * strfuncs.cc (sys_cp_wcstombs): Implement reverse functionality
corinna [Wed, 3 Jun 2009 17:23:39 +0000 (17:23 +0000)]
* strfuncs.cc (sys_cp_wcstombs): Implement reverse functionality
of the change to sys_cp_mbstowcs from 2009-05-30.
(sys_cp_mbstowcs): Slightly reformat.  Fix comment to accommodate
change to sys_cp_wcstombs.  Don't write to *ptr if dst is NULL.

15 years ago2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 3 Jun 2009 16:58:11 +0000 (16:58 +0000)]
2009-06-03  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.

15 years ago * gdb.arch/i386-sse.exp: Test xmm[8-15] if amd64.
devans [Wed, 3 Jun 2009 16:46:05 +0000 (16:46 +0000)]
* gdb.arch/i386-sse.exp: Test xmm[8-15] if amd64.
* gdb.arch/i386-see.c: Ditto.

15 years ago * arm.cc (Target_arm::scan::global): Use || instead of |.
ian [Wed, 3 Jun 2009 14:05:07 +0000 (14:05 +0000)]
* arm.cc (Target_arm::scan::global): Use || instead of |.

15 years ago2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 3 Jun 2009 12:35:17 +0000 (12:35 +0000)]
2009-06-03  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
GOT entry for STT_GNU_IFUNC symbol with pointer equality.
(elf_i386_relocate_section): Adjust R_386_GOT32 relocation
against STT_GNU_IFUNC symbols for static executables.
(elf_i386_finish_dynamic_symbol): Load GOT entry with
PLT entry for STT_GNU_IFUNC symbol with pointer equality.

* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
GOT entry for STT_GNU_IFUNC symbol with pointer equality.
(elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
PLT entry for STT_GNU_IFUNC symbol with pointer equality.

15 years ago * fhandler_console.cc (fhandler_console::read): Convert Alt-Backspace
corinna [Wed, 3 Jun 2009 11:07:38 +0000 (11:07 +0000)]
* fhandler_console.cc (fhandler_console::read): Convert Alt-Backspace
to \033\177 or to \377 dependent on the setting of dev_state->metabit.

15 years ago * fhandler_console.cc (fhandler_console::read): Convert Alt-Backspace
corinna [Wed, 3 Jun 2009 11:07:27 +0000 (11:07 +0000)]
* fhandler_console.cc (fhandler_console::read): Convert Alt-Backspace
to \033\177 or to \377 dependent on the setting of dev_state->metabit.

15 years ago2009-06-03 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 3 Jun 2009 08:17:20 +0000 (08:17 +0000)]
2009-06-03  Tristan Gingold  <gingold@adacore.com>

* MAINTAINERS: Add myself as Mach-O maintainer.

15 years ago * Makefile.tpl (all): Avoid a trailing backslash.
rwild [Wed, 3 Jun 2009 05:40:47 +0000 (05:40 +0000)]
    * Makefile.tpl (all): Avoid a trailing backslash.
        * Makefile.in: Regenerate.

15 years ago2009-06-02 Doug Kwan <dougkwan@google.com>
dougkwan [Wed, 3 Jun 2009 00:06:15 +0000 (00:06 +0000)]
2009-06-02  Doug Kwan  <dougkwan@google.com>

* gold/arm.cc (Target_arm::Scan::Scan):  Initialize
issued_non_pic_error_.
(class Target_arm::Scan): Declare new method check_non_pic.
Define new method symbol_needs_plt_entry.
Declare new data member issued_non_pic_error_.
(class Target_arm::Relocate): Declare new method
should_apply_static_reloc.
(Target_arm::may_need_copy_reloc): Handle STT_ARM_TFUNC.
(Target_arm::Scan::check_non_pic): Define new method.
(Target_arm::Scan::local): Handle a small subset of reloc types used
by Android.
(Target_arm::Scan::local): Same.
(Target_arm::Relocate::should_apply_statci_reloc): Define new method.

15 years ago*** empty log message ***
gdbadmin [Wed, 3 Jun 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Wed, 3 Jun 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * config.sub, config.guess: Update from upstream sources.
bje [Tue, 2 Jun 2009 23:00:59 +0000 (23:00 +0000)]
* config.sub, config.guess: Update from upstream sources.

15 years ago2009-06-02 Richard Earnshaw <rearnsha@arm.com>
jjohnstn [Tue, 2 Jun 2009 20:39:12 +0000 (20:39 +0000)]
2009-06-02  Richard Earnshaw  <rearnsha@arm.com>

        * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
        thumb2.

15 years agobfd/
rsandifo [Tue, 2 Jun 2009 18:51:33 +0000 (18:51 +0000)]
bfd/
* coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
symbols to be left unimported when linking statically.
* xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
code when linking statically.

ld/testsuite/
* ld-powerpc/aix-glink-3.s, ld-powerpc/aix-glink-3a.s,
ld-powerpc/aix-glink-3b.s, ld-powerpc/aix-glink-3.dd,
ld-powerpc/aix-glink-3-32.d, ld-powerpc/aix-glink-3-64.d: New tests.
* ld-powerpc/aix52.exp: Run them.  Move the lineno tests to maintain
alphabetical order.

15 years agobfd/
hjl [Tue, 2 Jun 2009 17:31:40 +0000 (17:31 +0000)]
bfd/

2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_check_relocs): Increment
got.refcount for R_386_GOT32/R_386_GOTOFF relocations
against STT_GNU_IFUNC symbol.
(elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
local STT_GNU_IFUNC definition is used.
(elf_i386_relocate_section): Handle got.offset != -1 for
R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
symbol.

* elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
relocations against STT_GNU_IFUNC symbol.
(elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
local STT_GNU_IFUNC definition is used.
(elf64_x86_64_relocate_section): Handle got.offset != -1
for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
STT_GNU_IFUNC symbol.

ld/testsuite/

2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-5-i386.d: Renamed to ...
* ld-ifunc/ifunc-5a-i386.d: This.

* ld-ifunc/ifunc-5-x86-64.d: Renamed to ...
* ld-ifunc/ifunc-5a-x86-64.d: This.

* ld-ifunc/ifunc-5b-i386.d: New.
* ld-ifunc/ifunc-5b-x86-64.d: Likewise.
* ld-ifunc/ifunc-6a-i386.d: Likewise.
* ld-ifunc/ifunc-6a-x86-64.d: Likewise.
* ld-ifunc/ifunc-6b-i386.d: Likewise.
* ld-ifunc/ifunc-6b-x86-64.d: Likewise.
* ld-ifunc/ifunc-6-i386.s: Likewise.
* ld-ifunc/ifunc-6-x86-64.s: Likewise.
* ld-ifunc/ifunc-7a-i386.d: Likewise.
* ld-ifunc/ifunc-7a-x86-64.d: Likewise.
* ld-ifunc/ifunc-7b-i386.d: Likewise.
* ld-ifunc/ifunc-7b-x86-64.d: Likewise.
* ld-ifunc/ifunc-7-i386.s: Likewise.
* ld-ifunc/ifunc-7-x86-64.s: Likewise.

15 years ago * po/nl.po: Updated Dutch translation.
nickc [Tue, 2 Jun 2009 16:31:58 +0000 (16:31 +0000)]
    * po/nl.po: Updated Dutch translation.

15 years ago * path.cc (path_conv::check): Don't call set_exec for files on "noacl"
corinna [Tue, 2 Jun 2009 13:29:30 +0000 (13:29 +0000)]
* path.cc (path_conv::check): Don't call set_exec for files on "noacl"
mount points.

15 years ago * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
corinna [Tue, 2 Jun 2009 09:41:05 +0000 (09:41 +0000)]
* libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
(__jp2uc): Change the scope to static function.
* libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
* libc/string/local.h (_jp2uc): Include ../ctype/local.h.

15 years ago* Makefile.tpl ([+compare-target+]): Compare all stage
aoliva [Tue, 2 Jun 2009 08:23:45 +0000 (08:23 +0000)]
* Makefile.tpl ([+compare-target+]): Compare all stage
directories, rather than just gcc.
* Makefile.in: Rebuilt.

15 years ago2009-05-29 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 2 Jun 2009 07:48:05 +0000 (07:48 +0000)]
2009-05-29  Tristan Gingold  <gingold@adacore.com>

* ia64-gen.c (parse_resource_users, print_dependency_table,
add_dis_table_ent, finish_distable, insert_bit_table_ent,
add_dis_entry, compact_distree, gen_dis_table, completer_entries_eq,
get_prefix_len, compute_completer_bits, insert_opcode_dependencies,
insert_completer_entry, print_completer_entry, print_completer_table,
opcodes_eq, add_opcode_entry, shrink): Use ISO C syntax for functions.

15 years ago*** empty log message ***
gdbadmin [Tue, 2 Jun 2009 05:00:32 +0000 (05:00 +0000)]
*** empty log message ***

15 years agomerge from gcc
dj [Mon, 1 Jun 2009 19:40:32 +0000 (19:40 +0000)]
merge from gcc

15 years ago2009-05-29 Michael Snyder <msnyder@vmware.com>
msnyder [Mon, 1 Jun 2009 19:31:50 +0000 (19:31 +0000)]
2009-05-29  Michael Snyder  <msnyder@vmware.com>

* gdb.base/break-always.exp: Change "1" to "on".
Add confirmation check.

15 years agogas/
hjl [Mon, 1 Jun 2009 16:30:56 +0000 (16:30 +0000)]
gas/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10198
* config/tc-i386-intel.c (i386_intel_operand): Check '$' as '.'.

gas/testsuite/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10198
* gas/i386/jump.s: Add test for "jmp $+2".
* gas/i386/jump16.s: Likewise.

* gas/i386/jump.d: Updated.
* gas/i386/jump16.d: Likewise.

15 years agoCorrect year.
hjl [Mon, 1 Jun 2009 15:48:14 +0000 (15:48 +0000)]
Correct year.

15 years agobfd/
hjl [Mon, 1 Jun 2009 13:11:51 +0000 (13:11 +0000)]
bfd/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10205
* elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
(elf_i386_reloc_type_lookup): Likewise.
(R_386_tls): Removed.
(R_386_irelative): New.
(R_386_vt_offset): Updated.
(elf_i386_rtype_to_howto): Likewise.
(elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
(elf_i386_link_hash_table_create): Initialize igotplt,
iplt and irelplt.
(elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
(elf_i386_adjust_dynamic_symbol): Likewise.
(elf_i386_allocate_dynrelocs): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
sections.
(elf_i386_finish_dynamic_symbol): When building a static
executable, use .iplt, .igot.plt and .rel.iplt sections for
STT_GNU_IFUNC symbols.  Generate R_386_IRELATIVE relocation for
locally defined STT_GNU_IFUNC symbol.

* elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
(x86_64_reloc_map): Likewise.
(R_X86_64_standard): Updated.
(elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
(elf64_x86_64_link_hash_table_create): Initialize igotplt,
iplt and irelplt.
(elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
(elf64_x86_64_adjust_dynamic_symbol): Likewise.
(elf64_x86_64_allocate_dynrelocs): Likewise.
(elf64_x86_64_relocate_section): Likewise.
(elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
sections.
(elf64_x86_64_finish_dynamic_symbol): When building a static
executable, use .iplt, .igot.plt and .rela.iplt sections for
STT_GNU_IFUNC symbols.  Generate R_X86_64_IRELATIVE relocation
for locally defined STT_GNU_IFUNC symbol.

* reloc.c (BFD_RELOC_386_IRELATIVE): New.
(BFD_RELOC_X86_64_IRELATIVE): Likewise.

* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.

include/elf/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10205
* i386.h (R_386_IRELATIVE): New.
* x86-64.h (R_X86_64_IRELATIVE): Likewise.

ld/testsuite/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10205
* ld-ifunc/ifunc.exp (contains_irelative_reloc): New.
Use it on executable and shared library.
Run *.d.

* ld-ifunc/lib.c: Add a hidden alias, __GI_library_func2, for
library_func2.
(library_func): New.

* ld-ifunc/ifunc-1-x86.d: New.
* ld-ifunc/ifunc-1-x86.s: Likewise.
* ld-ifunc/ifunc-2-i386.d: Likewise.
* ld-ifunc/ifunc-2-i386.s: Likewise.
* ld-ifunc/ifunc-2-x86-64.d: Likewise.
* ld-ifunc/ifunc-2-x86-64.s: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.
* ld-ifunc/ifunc-3b-x86.d: Likewise.
* ld-ifunc/ifunc-3-x86.s: Likewise.
* ld-ifunc/ifunc-4-x86.d: Likewise.
* ld-ifunc/ifunc-4-x86.s: Likewise.
* ld-ifunc/ifunc-5-i386.d: Likewise.
* ld-ifunc/ifunc-5-i386.s: Likewise.
* ld-ifunc/ifunc-5-x86-64.d: Likewise.
* ld-ifunc/ifunc-5-x86-64.s: Likewise.

15 years agobfd/
hjl [Mon, 1 Jun 2009 12:53:00 +0000 (12:53 +0000)]
bfd/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

* elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
(_bfd_elf_make_ifunc_reloc_section): Removed.
(_bfd_elf_is_ifunc_symbol): Likewise.
(_bfd_elf_create_static_ifunc_sections): New.

* elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC
symbol check to ...
(elf_link_add_object_symbols): Here.
(_bfd_elf_link_hash_hide_symbol): Don't clean plt on
STT_GNU_IFUNC symbol.
(elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol
if a STT_GNU_IFUNC symbol is referenced in a non-shared object.
(IFUNC_INFIX): Removed.
(get_ifunc_reloc_section_name): Likewise.
(_bfd_elf_make_ifunc_reloc_section): Likewise.
(_bfd_elf_is_ifunc_symbol): Likewise.
(_bfd_elf_create_static_ifunc_sections): New.

ld/

2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>

* scripttempl/elf.sc (PLT): Add "*(.iplt)".
(GOT): Add "*(.igot.plt)a" and "*(.igot)".
(GOTPLT): Add "*(.igot)".
(__rel_iplt_start): New.
(__rel_iplt_end): Likewise.
(__rela_iplt_start): Likewise.
(__rela_iplt_end): Likewise.

15 years ago2009-06-01 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 1 Jun 2009 08:12:19 +0000 (08:12 +0000)]
2009-06-01  Tristan Gingold  <gingold@adacore.com>

* configure.tgt (avr): Set gdb_sim to use the simulator.

15 years ago PR 10199
amodra [Mon, 1 Jun 2009 01:50:45 +0000 (01:50 +0000)]
PR 10199
* doc/binutils.texi (nm): Correct -S description.

15 years agodaily update
amodra [Mon, 1 Jun 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 1 Jun 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * incremental.cc (Incremental_inputs::report_command_line): Filter
ian [Sun, 31 May 2009 23:07:26 +0000 (23:07 +0000)]
* incremental.cc (Incremental_inputs::report_command_line): Filter
out --incremental-* options.

15 years ago* strfuncs.cc (sys_cp_mbstowcs): Treat src as unsigned char *. Convert failure
cgf [Sun, 31 May 2009 03:59:38 +0000 (03:59 +0000)]
* strfuncs.cc (sys_cp_mbstowcs): Treat src as unsigned char *.  Convert failure
of f_mbtowc into a single malformed utf-16 value.

15 years ago*** empty log message ***
gdbadmin [Sun, 31 May 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Sun, 31 May 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago* cygwin/include/sys/termios.h: Make default erase character "^?".
cgf [Sat, 30 May 2009 17:21:20 +0000 (17:21 +0000)]
* cygwin/include/sys/termios.h: Make default erase character "^?".

15 years ago * gdb.base/macscp.exp (info_macro): Return undefined if undefined.
muller [Sat, 30 May 2009 07:58:42 +0000 (07:58 +0000)]
* gdb.base/macscp.exp (info_macro): Return undefined if undefined.
(check_macro): Return 1 if undefined.
If first test fails, check if macro debug information is available,
and report unsupported test if no macro information is found.

15 years ago* fhandler_console.cc (fhandler_console::read): Convert backspace key to DEL.
cgf [Sat, 30 May 2009 05:51:41 +0000 (05:51 +0000)]
* fhandler_console.cc (fhandler_console::read): Convert backspace key to DEL.

15 years agomerge from gcc
dj [Sat, 30 May 2009 05:18:46 +0000 (05:18 +0000)]
merge from gcc

15 years ago2009-05-29 Doug Kwan <dougkwan@google.com>
dougkwan [Sat, 30 May 2009 00:55:41 +0000 (00:55 +0000)]
2009-05-29  Doug Kwan  <dougkwan@google.com>

* gold/arm.cc (Output_data_plt_arm): Forward declaration for new
template class.
(class Target_arm): Update comment.
(Target_arm::Target_arm): Initialize new data members GOT_,
PLT_, GOT_PLT_, REL_DYN_, COPY_RELOCS_ and DYNBSS_.
Declare new methods Target_arm::got_section, Target_arm::make_plt_entry
and Target_arm::rel_dyn_section.
Declare new_enum Target_arm::Got_type.
Declare new data members GOT_, PLT_, GOT_PLT_, REL_DYN_, COPY_RELOCS_
and DYNBSS_.
Update commments for member do_dynsym_value.
(Target_arm::got_size, Target_arm::plt_section,
Target_arm::may_need_copy_reloc and Target_arm::copy_reloc): Define
new methods inside class defintion.
(Target_arm::got_section): Define new method.
(Target_arm::rel_dyn_section): Same.
(Output_data_plt_arm): New template class.
(Output_data_plt_arm::Output_data_plt_arm): Define constructor.
(Output_data_plt_arm:do_adjust_output_section): Define new method.
(Output_data_plt_arm::add_entry): Same.
(Output_data_plt_arm::first_plt_entry): Define new
static data member for PLT instruction template.
(Output_data_plt_arm::plt_entry): Same.
(Output_data_plt_arm::do_write): Define new method.
(Target_arm::make_plt_entry): Same.
(Target_arm::do_finalize_sections): Same.
(Target_arm::do_dynsym_value): Same.

15 years ago * infrun.c (prepare_to_proceed): Document. Assert !non_stop.
devans [Sat, 30 May 2009 00:19:12 +0000 (00:19 +0000)]
* infrun.c (prepare_to_proceed): Document.  Assert !non_stop.
If scheduler-locking is enabled, we're not going to be singlestepping
any other previously stopped thread.

* gdb.threads/hand-call-in-threads.exp: New file.
* gdb.threads/hand-call-in-threads.c: New file.

15 years ago*** empty log message ***
gdbadmin [Sat, 30 May 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Sat, 30 May 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agomerge from gcc
dj [Fri, 29 May 2009 21:01:50 +0000 (21:01 +0000)]
merge from gcc

15 years ago2009-05-29 Kai Tietz <kai.tietz@onevision.com>
ktietz [Fri, 29 May 2009 20:19:14 +0000 (20:19 +0000)]
2009-05-29  Kai Tietz  <kai.tietz@onevision.com>

        * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.

15 years ago* path.cc (cwdstuff::set): Rewrite previous change to properly test the end of
cgf [Fri, 29 May 2009 20:18:49 +0000 (20:18 +0000)]
* path.cc (cwdstuff::set): Rewrite previous change to properly test the end of
the buffer.

15 years ago * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
palves [Fri, 29 May 2009 19:06:11 +0000 (19:06 +0000)]
* mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.

15 years ago2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 29 May 2009 18:30:30 +0000 (18:30 +0000)]
2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix.
(create_got_section): Likewise.
(allocate_dynrelocs): Likewise.
(readonly_dynrelocs): Likewise.
(set_tls_module_base): Likewise.
(dtpoff_base): Likewise.
(tpoff): Likewise.
(elf_i386_link_hash_table_create): Updated.
(elf_i386_create_dynamic_sections): Likewise.
(elf_i386_check_relocs): Likewise.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Likewise.

* elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix.
(create_got_section): Likewise.
(allocate_dynrelocs): Likewise.
(readonly_dynrelocs): Likewise.
(set_tls_module_base): Likewise.
(dtpoff_base): Likewise.
(tpoff): Likewise.
(elf64_x86_64_link_hash_table_create): Updated.
(elf64_x86_64_create_dynamic_sections): Likewise.
(elf64_x86_64_check_relocs): Likewise.
(elf64_x86_64_size_dynamic_sections): Likewise.
(elf64_x86_64_relocate_section): Likewise.