OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
14 years ago * elf32-ppc.c (ppc_elf_check_relocs): Always set up sections
amodra [Wed, 29 Jul 2009 14:56:36 +0000 (14:56 +0000)]
* elf32-ppc.c (ppc_elf_check_relocs): Always set up sections
used by indirect function support.  Count dynamic relocs for
ifunc syms.
(ppc_elf_adjust_dynamic_symbol): Tweak for ifunc.
(allocate_dynrelocs): Allocate all non-dynamic ifunc plt entries
in iplt and their relocs in reliplt.  Don't make ifunc syms
dynamic.  Allocate got entry relocs for non-dynamic ifunc in
reliplt.  Handle other dynamic relocs for ifunc.
(ppc_elf_size_dynamic_sections): Alloc dyn relocs for static
ifunc in reliplt, likewise relocs for got against local ifunc.
Typo fix on reliplt size adjust.
(ppc_elf_relocate_section): Don't use plt scheme of allocating
relocs 1-1 with entries for iplt, instead just add using
reloc_count.  Write got relocs and dyn relocs for ifunc to reliplt.
Error on invalid ifunc dyn relocs.
(ppc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt
in iplt/reliplt.
* elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_JMP_IREL,
R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI, R_PPC64_REL16_HA.
(ppc64_elf_reloc_type_lookup): Handle new relocs.
(ppc64_elf_check_relocs): Likewise.  Count dyn relocs for ifunc.
(allocate_dynrelocs): As for elf32-ppc.c above.
(ppc64_elf_size_dynamic_sections): Likewise.
(ppc_build_one_stub): Put non-dynamic ifunc plt call stubs in iplt,
and their relocs in reliplt.  Use R_PPC64_JMP_IREL.
(ppc_size_one_stub): Similarly.
(ppc64_elf_relocate_section): As for elf32-ppc.c above.  Handle new
relocs too.
(ppc64_elf_finish_dynamic_symbol): As for elf32-ppc.c above.

14 years ago * ppc64.h: Add R_PPC64_JMP_IREL, R_PPC64_REL16, R_PPC64_REL16_LO,
amodra [Wed, 29 Jul 2009 14:55:20 +0000 (14:55 +0000)]
* ppc64.h: Add R_PPC64_JMP_IREL, R_PPC64_REL16, R_PPC64_REL16_LO,
R_PPC64_REL16_HI, R_PPC64_REL16_HA.

14 years ago * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
corinna [Wed, 29 Jul 2009 08:31:28 +0000 (08:31 +0000)]
* libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
pair handling to be more bullet-proof even with incomplete UTF-8
sequences.  Add check for 4 byte sequences resulting in values
outside the valid Unicode range.  Add a comment to clarify checking
for invalid CESU-8 sequences.

14 years agoCorrect disposition of wchar_t output in printf().
keithmarshall [Wed, 29 Jul 2009 07:22:50 +0000 (07:22 +0000)]
Correct disposition of wchar_t output in printf().

14 years ago * ld-scripts/default-script.s (text): Globalize.
hp [Wed, 29 Jul 2009 06:47:48 +0000 (06:47 +0000)]
* ld-scripts/default-script.s (text): Globalize.
* ld-scripts/default-script1.d, ld-scripts/default-script2.d,
ld-scripts/default-script3.d, ld-scripts/default-script4.d: Adjust
accordingly.

14 years ago PR ld/10269
amodra [Wed, 29 Jul 2009 06:22:11 +0000 (06:22 +0000)]
PR ld/10269
* symbols.c (S_FORCE_RELOC): True for BSF_GNU_INDIRECT_FUNCTION.
* config/tc-i386.c: Revert 2009-06-13 change.
* config/tc-i386.h: Likewise.

14 years ago * binutils-all/testranges.s: Replace .value with .short.
amodra [Wed, 29 Jul 2009 06:10:17 +0000 (06:10 +0000)]
* binutils-all/testranges.s: Replace .value with .short.

14 years ago* mep/gmap_default.ld: Add linkonce sections for .vtext.
dj [Wed, 29 Jul 2009 00:57:57 +0000 (00:57 +0000)]
* mep/gmap_default.ld: Add linkonce sections for .vtext.
* mep/default.ld: Likewise.
* mep/fmax.ld: Likewise.
* mep/simple.ld: Likewise.

14 years ago * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
hp [Wed, 29 Jul 2009 00:25:21 +0000 (00:25 +0000)]
* scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
(OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
(ENTRY): Don't emit for relocateable links.
(/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
* emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
elf64-mmix.
* emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
provide "Main" or set "_start.", for relocateable links.

14 years ago*** empty log message ***
gdbadmin [Wed, 29 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Wed, 29 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * elf64-mmix.c (mmix_elf_relax_section): Revert 2009-05-27
hp [Tue, 28 Jul 2009 23:45:22 +0000 (23:45 +0000)]
* elf64-mmix.c (mmix_elf_relax_section): Revert 2009-05-27
change.  Add note to head comment.

14 years ago * NEWS: Mention ARM VFP support.
drow [Tue, 28 Jul 2009 18:26:49 +0000 (18:26 +0000)]
* NEWS: Mention ARM VFP support.
* target-descriptions.c (tdesc_register_type): Make public.
(tdesc_unnumbered_register): New function.
(tdesc_register_reggroup_p): Allow missing
pseudo_register_reggroup_p.
* target-descriptions.h (tdesc_register_type): Declare.
(tdesc_unnumbered_register): Declare.
* arm-tdep.c (arm_neon_quad_read, arm_neon_quad_write): New functions.
(arm_push_dummy_call): Use arm_neon_quad_write.
(arm_neon_double_type, arm_neon_quad_type): New functions.
(arm_register_type): Handle VFP and NEON registers.  Override the
types of double-precision registers for NEON.  Disable FPA registers
if they are not present.
(arm_dwarf_reg_to_regnum): Add current VFP and NEON register numbers.
(arm_return_value): Use arm_neon_quad_write and arm_neon_quad_read.
(arm_register_name): Handle VFP single and NEON quad registers.
(arm_pseudo_read, arm_pseudo_write): New functions.
(arm_gdbarch_init): Check for VFP and NEON in the target description.
Assign numbers to double-precision registers.  Register VFP and NEON
pseudo registers.  Remove a shadowed "i" variable.
* arm-tdep.h (enum gdb_regnum): Add ARM_D0_REGNUM and
ARM_D31_REGNUM.
(struct gdbarch_tdep): Add have_neon_pseudos, have_neon,
have_vfp_registers, have_vfp_pseudos, neon_double_type,
and neon_quad_type.

* features/Makefile: Make expedite settings only architecture
specific.
(WHICH): Add new ARM descriptions.
* features/arm-with-neon.xml, features/arm-with-vfpv2.c,
features/arm-with-vfpv3.c, features/arm-vfpv2.xml,
features/arm-vfpv3.xml, features/arm-with-vfpv2.xml,
features/arm-with-vfpv3.xml, features/arm-with-neon.c: New files.
* regformats/arm-with-neon.dat, regformats/arm-with-vfpv2.dat,
regformats/arm-with-vfpv3.dat: Generate.

doc/
* gdb.texinfo (ARM Features): Document org.gnu.gdb.arm.vfp and
org.gnu.gdb.arm.neon.

gdbserver/
* linux-low.c (linux_write_memory): Update debugging output.
* Makefile.in (clean): Add new descriptions.
(arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
(arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
* configure.srv: Add new files for arm*-*-linux*.
* linux-arm-low.c: Add new declarations.
(PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
(arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
(HWCAP_VFPv3D16): New.
(arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
instead of __IWMMXT__.
(arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
(arm_arch_setup): New.
(target_regsets): Remove #ifdef.  Add VFP regset.
(the_low_target): Use arm_arch_setup.

testsuite/
* gdb.base/float.exp: Handle VFP registers.

14 years ago * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
drow [Tue, 28 Jul 2009 17:44:29 +0000 (17:44 +0000)]
* linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
the main thread again.

14 years ago * infrun.c (handle_inferior_event): Clear trap_expected after
drow [Tue, 28 Jul 2009 17:43:58 +0000 (17:43 +0000)]
* infrun.c (handle_inferior_event): Clear trap_expected after
stepping past a single-step breakpoint.

14 years ago * arm-tdep.c (enum arm_vfp_cprc_base_type,
drow [Tue, 28 Jul 2009 17:30:46 +0000 (17:30 +0000)]
* arm-tdep.c (enum arm_vfp_cprc_base_type,
arm_vfp_cprc_unit_length, arm_vfp_cprc_reg_char,
arm_vfp_cprc_sub_candidate, arm_vfp_call_candidate,
arm_vfp_abi_for_function): New.
(arm_push_dummy_call): Handle VFP ABI.
(arm_extract_return_value, arm_store_return_value): Handle
ARM_FLOAT_VFP case.
(arm_return_value): Handle VFP ABI.
(arm_gdbarch_init): Default fp_model based on Tag_ABI_VFP_args for
EABI binaries.

14 years ago * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
corinna [Tue, 28 Jul 2009 16:49:14 +0000 (16:49 +0000)]
* libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
of handling incomplete sequences.

14 years ago * arch-utils.c (displaced_step_at_entry_point): Do not call
drow [Tue, 28 Jul 2009 16:39:06 +0000 (16:39 +0000)]
* arch-utils.c (displaced_step_at_entry_point): Do not call
gdbarch_convert_from_func_ptr_addr.
* cris-tdep.c: Remove outdated comment.
* infcall.c (call_function_by_hand): Do not call
gdbarch_convert_from_func_ptr_addr after entry_point_address.
* objfiles.c (entry_point_address): Call both
gdbarch_convert_from_func_ptr_addr and
gdbarch_addr_bits_remove.

14 years ago * arch-utils.c (displaced_step_at_entry_point): Do not call
drow [Tue, 28 Jul 2009 16:38:46 +0000 (16:38 +0000)]
* arch-utils.c (displaced_step_at_entry_point): Do not call
gdbarch_convert_from_func_ptr_addr.
* cris-tdep.c: Remove outdated comment.
* infcall.c (call_function_by_hand): Do not call
gdbarch_convert_from_func_ptr_addr after entry_point_address.
* objfiles.c (entry_point_address): Call both
gdbarch_convert_from_func_ptr_addr and
gdbarch_addr_bits_remove.

14 years agoRevert previous commit.
palves [Tue, 28 Jul 2009 15:22:20 +0000 (15:22 +0000)]
Revert previous commit.

14 years ago * bfd-target.c (target_bfd_xclose): Only close the bfd if the
palves [Tue, 28 Jul 2009 15:05:01 +0000 (15:05 +0000)]
* bfd-target.c (target_bfd_xclose): Only close the bfd if the
section tarble is not empty.
(target_bfd_reopen): If the section table ends up empty, close the
bfd here.

14 years ago * nto-tdep.c (nto_thread_state_str): New array.
aristovski [Tue, 28 Jul 2009 13:20:25 +0000 (13:20 +0000)]
* nto-tdep.c (nto_thread_state_str): New array.
(nto_extra_thread_info): New function definition.
* nto-tdep.h (gdbthread.h): New include.
(private_thread_info): New struct.
(nto_extra_thread_info): New declaration.
* nto-procfs.c (procfs_thread_alive): Properly check if
thread is still alive.
(update_thread_private_data_name, update_thread_private_data): New
function definition.
(procfs_find_new_threads): Fetch thread private data.
(init_procfs_ops): Register to_extra_thread_info.

14 years ago * mount.h (enum fs_info_type): New type.
corinna [Tue, 28 Jul 2009 10:39:55 +0000 (10:39 +0000)]
* mount.h (enum fs_info_type): New type.
(IMPLEMENT_FS_FLAG): New define.
(class fs_info): Convert filesystem type status flags into an enum
fs_info_type.  Add cifs FS.  Revert change to has_buggy_open and
has_buggy_fileid_dirinfo.  Make them normal; status flags again.
Implement is_FS functions using IMPLEMENT_FS_FLAG.
* mount.cc (fs_info::update): Define MINIMAL_WIN_NTFS_FLAGS and
FS_IS_WINDOWS_NTFS.  Add comment.  Only test remote filesystems
for "NTFS" once.  Add is_cifs check using FS_IS_WINDOWS_NTFS.
Set has_buggy_open flag for SUNWNFS.  Set has_buggy_fileid_dirinfo
flag for UNIXFS and all cifs type filesystems.  Only check for
caseinsensitivity once.
(fillout_mntent): Create locale fs_names array.  Use for setting
_my_tls.locals.mnt_type.

14 years agobfd/
jbeulich [Tue, 28 Jul 2009 06:22:01 +0000 (06:22 +0000)]
bfd/
2009-07-28  Jan Beulich  <jbeulich@novell.com>

* archive.c (get_extended_arelt_filename): Remove redundant
range check on index.

14 years agogas/
jbeulich [Tue, 28 Jul 2009 06:20:49 +0000 (06:20 +0000)]
gas/
2009-07-28  Jan Beulich  <jbeulich@novell.com>

* expr.c (op_rank): Specify size. Remove O_md* initializers.

14 years ago2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Tue, 28 Jul 2009 01:28:22 +0000 (01:28 +0000)]
2009-07-27  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * mingwex/stdio/pformat.c: Implement better fix for type punned warning.

14 years agodaily update
amodra [Tue, 28 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Tue, 28 Jul 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago2009-07-27 Doug Kwan <dougkwan@google.com>
dougkwan [Mon, 27 Jul 2009 23:04:05 +0000 (23:04 +0000)]
2009-07-27  Doug Kwan  <dougkwan@google.com>

        * elf32-arm.c (stub_hash_newfunc): Initialize field output_name.

14 years agoConvert to monolithic configuration procedure.
keithmarshall [Mon, 27 Jul 2009 20:27:08 +0000 (20:27 +0000)]
Convert to monolithic configuration procedure.

14 years ago * config/tc-m68k.c (mcf5221x_ctrl): New.
mkuvyrkov [Mon, 27 Jul 2009 20:07:00 +0000 (20:07 +0000)]
* config/tc-m68k.c (mcf5221x_ctrl): New.
(m68k_cpu): Add line for MCF5221x.

14 years ago * config/tc-m68k.c (mcf52235_ctrl): Remove non-existent CACR, ACR[01].
mkuvyrkov [Mon, 27 Jul 2009 20:05:03 +0000 (20:05 +0000)]
* config/tc-m68k.c (mcf52235_ctrl): Remove non-existent CACR, ACR[01].
(mcf53017_ctrl): Fix RAMBAR.

14 years agomerge from gcc
dj [Mon, 27 Jul 2009 19:01:17 +0000 (19:01 +0000)]
merge from gcc

14 years ago PR 10413
nickc [Mon, 27 Jul 2009 17:08:03 +0000 (17:08 +0000)]
    PR 10413
        * objdump.c (dump_section_header): Skip sections that we are
        ignoring.

14 years ago * (po/fi.po): Updated Finnish translation.
nickc [Mon, 27 Jul 2009 15:07:38 +0000 (15:07 +0000)]
    * (po/fi.po): Updated Finnish translation.

14 years ago2009-07-27 H.J. Lu <hongjiu.lu@intel.com>
hjl [Mon, 27 Jul 2009 14:06:33 +0000 (14:06 +0000)]
2009-07-27  H.J. Lu  <hongjiu.lu@intel.com>

* archures.c bfd_*_arch): Sorted.
(bfd_archures_list): Likewise.

14 years ago * include/winnt.h (FILE_SUPPORTS_HARD_LINKS,
corinna [Mon, 27 Jul 2009 11:40:25 +0000 (11:40 +0000)]
* include/winnt.h (FILE_SUPPORTS_HARD_LINKS,
FILE_SUPPORTS_EXTENDED_ATTRIBUTES, FILE_SUPPORTS_OPEN_BY_FILE_ID,
FILE_SUPPORTS_USN_JOURNALS): Define.  Add comment.
* include/ddk/ntifs.h: Ditto.
(FILE_SEQUENTIAL_WRITE_ONCE, FILE_SUPPORTS_TRANSACTIONS): Define.

14 years agogas/
jbeulich [Mon, 27 Jul 2009 10:04:22 +0000 (10:04 +0000)]
gas/
2009-07-27  Jan Beulich  <jbeulich@novell.com>

* obj-elf.c (elf_file_symbol): Replace symbol name set up by
symbol_new() with the passed in, unmodified one.

gas/testsuite/
2009-07-27  Jan Beulich  <jbeulich@novell.com>

* gas/elf/file.[ds]: New.
* gas/elf/elf.exp: Run new test.

14 years ago * posix.sgml (std-notes): Remove obsolete reference to CYGWIN=server.
corinna [Mon, 27 Jul 2009 08:05:47 +0000 (08:05 +0000)]
* posix.sgml (std-notes): Remove obsolete reference to CYGWIN=server.

14 years ago2009-07-27 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
swami [Mon, 27 Jul 2009 07:05:24 +0000 (07:05 +0000)]
2009-07-27  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

* config/tc-cr16.c (md_apply_fix): Put the addend value alone in to
object file without symbol values.
(tc_gen_reloc): For local symbols resolved or its absolute symbol,
  then set the relocation type as NULL.

14 years ago2009-07-26 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
swami [Mon, 27 Jul 2009 06:52:33 +0000 (06:52 +0000)]
2009-07-26  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

      * elf32-cr16.c (elf_cr16_final_link_relocate): Add code to handle
       to R_cr16_NUM32 relocation.

14 years ago2009-07-26 Michael Eager <eager@eagercon.com>
msnyder [Mon, 27 Jul 2009 02:32:48 +0000 (02:32 +0000)]
2009-07-26  Michael Eager  <eager@eagercon.com>

* archures.c: Add bfd_mach_ppc_405
* bfd-in2.h: Same.

14 years ago*** empty log message ***
gdbadmin [Mon, 27 Jul 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Mon, 27 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * posix.sgml (std-notes): Add flock restriction.
corinna [Sun, 26 Jul 2009 09:34:35 +0000 (09:34 +0000)]
* posix.sgml (std-notes): Add flock restriction.

14 years ago*** empty log message ***
gdbadmin [Sun, 26 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Sun, 26 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * stack.c (backtrace_command_1): Remove dead check of NULL current
palves [Sat, 25 Jul 2009 16:03:53 +0000 (16:03 +0000)]
* stack.c (backtrace_command_1): Remove dead check of NULL current
frame.

14 years ago2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
hjl [Sat, 25 Jul 2009 15:50:19 +0000 (15:50 +0000)]
2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* cpu-i386.c (bfd_x86_64_arch): Fix comment typos.
* cpu-l1om.c (bfd_l1om_arch): Likewise.

14 years agoAdd missing files.
hjl [Sat, 25 Jul 2009 15:08:26 +0000 (15:08 +0000)]
Add missing files.

14 years agobfd/
hjl [Sat, 25 Jul 2009 14:58:51 +0000 (14:58 +0000)]
bfd/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* archures.c (bfd_architecture): Add bfd_arch_l1om.
(bfd_l1om_arch): New.
(bfd_archures_list): Add &bfd_l1om_arch.
* bfd-in2.h: Regenerated.

* config.bfd (targ64_selvecs): Add bfd_elf64_l1om_vec if
bfd_elf64_x86_64_vec is supported.  Add bfd_elf64_l1om_freebsd_vec
if bfd_elf64_x86_64_freebsd_vec is supported.
(targ_selvecs): Likewise.

* configure.in: Support bfd_elf64_l1om_vec and
bfd_elf64_l1om_freebsd_vec.
* configure: Regenerated.

* cpu-l1om.c: New.

* elf64-x86-64.c (elf64_l1om_elf_object_p): New.
(bfd_elf64_l1om_vec): Likewise.
(bfd_elf64_l1om_freebsd_vec): Likewise.

* Makefile.am (ALL_MACHINES): Add cpu-l1om.lo.
(ALL_MACHINES_CFILES): Add cpu-l1om.c.
* Makefile.in: Regenerated.

* targets.c (bfd_elf64_l1om_vec): New.
(bfd_elf64_l1om_freebsd_vec): Likewise.
(_bfd_target_vector): Add bfd_elf64_l1om_vec and
bfd_elf64_l1om_freebsd_vec.

binutils/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (guess_is_rela): Handle EM_L1OM.
(dump_relocations): Likewise.
(get_machine_name): Likewise.
(get_section_type_name): Likewise.
(get_elf_section_flags): Likewise.
(get_symbol_index_type): Likewise.
(is_32bit_abs_reloc): Likewise.
(is_32bit_pcrel_reloc): Likewise.
(is_64bit_abs_reloc): Likewise.
(is_64bit_pcrel_reloc): Likewise.
(is_none_reloc): Likewise.

gas/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (cpu_arch): Add l1om.
(check_cpu_arch_compatible): New.
(set_cpu_arch): Use it.
(i386_arch): New.
(i386_mach): Return bfd_mach_l1om for Intel L1OM.
(md_show_usage): Display l1om.
(i386_target_format): Return ELF_TARGET_L1OM_FORMAT if
cpu_arch_isa_flags.bitfield.cpul1om is set.

* config/tc-i386.h (TARGET_ARCH): Use (i386_arch ()).
(i386_arch): New.
(ELF_TARGET_L1OM_FORMAT): Likewise.

* doc/c-i386.texi: Document l1om.

gas/testsuite/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/l1om.d: New.
* gas/i386/l1om-inval.l: Likewise.
* gas/i386/l1om-inval.s: Likewise.

* gas/i386/i386.exp: Run l1om-inval and l1om.

include/elf/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (EM_L1OM): New.

ld/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
is supported.  Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
(targ_extra_emuls): Likewise.

* Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
eelf_l1om_fbsd.o
(eelf_l1om.c): New.
(eelf_l1om_fbsd.c): Likewise.
* Makefile.in: Regenerated.

* emulparams/elf_l1om.sh: New.
* emulparams/elf_l1om_fbsd.sh: Likewise.

ld/testsuite/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* ld-x86-64/abs-l1om.d: New.
* ld-x86-64/protected2-l1om.d: Likewise.
* ld-x86-64/protected3-l1om.d: Likewise.

* ld-x86-64/x86-64.exp: Run abs-l1om, protected2-l1om and
protected3-l1om.

opcodes/

2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* configure.in: Handle bfd_l1om_arch.
* disassemble.c (disassembler): Likewise.

* configure: Regenerated.

* i386-dis.c (print_insn): Handle bfd_mach_l1om and
bfd_mach_l1om_intel_syntax.  Use 8 bytes per line for Intel L1OM.

* i386-gen.c (cpu_flag_init): Set CPU_UNKNOWN_FLAGS to ~CpuL1OM.
Add CPU_L1OM_FLAGS.
(cpu_flags): Add CpuL1OM.
(set_bitfield): Take an argument to set the value field.
(process_i386_cpu_flag): Support ~CpuXXX and ~(CpuXXX|CpuYYY).
(process_i386_opcode_modifier): Updated.
(process_i386_operand_type): Likewise.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

* i386-opc.h (CpuL1OM): New.
(CpuXsave): Updated.
(i386_cpu_flags): Add cpul1om.

14 years agomerge from gcc
dj [Sat, 25 Jul 2009 11:28:15 +0000 (11:28 +0000)]
merge from gcc

14 years ago * fhandler_console.cc (set_console_title): Set buffer size to
corinna [Sat, 25 Jul 2009 08:27:09 +0000 (08:27 +0000)]
* fhandler_console.cc (set_console_title): Set buffer size to
TITLESIZE + 1.  Call sys_mbstowcs with correct destination length.

14 years agomerge from gcc
dj [Sat, 25 Jul 2009 00:01:58 +0000 (00:01 +0000)]
merge from gcc

14 years agomerge from gcc
dj [Sat, 25 Jul 2009 00:01:48 +0000 (00:01 +0000)]
merge from gcc

14 years ago*** empty log message ***
gdbadmin [Sat, 25 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Sat, 25 Jul 2009 00:00:09 +0000 (00:00 +0000)]
daily update

14 years agoChangeLog fix
roland [Fri, 24 Jul 2009 23:51:13 +0000 (23:51 +0000)]
ChangeLog fix

14 years ago2009-07-24 Roland McGrath <roland@redhat.com>
roland [Fri, 24 Jul 2009 23:49:50 +0000 (23:49 +0000)]
2009-07-24  Roland McGrath  <roland@redhat.com>

* config/obj-elf.c (obj_elf_ident): Set SEC_MERGE | SEC_STRINGS
flags on .comment section.

14 years ago2009-07-24 Chris Demetriou <cgd@google.com>
cgd [Fri, 24 Jul 2009 23:13:51 +0000 (23:13 +0000)]
2009-07-24  Chris Demetriou  <cgd@google.com>

        * layout.cc (is_compressible_debug_section): Fix incorrect
        comment about compressed section names.

14 years ago* sigproc.h (wait_for_sigthread): Eliminate parameter.
cgf [Fri, 24 Jul 2009 20:54:32 +0000 (20:54 +0000)]
* sigproc.h (wait_for_sigthread): Eliminate parameter.
* sigproc.cc (wait_for_sigthread): Ditto.  Don't synchronize with wait_sig
after receiving an event that it is ready to go.
(init_sig_pipe): New function.
(wait_sig): Call init_sig_pipe to create pipes for communicating signals to
this process.  Don't send sigCONT signal when initializing.
* fork.cc (frok::child): Accommodate wait_for_sigpipe parameter change.
* fhandler.h (fhandler_*::write): Make ssize_t/__stdcall.
(fhandler_*::write_overlapped): Ditto.
(fhandler_*::raw_write): Ditto.
(fhandler_*::readv): Ditto.
(fhandler_*::writev): Ditto.
(fhandler_*::raw_read): Make __stdcall.
* fhandler: Accommodate changes to read/write functions throughout.
* fhandler_clipboard.cc: Ditto.
* fhandler_console.cc: Ditto.
* fhandler_dsp.cc: Ditto.
* fhandler_fifo.cc: Ditto.
* fhandler_mailslot.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_random.cc: Ditto.
* fhandler_tape.cc: Ditto.
* fhandler_tty.cc: Ditto.
* fhandler_virtual.cc: Ditto.
* fhandler_windows.cc: Ditto.
* fhandler_zero.cc: Ditto.
* syscalls.cc (readv): Use ssize_t as temp variable.
* fhandler.cc (fhandler_base::read): Coerce returned len to signed or it will
never be treated as < 0.
(fhandler_base::wait_overlapped): Minimize calls to GetLastError.  Remove
duplicate debugging test.  Fix error return.
* fhandler.h (fhandler_fifo::fifo_name): Declare new function.
(fhandler_fifo::close): Ditto.
(fhandler_fifo::dup): Ditto.
(fhandler_fifo::close_on_exec): Ditto.
* fhandler.cc (fhandler_fifo::fifo_name): Define new function.
(FIFO_BUF_SIZE): New define.
(cnp): Ditto.
(fhandler_fifo::open): Rework.  Use cnp to open named pipe.  Always open write
side as a client.  Open dummy client when writing and can't connect.
(wait): Rework.  Implement fifo_wait_for_next_client.  Handle signals during
connect better.  Add new fifo_wait_for_server code which polls
(sigh) waiting for server.
(fhandler_fifo::raw_read): Handle transition states when one client closes and
another is available.
(fhandler_fifo::close): Define.
(fhandler_fifo::dup): Ditto.
(fhandler_fifo::close_on_exec): Ditto.

14 years agoinclude/elf/
tsmigiel [Fri, 24 Jul 2009 19:51:26 +0000 (19:51 +0000)]
include/elf/
        * spu.h (R_SPU_ADD_PIC): New.
bfd/
        * reloc.c (BFD_RELOC_SPU_ADD_PIC): Define.
        * bfd-in2.h: Regenerate.
        * libbfd.h: Regenerate.
        * elf32-spu.c (elf_howto_table): Add entries SPU_ADD_PIC.
        (spu_elf_bfd_to_reloc_type): Handle SPU_ADD_PIC.
        (spu_elf_relocate_section): Patch instructions marked by SPU_ADD_PIC.
gas/
        * config/tc-spu.c (md_apply_fix): Handle SPU_ADD_PIC.
        * config/tc-spu.h (tc_fix_adjustable): Don't adjust for SPU_ADD_PIC.
        (TC_FORCE_RELOCATION): Emit relocs for SPU_ADD_PIC.
ld/testsuite/
        * ld-spu/pic.d: New.
        * ld-spu/pic.s: New.
        * ld-spu/picdef.s: New.

14 years ago * syscalls.cc (internal_setlocale): Fix typo in GBK codepage.
corinna [Fri, 24 Jul 2009 18:24:57 +0000 (18:24 +0000)]
* syscalls.cc (internal_setlocale): Fix typo in GBK codepage.

14 years agogas/
jbeulich [Fri, 24 Jul 2009 15:41:18 +0000 (15:41 +0000)]
gas/
2009-07-24  Jan Beulich  <jbeulich@novell.com>

* tc-i386.c (cpu_arch): Add .8087, .287, .387, .no87, .nommx,
.nosse, and .noavx.
(cpu_flags_and_not): New.
(set_cpu_arch): Check whether sub-architecture specified is a
feature disable.
(md_parse_option): Likewise.
(parse_real_register): Don't return floating point register
when x87 functionality is disabled.
(md_show_usage): Add new sub-options.
* doc/c-i386.texi: Update with new command line sub-options.

gas/testsuite/
2009-07-24  Jan Beulich  <jbeulich@novell.com>

* gas/i386/8087.[ds]: New.
* gas/i386/287.[ds]: New.
* gas/i386/387.[ds]: New.
* gas/i386/no87.[ls]: New.
* gas/i386/no87-2.[ls]: New.
* gas/i386/i386.exp: Run new tests.
* gas/i386/att-regs.s: Also check FPU register access.
* gas/i386/intel-regs.s: Likewise.
* gas/i386/att-regs.d: Adjust expectations.
* gas/i386/intel-regs.d: Likewise.

opcodes/
2009-07-24  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (fgrps): Correct annotation for feni/fdisi. Add
frstpm.
* i386-gen.c (cpu_flag_init): Add FP enabling flags where needed.
(cpu_flags): Add Cpu8087, Cpu287, Cpu387, Cpu687, and CpuFISTTP.
(set_bitfield): Expand CpuFP to Cpu8087|Cpu287|Cpu387.
* i386-opc.h (Cpu8087, Cpu287, Cpu387, Cpu687, CpuFISTTP):
Define.
(union i386_cpu_flags): Add cpu8087, cpu287, cpu387, cpu687,
and cpufisttp.
* i386-opc.tbl: Qualify floating point instructions by their
respective CpuXXX flag. Fix fucom{,p,pp}, fprem1, fsin, fcos,
and fsincos to be avilable only on 387. Fix fstsw ax to be
available only on 287+. Add f{,n}eni, f{,n}disi, f{,n}setpm,
and frstpm.
* i386-init.h, i386-tbl.h: Regenerate.

14 years ago * syscalls.cc (unlink_nt): Ignore sharing violation on NFS. Align
corinna [Fri, 24 Jul 2009 14:13:43 +0000 (14:13 +0000)]
* syscalls.cc (unlink_nt): Ignore sharing violation on NFS.  Align
comments.

14 years ago PR 10437
nickc [Fri, 24 Jul 2009 11:45:00 +0000 (11:45 +0000)]
    PR 10437
        * config/tc-alpha.c: Fix up uses of gas printf like functions so
        that the format string is a constant string.  Add translation
        support to message strings.
        * config/tc-arc.c: Likewise.
        * config/tc-arm.c: Likewise.
        * config/tc-cris.c: Likewise.
        * config/tc-fr30.c: Likewise.
        * config/tc-frv.c: Likewise.
        * config/tc-h8300.c: Likewise.
        * config/tc-hppa.c: Likewise.
        * config/tc-i370.c: Likewise.
        * config/tc-i960.c: Likewise.
        * config/tc-ia64.c: Likewise.
        * config/tc-m32r.c: Likewise.
        * config/tc-mep.c: Likewise.
        * config/tc-mips.c: Likewise.
        * config/tc-moxie.c: Likewise.
        * config/tc-msp430.c: Likewise.
        * config/tc-openrisc.c: Likewise.
        * config/tc-pdp11.c: Likewise.
        * config/tc-pj.c: Likewise.
        * config/tc-s390.c: Likewise.
        * config/tc-sh.c: Likewise.
        * config/tc-sh64.c: Likewise.
        * config/tc-sparc.c: Likewise.
        * config/tc-spu.c: Likewise.
        * config/tc-tic30.c: Likewise.
        * config/tc-tic4x.c: Likewise.
        * config/tc-tic54x.c: Likewise.
        * config/tc-v850.c: Likewise.
        * config/tc-xc16x.c: Likewise.
        * config/tc-xstormy16.c: Likewise.
        * config/tc-z80.c: Likewise.
        * config/tc-z8k.c: Likewise.
        * config/atof-ieee.c: Add translation support to as_warn
        messages.
        * config/obj-coff.c: Likewise.

14 years agoCommit missing part of previous delta to add GNU_UNIQUE_FUNCTION support.
nickc [Fri, 24 Jul 2009 10:16:01 +0000 (10:16 +0000)]
Commit missing part of previous delta to add GNU_UNIQUE_FUNCTION support.

14 years ago2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Fri, 24 Jul 2009 01:29:38 +0000 (01:29 +0000)]
2009-07-23  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
        to complaints that it causes issues.

14 years ago2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
ironhead [Fri, 24 Jul 2009 01:21:27 +0000 (01:21 +0000)]
2009-07-23  Jacky Lai  <crazyjacky@users.sourceforge.net>

        * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().

14 years ago*** empty log message ***
gdbadmin [Fri, 24 Jul 2009 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Fri, 24 Jul 2009 00:00:08 +0000 (00:00 +0000)]
daily update

14 years ago * source.c (forward_search_command): Don't fclose the stream,
kseitz [Thu, 23 Jul 2009 23:20:00 +0000 (23:20 +0000)]
* source.c (forward_search_command): Don't fclose the stream,
just run the cleanups.
(reverse_search_command): Likewise.

14 years agobfd/
hjl [Thu, 23 Jul 2009 21:22:17 +0000 (21:22 +0000)]
bfd/

2009-07-23  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10434
* elf64-x86-64.c (elf64_x86_64_check_relocs): Check executable
instead of shared for R_X86_64_TPOFF32.
(elf64_x86_64_relocate_section): Likewise.

ld/testsuite/

2009-07-23  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10434
* ld-x86-64/tlsle1.d: New.
* ld-x86-64/tlsle1.s: Likewise.

* ld-x86-64/x86-64.exp: Run tlsle1.

14 years ago2009-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Thu, 23 Jul 2009 16:03:06 +0000 (16:03 +0000)]
2009-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>

* symtab.c (search_symbols): Add QUIT.

14 years agoReorder variable declarations to avoid problems with MIPS targets.
nickc [Thu, 23 Jul 2009 15:03:39 +0000 (15:03 +0000)]
Reorder variable declarations to avoid problems with MIPS targets.

14 years ago * config/obj-elf.c (obj_elf_type): Add code to support a type of
nickc [Thu, 23 Jul 2009 13:00:20 +0000 (13:00 +0000)]
    * config/obj-elf.c (obj_elf_type): Add code to support a type of
        gnu_unique_object.
        * doc/as.texinfo: Document new feature of .type directive.
        * NEWS: Mention support for gnu_unique_object symbol type.

        * common.h (STB_GNU_UNIQUE): Define.

        * NEWS: Mention the linker's support for symbols with a binding of
        STB_GNU_UNIQUE.

        * gas/elf/type.s: Add unique global symbol definition.
        * gas/elf/type.e: Add expected readelf output for global unique
        symbol.

        * elfcpp.h (enum STB): Add STB_GNU_UNIQUE.

        * readelf.c (get_symbol_binding): For Linux targeted files return
        UNIQUE for symbols with the STB_GNU_UNIQUE binding.
        * doc/binutils.texi: Document the meaning of the 'u' symbol
        binding in the output of nm and objdump --syms.

        * elf-bfd.h (struct elf_link_hash_entry): Add unique_global field.
        * elf.c (swap_out_syms): Set binding to STB_GNU_UNIQUE for symbols
        with the BSF_GNU_UNIQUE flag bit set.
        * elfcode.h (elf_slurp_symbol_table): Set the BSF_GNU_UNIQUE flag
        for symbols with STB_GNU_UNIQUE binding.
        * elflink.c (_bfd_elf_merge_symbol): Set unique_global for symbols
        with the STB_GNU_UNIQUE binding.
        (elf_link_add_object_symbols): Set the BSF_GNU_UNIQUE flag for
        symbols with STB_GNU_UNIQUE binding.  Set STB_GNU_UNIQUE for
        symbols with the unique_global field set.
        (elf_link_output_extsym): Set unique_global field for symbols with
        the STB_GNU_UNIQUE binding.
        * syms.c (struct bfd_symbol): Define BSF_GNU_UNIQUE flag bit.
        (bfd_print_symbol_vandf): Print a 'u' character for BSF_GNU_UNIQUE
        symbols.
        (bfd_decode_symclass): Return a 'u' character for BSF_GNU_UNIQUE
        symbols.
        * bfd-in2.h: Regenerate.

14 years agoOops - forgot to commit this part of a previous delta:
nickc [Thu, 23 Jul 2009 12:42:07 +0000 (12:42 +0000)]
Oops - forgot to commit this part of a previous delta:

        * config/tc-arm.c (arm_frag_align_code): Replace hard coded
        constant with MAX_MEM_FOR_RS_ALIGN_CODE.

14 years ago * mount.h (fs_info::fsn): New member.
corinna [Thu, 23 Jul 2009 11:46:06 +0000 (11:46 +0000)]
* mount.h (fs_info::fsn): New member.
(fs_info::clear): Clear fsn.
(fs_info::fsname): New read accessor for fsn.
* mount.cc (fs_info::update): Fill in fsn member with lowercased
filesystem name if filesystem is not well-known.  Fall back to
"unknown" if filesystem name is missing.
(fillout_mntent): Print filesystem name retrieved in fs_info::update
rather than static string "unknown".

14 years ago PR binutils/10379
nickc [Thu, 23 Jul 2009 10:19:19 +0000 (10:19 +0000)]
    PR binutils/10379
        * doc/c-mips.texi (MIPS insn): Document the special behaviour of
        the .global directive for MIPS ports.

14 years ago * cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" to
corinna [Thu, 23 Jul 2009 09:12:17 +0000 (09:12 +0000)]
* cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" to
products array.

14 years ago * faq-using.xml (faq.using.ipv6): Try to clarify OS specific support.
corinna [Thu, 23 Jul 2009 08:49:06 +0000 (08:49 +0000)]
* faq-using.xml (faq.using.ipv6): Try to clarify OS specific support.
* faq-what.xml (faq.what.supported): Add Windows 7 and 2008 R2.
* new-features.sgml: Add "and later" to rcmd news.

14 years ago * mount.cc (fs_info::update): Revert to open filesystem with access set
corinna [Thu, 23 Jul 2009 07:51:55 +0000 (07:51 +0000)]
* mount.cc (fs_info::update): Revert to open filesystem with access set
to READ_CONTROL.  If that fails, try additionally with FILE_READ_DATA.

14 years ago * exceptions.cc (handle_exceptions): Set si_addr according to
ericb [Thu, 23 Jul 2009 02:47:17 +0000 (02:47 +0000)]
* exceptions.cc (handle_exceptions): Set si_addr according to
POSIX for SIGSEGV.

14 years ago2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
hjl [Thu, 23 Jul 2009 00:08:22 +0000 (00:08 +0000)]
2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10429
* ldlang.c (insert_os_after): Tie assignments to non-alloc
output sections if there is no-input section.

14 years agodaily update
amodra [Thu, 23 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Thu, 23 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 22 Jul 2009 23:55:53 +0000 (23:55 +0000)]
2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>

 * elflink.c (elf_link_output_extsym): Revert the last change.

14 years ago2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 22 Jul 2009 21:30:30 +0000 (21:30 +0000)]
2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>

 PR ld/10433
 * elflink.c (elf_link_output_extsym): Special case ifunc syms
 when ref_regular, not def_regular.

14 years ago2009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Wed, 22 Jul 2009 20:00:33 +0000 (20:00 +0000)]
2009-07-22  Paul Pluzhnikov  <ppluzhnikov@google.com>

* symfile.c (symbol_file_add_with_addrs_or_offsets): Call observer.

14 years ago2009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Wed, 22 Jul 2009 19:21:30 +0000 (19:21 +0000)]
2009-07-22  Paul Pluzhnikov  <ppluzhnikov@google.com>

* objfiles.h (objfiles_changed): New prototype.
* objfiles.c (objfiles_updated_p): Rename to objfiles_changed_p.
(allocate_objfile, free_objfile): Must rebuild section map.
(objfile_relocate): Likewise.
(update_section_map, find_pc_section): Adjust.
(set_objfiles_updated_on_exe_change): Remove.
(set_objfiles_updated_on_solib_activity): Remove.
(_initialize_objfiles): Remove.
(objfiles_changed): New function.
* symfile.c (reread_symbols): Call objfiles_changed.

14 years ago * mount.cc (fs_info::update): Open filesystem with access set to 0.
corinna [Wed, 22 Jul 2009 18:49:48 +0000 (18:49 +0000)]
* mount.cc (fs_info::update): Open filesystem with access set to 0.
Explain why.

14 years ago * modes.scm (TI,OI): New modes.
devans [Wed, 22 Jul 2009 18:30:59 +0000 (18:30 +0000)]
* modes.scm (TI,OI): New modes.
* types.scm (parse-type): Improve error checking.  Don't hardwire
mode names here.
* utils.scm (non-negative-integer?): New function.

14 years ago * mount.cc: Revert accidental checkin.
corinna [Wed, 22 Jul 2009 18:27:47 +0000 (18:27 +0000)]
* mount.cc: Revert accidental checkin.

14 years ago * path.cc (symlink_info::check): Handle STATUS_NOT_SUPPORTED from
corinna [Wed, 22 Jul 2009 18:21:08 +0000 (18:21 +0000)]
* path.cc (symlink_info::check): Handle STATUS_NOT_SUPPORTED from
NtCreateFile just like STATUS_EAS_NOT_SUPPORTED.

14 years ago * pmacros.scm (-pmacro-builtin-find): New predicate.
devans [Wed, 22 Jul 2009 17:32:27 +0000 (17:32 +0000)]
* pmacros.scm (-pmacro-builtin-find): New predicate.
(pmacros-init!): Add .find.
* doc/pmacros.tex: Document .find.
* testsuite/pmacros-1.test: Test .find.

14 years ago * mount.cc (do_mount): Replace --no-executable flag with notexec
corinna [Wed, 22 Jul 2009 16:24:17 +0000 (16:24 +0000)]
* mount.cc (do_mount): Replace --no-executable flag with notexec
mount option in hint for remote filesystems.
* path.cc (getmntent): Fix typo (noexec -> notexec).

14 years ago * mount.cc (fillout_mntent): Fix typo (noexec -> notexec).
corinna [Wed, 22 Jul 2009 16:21:33 +0000 (16:21 +0000)]
* mount.cc (fillout_mntent): Fix typo (noexec -> notexec).

14 years ago * path.cc (symlink_info::check): Fix typo in comment.
corinna [Wed, 22 Jul 2009 15:55:47 +0000 (15:55 +0000)]
* path.cc (symlink_info::check): Fix typo in comment.

14 years ago * fhandler.h (enum del_lock_called_from): New enumeration.
corinna [Wed, 22 Jul 2009 15:46:35 +0000 (15:46 +0000)]
* fhandler.h (enum del_lock_called_from): New enumeration.
(fhandler_base::del_my_locks): Declare taking a del_lock_called_from
as argument.
* fhandler.cc (fhandler_base::close): Call del_my_locks with "on_close".
(fhandler_base::fixup_after_fork): Call del_my_locks with "after_fork".
(fhandler_base::fixup_after_exec): Call del_my_locks with "after_exec".
* flock.cc (fhandler_base::del_my_locks): Take del_lock_called_from
as argument.  Call node->del_my_locks with NULL handle in after_exec
case.  Explain why.

14 years ago * Makefile.in (path-mount.o): Add a rule to build stripped down version
corinna [Wed, 22 Jul 2009 10:20:25 +0000 (10:20 +0000)]
* Makefile.in (path-mount.o): Add a rule to build stripped down version
of path.cc for usage in mount.
(mount.exe): Add dependency to path-mount.o.
* mount.cc (force): Convert to bool value.  Accommodate throughout.
(from_fstab): New function.
(do_mount_from_fstab): New function.
(longopts): Add --all option.
(opts): Add -a option.
(usage): Document -a/--all option.
(main): Handle -a option as well as single parameter.
* path.cc: Add FSTAB_ONLY conditional to allow building path-mount.o.
(mount_table): Remove static storage class.
(max_mount_entry): Ditto.
(root_here): Unused.  Remove.
(from_fstab_line): Remove static.
* path.h (struct mnt_t): Define here rather than in path.cc.
(from_fstab_line): Declare.
(mount_table): Declare.
(max_mount_entry): Declare.
* utils.sgml (mount): Document -a/--all option and mounting of single
path from fstab files.