]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
15 years ago2008-09-04 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 4 Sep 2008 20:26:18 +0000 (20:26 +0000)]
2008-09-04  Ken Werner  <ken.werner@de.ibm.com>

        * spu/Makefile.in: Fix missing linux_syscalls.o.
        * spu/linux_syscalls.c: Remove extraneous "3D" sequences.

15 years ago2008-09-04 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 4 Sep 2008 17:50:56 +0000 (17:50 +0000)]
2008-09-04  Ken Werner  <ken.werner@de.ibm.com>

        * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
        * libm/machine/spu/headers/acosf4.h: Likewise.
        * libm/machine/spu/headers/acoshd2.h: Likewise.
        * libm/machine/spu/headers/acoshf4.h: Likewise.
        * libm/machine/spu/headers/asind2.h: Likewise.
        * libm/machine/spu/headers/asinf4.h: Likewise.
        * libm/machine/spu/headers/asinhd2.h: Likewise.
        * libm/machine/spu/headers/asinhf4.h: Likewise.
        * libm/machine/spu/headers/atan2d2.h: Likewise.
        * libm/machine/spu/headers/atan2f4.h: Likewise.
        * libm/machine/spu/headers/atand2.h: Likewise.
        * libm/machine/spu/headers/atanf4.h: Likewise.
        * libm/machine/spu/headers/atanhd2.h: Likewise.
        * libm/machine/spu/headers/atanhf4.h: Likewise.
        * libm/machine/spu/headers/cos_sin.h: Likewise.
        * libm/machine/spu/headers/cosd2.h: Likewise.
        * libm/machine/spu/headers/cosf4.h: Likewise.
        * libm/machine/spu/headers/coshd2.h: Likewise.
        * libm/machine/spu/headers/coshf4.h: Likewise.
        * libm/machine/spu/headers/divd2.h: Likewise.
        * libm/machine/spu/headers/divf4.h: Likewise.
        * libm/machine/spu/headers/erf_utils.h: Likewise.
        * libm/machine/spu/headers/erfcd2.h: Likewise.
        * libm/machine/spu/headers/erfcf4.h: Likewise.
        * libm/machine/spu/headers/erfd2.h: Likewise.
        * libm/machine/spu/headers/erff4.h: Likewise.
        * libm/machine/spu/headers/exp2d2.h: Likewise.
        * libm/machine/spu/headers/exp2f4.h: Likewise.
        * libm/machine/spu/headers/expd2.h: Likewise.
        * libm/machine/spu/headers/expf4.h: Likewise.
        * libm/machine/spu/headers/expm1d2.h: Likewise.
        * libm/machine/spu/headers/expm1f4.h: Likewise.
        * libm/machine/spu/headers/floord2.h: Likewise.
        * libm/machine/spu/headers/floorf4.h: Likewise.
        * libm/machine/spu/headers/hypotd2.h: Likewise.
        * libm/machine/spu/headers/hypotf4.h: Likewise.
        * libm/machine/spu/headers/isnand2.h: Likewise.
        * libm/machine/spu/headers/isnanf4.h: Likewise.
        * libm/machine/spu/headers/ldexpd2.h: Likewise.
        * libm/machine/spu/headers/ldexpf4.h: Likewise.
        * libm/machine/spu/headers/lgammad2.h: Likewise.
        * libm/machine/spu/headers/lgammaf4.h: Likewise.
        * libm/machine/spu/headers/log10d2.h: Likewise.
        * libm/machine/spu/headers/log1pd2.h: Likewise.
        * libm/machine/spu/headers/log1pf4.h: Likewise.
        * libm/machine/spu/headers/log2d2.h: Likewise.
        * libm/machine/spu/headers/log2f4.h: Likewise.
        * libm/machine/spu/headers/logbf4.h: Likewise.
        * libm/machine/spu/headers/logd2.h: Likewise.
        * libm/machine/spu/headers/logf4.h: Likewise.
        * libm/machine/spu/headers/nearbyintf4.h: Likewise.
        * libm/machine/spu/headers/nextafterd2.h: Likewise.
        * libm/machine/spu/headers/nextafterf4.h: Likewise.
        * libm/machine/spu/headers/powd2.h: Likewise.
        * libm/machine/spu/headers/powf4.h: Likewise.
        * libm/machine/spu/headers/recipd2.h: Likewise.
        * libm/machine/spu/headers/recipf4.h: Likewise.
        * libm/machine/spu/headers/rintf4.h: Likewise.
        * libm/machine/spu/headers/scalbnf4.h: Likewise.
        * libm/machine/spu/headers/signbitd2.h: Likewise.
        * libm/machine/spu/headers/sincosd2.h: Likewise.
        * libm/machine/spu/headers/sincosf4.h: Likewise.
        * libm/machine/spu/headers/sind2.h: Likewise.
        * libm/machine/spu/headers/sinf4.h: Likewise.
        * libm/machine/spu/headers/sinhd2.h: Likewise.
        * libm/machine/spu/headers/sinhf4.h: Likewise.
        * libm/machine/spu/headers/sqrtd2.h: Likewise.
        * libm/machine/spu/headers/sqrtf4.h: Likewise.
        * libm/machine/spu/headers/tand2.h: Likewise.
        * libm/machine/spu/headers/tanf4.h: Likewise.
        * libm/machine/spu/headers/tanhd2.h: Likewise.
        * libm/machine/spu/headers/tanhf4.h: Likewise.
        * libm/machine/spu/headers/tgammad2.h: Likewise.
        * libm/machine/spu/headers/tgammaf4.h: Likewise.
        * libm/machine/spu/headers/truncd2.h: Likewise.
        * libm/machine/spu/headers/truncf4.h: Likewise.
        * libm/machine/spu/headers/simdmath.h: Likewise.

15 years ago2008-09-04 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 4 Sep 2008 17:46:14 +0000 (17:46 +0000)]
2008-09-04  Ken Werner  <ken.werner@de.ibm.com>

        * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
        * libm/machine/spu/headers/asinhd2.h: Likewise.
        * libm/machine/spu/headers/atanhd2.h: Likewise.
        * libm/machine/spu/headers/atanhf4.h: Likewise.
        * libm/machine/spu/headers/erff4.h: Likewise.
        * libm/machine/spu/headers/expd2.h: Likewise.
        * libm/machine/spu/headers/ldexpd2.h: Likewise.
        * libm/machine/spu/headers/lgammaf4.h: Likewise.
        * libm/machine/spu/headers/logbf4.h: Likewise.
        * libm/machine/spu/headers/nextafterd2.h: Likewise.
        * libm/machine/spu/headers/nextafterf4.h: Likewise.
        * libm/machine/spu/headers/recipd2.h: Likewise.
        * libm/machine/spu/headers/simdmath.h: Likewise.
        * libm/machine/spu/headers/acoshd2.: Likewise.

15 years ago2008-09-04 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 4 Sep 2008 17:27:49 +0000 (17:27 +0000)]
2008-09-04  Ken Werner  <ken.werner@de.ibm.com>

        * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
        * libm/machine/spu/headers/cbrtf.h: Likewise.

15 years ago2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
Aaron W. LaFramboise [Thu, 4 Sep 2008 02:18:16 +0000 (02:18 +0000)]
2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>

* configure.ac (RPATH_ENVVAR): Use PATH on Windows.
(GCC_SHLIB_SUBDIR): New.
* Makefile.tpl (HOST_LIB_PATH_gcc): Use GCC_SHLIB_SUBDIR.
* configure: Regenerate.
* Makefile.in: Regenerate.

15 years ago2008-09-01 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Tue, 2 Sep 2008 16:48:48 +0000 (16:48 +0000)]
2008-09-01  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
        * libc/machine/spu/spu_timebase.c: New file.
        * libc/machine/spu/Makefile.am: Add new file.
        * libc/machine/spu/Makefile.in: Regenerated.

15 years agoReimplement getopt.c to add getopt_long_only() function.
Keith Marshall [Sun, 31 Aug 2008 22:27:58 +0000 (22:27 +0000)]
Reimplement getopt.c to add getopt_long_only() function.

15 years agoErase all file content, preparatory to rewrite.
Keith Marshall [Sun, 31 Aug 2008 22:26:52 +0000 (22:26 +0000)]
Erase all file content, preparatory to rewrite.

15 years ago2008-08-30 Bo Yang <techrazy@users.sourceforge.net>
Chris Sutcliffe [Sat, 30 Aug 2008 23:19:14 +0000 (23:19 +0000)]
2008-08-30 Bo Yang <techrazy@users.sourceforge.net>

        * include/sspi.h: Fix PSecurityFunctionTableW structure.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 23:14:26 +0000 (23:14 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>
        * include/ddk/scsi.h: Define READ_TOC formats.

        * lib/ddk/scsiport.def (ScsiPortGetDeviceBase): Fix export.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 23:08:11 +0000 (23:08 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>

        * include/ddk/ndis.h (NDIS_MINIPORT_MAJOR_VERSION, NDIS_MINIPORT_MINOR_VERSION,
        struct NDIS_TASK_OFFLOAD_HEADER, PROTOCOL_RESERVED_SIZE_IN_PACKET,
        NdisGetFirstBufferFromPacketSafe, NdisMIndicateReceivePacket,
        NdisSetPacketPoolProtocolId, NdisMInitializeTimer, NdisMSetPeriodicTimer,
        NdisMCancelTimer): Define.
        (enum NDIS_ENCAPSULATION, struct NDIS_ENCAPSULATION_FORMAT): move in file.
        (struct _NDIS_PACKET): Define using _ANONYMOUS_UNION and ANONYMOUS_STRUCT to
        eliminate warnings.
        (NdisReinitializePacket): Rename from NdisReinitializePacketCounts.
        * lib/ddk/ndis.def (NdisInitAnsiString, NdisInitUnicodeString, NdisMCancelTimer,
        NdisMInitializeTimer, NdisMSetPeriodicTimer, NdisSetPacketPoolProtocolId):
        Export.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 23:03:37 +0000 (23:03 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>

        * include/ddk/winddk.h (RtlStringCbCopyA, RtlStringCbPrintfA,
        RtlStringCbVPrintfA): define in terms of POSIX string functions.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 22:58:51 +0000 (22:58 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>

        * include/ddk/winddk.h (KeRaiseIrql): Define.
        (KfRaiseIrql, KfLowerIrql): remove incorrect definitions.

15 years agoImplement conditional replacement for printf() family functions.
Keith Marshall [Sat, 30 Aug 2008 17:27:18 +0000 (17:27 +0000)]
Implement conditional replacement for printf() family functions.

15 years ago2008-08-29 Andy Grover <andy.grover@oracle.com>
Chris Sutcliffe [Sat, 30 Aug 2008 02:16:11 +0000 (02:16 +0000)]
2008-08-29  Andy Grover  <andy.grover@oracle.com>

        * include/ddk/winddk.h (KeFlushQueuedDpcs, KeMemoryBarrier): Define.
        (KeGetCurrentProcessorNumber): Fix incorrect member reference.
        (InterlockedIncrement, InterlockedDecrement): fix warning.
        * lib/ddk/ntoskrnl.def (KeFlushQueuedDpcs, KeMemoryBarrier): Export.
        (KeNumberProcessors): Export.

15 years ago2008-08-28 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Thu, 28 Aug 2008 18:18:12 +0000 (18:18 +0000)]
2008-08-28  Craig Howland  <howland@LGSInnovations.com>

        * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
        any positive value from user (per std) rather than depending
        upon 1).

15 years ago2008-08-28 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston [Thu, 28 Aug 2008 17:36:49 +0000 (17:36 +0000)]
2008-08-28  Corinna Vinschen  <corinna@vinschen.de>

        * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
        for accepting a converted character.

15 years ago2008-08-28 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 28 Aug 2008 16:04:18 +0000 (16:04 +0000)]
2008-08-28  Tristan Gingold  <gingold@adacore.com>

* stab.def: Add BNSYM, ENSYM, OSO for darwin.

15 years agogas/
H.J. Lu [Thu, 28 Aug 2008 14:07:48 +0000 (14:07 +0000)]
gas/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-ia64.c (CR_IIB0): New.
(CR_IIB1): Likewise.
(cr): Add cr.iib0 and cr.iib1.
(specify_resource): Handle IA64_RS_CR_IIB and CR_IIB0/CR_IIB1.

gas/testsuite/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* gas/ia64/dv-raw-err.s: Add tests for cr.iib0 and cr.iib1.
* gas/ia64/dv-waw-err.s: Likewise.
* gas/ia64/regs.s: Likewise.

* gas/ia64/dv-raw-err.l: Updated.
* gas/ia64/dv-waw-err.l: Likewise.
* gas/ia64/regs.d: Likewise.

include/opcode/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* ia64.h (ia64_resource_specifier): Add IA64_RS_CR_IIB.  Update
IA64_RS_CR.

opcodes/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* ia64-dis.c (print_insn_ia64): Handle cr.iib0 and cr.iib1.
* ia64-gen.c (lookup_specifier): Likewise.

* ia64-ic.tbl: Add support for cr.iib0 and cr.iib1.
* ia64-raw.tbl: Likewise.
* ia64-waw.tbl: Likewise.
* ia64-asmtab.c: Regenerated.

15 years ago2008-08-28 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 28 Aug 2008 10:44:31 +0000 (10:44 +0000)]
2008-08-28  Tristan Gingold  <gingold@adacore.com>

* configure.ac (powerpc-*-darwin*, i?86-*-darwin*,x86_64-*-darwin9):
Enable bfd, binutils and opcodes.
* configure: Regenerate.

15 years ago2008-08-28 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 28 Aug 2008 10:20:05 +0000 (10:20 +0000)]
2008-08-28  Tristan Gingold  <gingold@adacore.com>

* configure.ac (powerpc-*-darwin*, i?86-*-darwin*,x86_64-*-darwin9):
Enable bfd, binutils and opcodes.
* configure: Regenerate.

15 years ago* fhandler_tty.cc (close_maybe): Check for both types of invalid handle before
Christopher Faylor [Wed, 27 Aug 2008 21:55:19 +0000 (21:55 +0000)]
* fhandler_tty.cc (close_maybe): Check for both types of invalid handle before
attempting CloseHandle.
(fhandler_pty_master::setup): Only set inheritance on pty handles, not tty
handles.

15 years ago2008-08-27 Sandra Loosemore <sandra@codesourcery.com>
Jeff Johnston [Wed, 27 Aug 2008 21:32:02 +0000 (21:32 +0000)]
2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>

        * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
        from building pdfs.
        * libm/libm.texinfo: Likewise.

15 years agoAvoid access violations, passing NULL to printf( "...%s..." ).
Keith Marshall [Wed, 27 Aug 2008 20:23:42 +0000 (20:23 +0000)]
Avoid access violations, passing NULL to printf( "...%s..." ).

15 years ago* cygcheck.cc (nuke): Use malloc rather than alloca for environment variables.
Christopher Faylor [Wed, 27 Aug 2008 20:11:11 +0000 (20:11 +0000)]
* cygcheck.cc (nuke): Use malloc rather than alloca for environment variables.
(load_cygwin): Ditto.
* dump_setup.cc (parse_filename): Cosmetic changes.
(get_packages): Ditto.

15 years ago2008-08-27 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston [Wed, 27 Aug 2008 18:31:04 +0000 (18:31 +0000)]
2008-08-27  Corinna Vinschen  <corinna@vinschen.de>

        * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
        accepting a converted character and continuing the loop.

15 years ago* shared_info.h (shared_info::create_root_entry): Remove extraneous
Christopher Faylor [Tue, 26 Aug 2008 16:56:30 +0000 (16:56 +0000)]
* shared_info.h (shared_info::create_root_entry): Remove extraneous
mount_info:: from declaration.

15 years ago * fhandler.h (class fhandler_pipe): Rename read and write
Corinna Vinschen [Tue, 26 Aug 2008 15:39:17 +0000 (15:39 +0000)]
* fhandler.h (class fhandler_pipe): Rename read and write
declarations to raw_read and raw_write.
* pipe.cc (fhandler_pipe::raw_read): Rename from read.
(fhandler_pipe::raw_write): Rename from write.

15 years ago2008-08-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 26 Aug 2008 03:34:10 +0000 (03:34 +0000)]
2008-08-22  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/shlwapi.h (ASSOCF_INIT_NOREMAPCLSID, ASSOCF_INIT_BYEXENAME,
        ASSOCF_OPEN_BYEXENAME, ASSOCF_INIT_DEFAULTTOSTAR,
        ASSOCF_INIT_DEFAULTTOFOLDER, ASSOCF_NOUSERSETTINGS, ASSOCF_NOTRUNCATE,
        ASSOCF_VERIFY, ASSOCF_REMAPRUNDLL, ASSOCF_NOFIXUPS, ASSOCF_IGNOREBASECLASS,
        ASSOCF_INIT_IGNOREUNKNOWN): Define.

15 years agoadd comments
Christopher Faylor [Mon, 25 Aug 2008 17:27:06 +0000 (17:27 +0000)]
add comments

15 years agoMerge from gcc:
DJ Delorie [Mon, 25 Aug 2008 17:26:06 +0000 (17:26 +0000)]
Merge from gcc:
2008-08-16  Nicolas Roche  <roche@adacore.com>
* Makefile.tpl: Add BOOT_ADAFLAGS.
* Makefile.in: Regenerate.

15 years agoMerge from gcc.
DJ Delorie [Mon, 25 Aug 2008 17:07:33 +0000 (17:07 +0000)]
Merge from gcc.

15 years ago * mkgroup.c (enum_local_groups): Don't skip printing groups when
Corinna Vinschen [Mon, 25 Aug 2008 09:38:14 +0000 (09:38 +0000)]
* mkgroup.c (enum_local_groups): Don't skip printing groups when
print_current is set and group SID is not curr_pgrp.
(enum_groups): Ditto.
(main): Fix condition when SYSTEM group gets printed.
* mkpasswd.c (enum_users): Don't skip printing users when print_current
is set and user SID is not curr_user.
(main): Allow printing standard accounts even when print_current is set.

15 years ago * binary-io.h: New file, imported from gnulib, but don't
Alan Modra [Mon, 25 Aug 2008 04:36:03 +0000 (04:36 +0000)]
* binary-io.h: New file, imported from gnulib, but don't
#include <fcntl.h> or <stdio.h>.

15 years ago2008-08-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Fri, 22 Aug 2008 23:54:47 +0000 (23:54 +0000)]
2008-08-22  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/commctrl.h (LVN_MARQUEEBEGIN): Define.

        Thanks to Tim Kosse <botg at users dot sf dot net>.

15 years ago2008-08-22 Bo Yang <techrazy@users.sourceforge.net>
Chris Sutcliffe [Fri, 22 Aug 2008 23:02:50 +0000 (23:02 +0000)]
2008-08-22 Bo Yang <techrazy@users.sourceforge.net>

        * include/winnt.h (OWNER_SECURITY_INFORMATION, GROUP_SECURITY_INFORMATION,
        DACL_SECURITY_INFORMATION, SACL_SECURITY_INFORMATION): Correct.
        * include/winnt.h (OWNER_SECURITY_INFORMATION, GROUP_SECURITY_INFORMATION,
        DACL_SECURITY_INFORMATION, SACL_SECURITY_INFORMATION,
        LABEL_SECURITY_INFORMATION, UNPROTECTED_SACL_SECURITY_INFORMATION,
        UNPROTECTED_DACL_SECURITY_INFORMATION, PROTECTED_SACL_SECURITY_INFORMATION,
        PROTECTED_DACL_SECURITY_INFORMATION): Define.

15 years ago* fhandler.cc (fhandler_base::wait_overlapped): Reorganize again to accommodate
Christopher Faylor [Fri, 22 Aug 2008 04:06:01 +0000 (04:06 +0000)]
* fhandler.cc (fhandler_base::wait_overlapped): Reorganize again to accommodate
what appears to be an MSDN hint about not resetting the overlapped event prior
to calling GetOverlappedResult.

15 years ago2008-08-20 Bob Wilson <bob.wilson@acm.org>
Bob Wilson [Wed, 20 Aug 2008 23:28:58 +0000 (23:28 +0000)]
2008-08-20  Bob Wilson  <bob.wilson@acm.org>
bfd/
        * elf-bfd.h (elf_object_id): Add XTENSA_ELF_TDATA.
        * elf32-xtensa.c (elf_howto_table): Add TLS relocations.
        (elf_xtensa_reloc_type_lookup): Likewise.
        (TCB_SIZE): Define.
        (elf_xtensa_link_hash_entry): New.
        (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE, GOT_TLS_ANY): Define.
        (elf_xtensa_hash_entry): Define.
        (elf_xtensa_obj_tdata): New.
        (elf_xtensa_tdata): Define.
        (elf_xtensa_local_got_tls_type): Define.
        (elf_xtensa_local_tlsfunc_refcounts): Define.
        (is_xtensa_elf): Define.
        (elf_xtensa_mkobject): New.
        (elf_xtensa_link_hash_table): Add tlsbase field.
        (elf_xtensa_link_hash_newfunc): New.
        (elf_xtensa_link_hash_table_create): Use elf_xtensa_link_hash_newfunc.
        Create an entry for "_TLS_MODULE_BASE_" and save it in tlsbase field.
        (elf_xtensa_copy_indirect_symbol): New.
        (elf_xtensa_check_relocs): Rewrite to handle TLS relocations.
        (elf_xtensa_gc_sweep_hook): Likewise.
        (elf_xtensa_allocate_dynrelocs): Optimize away GOT entries for
        TLSDESC_FN relocations when an IE reference is seen.
        (elf_xtensa_allocate_local_got_size): Likewise.
        (elf_xtensa_always_size_sections): New.
        (dtpoff_base, tpoff): New.
        (elf_xtensa_do_reloc): Handle TLS relocations.
        (replace_tls_insn): New.
        (IS_XTENSA_TLS_RELOC): Define.
        (elf_xtensa_relocate_section): Handle TLS relocations.
        (get_indirect_call_dest_reg): New.
        (bfd_elf32_mkobject): Define.
        (elf_backend_always_size_sections): New.
        (elf_backend_copy_indirect_symbol): New.
        * reloc.c (BFD_RELOC_XTENSA_TLSDESC_FN, BFD_RELOC_XTENSA_TLSDESC_ARG)
        (BFD_RELOC_XTENSA_TLS_DTPOFF, BFD_RELOC_XTENSA_TLS_TPOFF)
        (BFD_RELOC_XTENSA_TLS_FUNC, BFD_RELOC_XTENSA_TLS_ARG)
        (BFD_RELOC_XTENSA_TLS_CALL): New.
        * bfd-in2.h: Regenerate.
        * libbfd.h: Regenerate.
gas/
        * config/tc-xtensa.c (O_tlsfunc, O_tlsarg, O_tlscall): Define.
        (O_tpoff, O_dtpoff): Define.
        (suffix_relocs): Add entries for TLS suffixes.
        (xtensa_elf_cons): Check for invalid use of TLS relocations.
        (map_operator_to_reloc): Add is_literal parameter and use it to
        control translating TLS instruction relocations to the corresponding
        literal relocations.
        (xg_valid_literal_expression): Allow TLS operators.
        (xg_build_to_insn): Copy TLS operators from pseudo-instruction
        operands to generated literals.
        (xg_assemble_literal): Handle TLS operators.  Update call to
        map_operator_to_reloc.
        (md_assemble): Handle CALLXn.TLS pseudo-instruction.
        (md_apply_fix): Handle TLS relocations.
        (emit_single_op): Handle TLS operators.
        (convert_frag_immed): Update call to map_operator_to_reloc.
        (vinsn_to_insnbuf): Emit relocations for TLS-related instructions.
        * config/xtensa-istack.h (tinsn_struct): Add tls_reloc field.
        * config/xtensa-relax.c (append_literal_op): Add src_op parameter
        to initialize the op_data field of the BuildOp.
        (build_transition): Use it here to record the source operand
        corresponding to a generated literal.
        * config/xtensa-relax.h (build_op): Comment op_data use for literals.
include/elf/
        * xtensa.h (R_XTENSA_TLSDESC_FN, R_XTENSA_TLSDESC_ARG)
        (R_XTENSA_TLS_DTPOFF, R_XTENSA_TLS_TPOFF, R_XTENSA_TLS_FUNC)
        (R_XTENSA_TLS_ARG, R_XTENSA_TLS_CALL): New.
ld/testsuite/
        * ld-xtensa/tlsbin.dd, ld-xtensa/tlsbin.rd, ld-xtensa/tlsbin.s,
        ld-xtensa/tlsbin.sd, ld-xtensa/tlsbin.td, ld-xtensa/tlslib.s,
        ld-xtensa/tlspic.dd, ld-xtensa/tlspic.rd, ld-xtensa/tlspic.sd,
        ld-xtensa/tlspic.td, ld-xtensa/tlspic1.s, ld-xtensa/tlspic2.s: New.
        * ld-xtensa/xtensa.exp: Run them.

15 years ago * path.cc (symlink_info::check_shortcut): If file can't be opened,
Corinna Vinschen [Wed, 20 Aug 2008 10:53:54 +0000 (10:53 +0000)]
* path.cc (symlink_info::check_shortcut): If file can't be opened,
treat it as non-symlink rather than generating an EIO error.
(symlink_info::check_sysfile): Ditto.

15 years ago2008-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Wed, 20 Aug 2008 02:30:05 +0000 (02:30 +0000)]
2008-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/wtsapi32.h (_WTS_INFO_CLASS, _WTS_CONNECTSTATE_CLASS,
        WTSQuerySessionInformation, WTSFreeMemory): Define.

15 years ago* fhandler.cc (fhandler_base::wait_overlapped): Always assume that bytes will
Christopher Faylor [Wed, 20 Aug 2008 02:25:06 +0000 (02:25 +0000)]
* fhandler.cc (fhandler_base::wait_overlapped): Always assume that bytes will
be non-NULL.  Distinguish input result from result derived from WFMO and
GetOverlappedResult or res can never be -1.  Only raise SIGPIPE when writing.
* fhandler.h (fhandler_base::wait_overlapped): Pass first argument by value.
* fhandler_fifo.cc (fhandler_fifo::wait): Pass in dummy byte count to
wait_overlapped.
* pipe.cc (DEFAULT_PIPEBUFSIZE): Define to 65536 explicitly.

15 years ago * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Drop fattr variable
Corinna Vinschen [Tue, 19 Aug 2008 09:46:31 +0000 (09:46 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Drop fattr variable
and use FILE_ATTRIBUTE_DIRECTORY directly in call to NtCreateFile.
* posix_ipc.cc (ipc_mutex_init): Fix format string when creating IPC
object name.
(ipc_cond_init): Ditto.
* security.cc (alloc_sd): Add parentheses to fix setting initial
owner_allow value.

15 years ago* fhandler.cc (fhandler_base::wait_overlapped): Don't treat ERROR_BROKEN_PIPE
Christopher Faylor [Tue, 19 Aug 2008 02:56:28 +0000 (02:56 +0000)]
* fhandler.cc (fhandler_base::wait_overlapped): Don't treat ERROR_BROKEN_PIPE
as a non-error.  Do raise SIGPIPE when it is detected.

15 years ago * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find out
Corinna Vinschen [Mon, 18 Aug 2008 12:56:59 +0000 (12:56 +0000)]
* mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find out
if a group exists, rather than just allocating a buffer and going ahead.

15 years ago * mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
Corinna Vinschen [Mon, 18 Aug 2008 12:42:44 +0000 (12:42 +0000)]
* mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
as argument when LookupAccountXXX failed.
(enum_groups): Ditto.

15 years ago * mkgroup.c (enum_local_groups): Return failure if looking for a single
Corinna Vinschen [Mon, 18 Aug 2008 08:58:21 +0000 (08:58 +0000)]
* mkgroup.c (enum_local_groups): Return failure if looking for a single
group succeeded.  Add comment.

15 years ago * mkgroup.c (main): Keep correctly track of optional arguments.
Corinna Vinschen [Mon, 18 Aug 2008 08:52:49 +0000 (08:52 +0000)]
* mkgroup.c (main): Keep correctly track of optional arguments.
* mkpasswd.c (main): Ditto.

15 years ago * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.
Corinna Vinschen [Mon, 18 Aug 2008 08:33:48 +0000 (08:33 +0000)]
* mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.
Keep track of optional argumnts and fix up optind afterwards.
* mkpasswd.c (main): Ditto.

15 years ago* cygcheck.cc (print_version): Update copyright dates.
Christopher Faylor [Sun, 17 Aug 2008 17:15:41 +0000 (17:15 +0000)]
* cygcheck.cc (print_version): Update copyright dates.

15 years ago* mkpasswd.c (main): Avoid printing system accounts when a single user name has
Christopher Faylor [Sun, 17 Aug 2008 17:00:50 +0000 (17:00 +0000)]
* mkpasswd.c (main): Avoid printing system accounts when a single user name has
been requested.

15 years ago* Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet ld
Christopher Faylor [Sun, 17 Aug 2008 16:45:44 +0000 (16:45 +0000)]
* Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet ld
warnings.
* mkgroup.c: Change all global variables and most functions to static.
(enum_local_groups): Add a print_current parameter to control whether entries
for everything should be printed or just the current user.
(enum_groups): Ditto.
(main): Move call fetch_current_pgrp_sid earlier to avoid a NULL deference when
no command line arguments are specified.  Accommodate argument changes to above
functions.  Avoid printing SYSTEM account when print_current is specified.
Issue error when extra stuff is found on the command line.
* mkpasswd.c: Change all global variables and most functions to static.
(enum_users): Add a print_current parameter to control whether entries for
everything should be printed or just the current user.
(main): Move call fetch_current_user_sid earlier to avoid a NULL deference when
no command line arguments are specified.  Accommodate argument change to above
function.  Avoid printing standard accounts when print_current is specified.
Issue error when extra stuff is found on the command line.

15 years agobfd/
Alan Modra [Sun, 17 Aug 2008 03:12:50 +0000 (03:12 +0000)]
bfd/
* bfd.c (struct _bfd): Correct outsymbols comment.
* bfd-in2.h: Regenerate.
* linker.c (bfd_generic_link_read_symbols): Renamed from..
(generic_link_read_symbols): ..this, and made global.

include/
* bfdlink.h (bfd_generic_link_read_symbols): Declare.
ld/
PR 6478
* ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
Don't free symbol pointer array.
(check_refs): Likewise.
* ldmain.c (warning_callback): Likewise.
* ldmisc.c (vfinfo): Likewise.
* pe-dll.c (process_def_file): Likewise.
(pe_walk_relocs_of_symbol, generate_reloc): Likewise.
* emultempl/pe.em (pe_find_data_imports): Likewise.
(gld_${EMULATION_NAME}_after_open): Likewise.
* emultempl/pep.em (pep_find_data_imports): Likewise.
(gld_${EMULATION_NAME}_after_open): Likewise.
* ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
passive_position, closed.
* ldlang.c (new_afile): Don't set asymbols and symbol_count.
* ldmain.c (add_archive_element): xcalloc lang_input_statement_type.

15 years ago * configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu.
Richard Sandiford [Sat, 16 Aug 2008 06:47:17 +0000 (06:47 +0000)]
* configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu.
* configure: Regenerate.

config/
* mt-mips16-compat: New file, taken from mt-mips-elfoabi.
* mt-mips-elfoabi: Include mt-mips16-compat.
* mt-mips-gnu: New file.

15 years ago * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
Corinna Vinschen [Fri, 15 Aug 2008 13:08:47 +0000 (13:08 +0000)]
* mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
group SID from user token.
(current_group): Move up in file.  Move fetching primary group SID to
fetch_current_pgrp_sid.
(enum_local_groups): Check if current SID is the same as current user's
primary group SID.
(enum_groups): Ditto.
(main): Call fetch_current_pgrp_sid before enumerating groups.  Call
current_group only if current group hasn't been enumerated already.
* mkpasswd.c (fetch_current_user_sid): New function to fetch current
user SID from user token.
(current_user): Move fetching current user SID to
fetch_current_user_sid.
(enum_users): Check if current SID is the same as current user's SID.
(main): Call fetch_current_user_sid before enumerating users.  Call
current_user only if current user hasn't been enumerated already.

15 years ago * mount.cc (mount_info::get_mounts_here): Don't subtract 2 from
Corinna Vinschen [Fri, 15 Aug 2008 12:33:26 +0000 (12:33 +0000)]
* mount.cc (mount_info::get_mounts_here): Don't subtract 2 from
Length if it's 0 anyway.

15 years ago * mount.cc (mount_info::create_root_entry): Create default cygdrive
Corinna Vinschen [Fri, 15 Aug 2008 12:06:38 +0000 (12:06 +0000)]
* mount.cc (mount_info::create_root_entry): Create default cygdrive
prefix with MOUNT_NOPOSIX flag.

15 years ago * path.cc (symlink_info::check): Don't use eabuf when trying to open
Corinna Vinschen [Fri, 15 Aug 2008 10:19:12 +0000 (10:19 +0000)]
* path.cc (symlink_info::check): Don't use eabuf when trying to open
file a second time.  Call NtOpenFile instead of NtCreateFile in this
case.

15 years ago2008-08-14 Jie Zhang <jie.zhang@analog.com>
Jeff Johnston [Thu, 14 Aug 2008 22:00:47 +0000 (22:00 +0000)]
2008-08-14  Jie Zhang  <jie.zhang@analog.com>

        * bfin/Makefile.in: (top_srcdir): Define.
        (mkinstalldirs): Define.
        (BOARD_SCRIPTS): Define.
        (BOARD_LDFLAGS): Define.
        (BOARD_BSP): Define.
        (BOARD_CRT0S): Define.
        (BOARD_OBJS): Define.
        (BOARD_TEST): Define.
        (BOARD_INSTALL): Define.
        (INCLUDES): Add -I$(srcdir)/include.
        (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}.
        (.c.S): Remove target.
        (crt0.o): New target.
        (basiccrt.o): Likewise.
        (basiccrtb.o): Likewise.
        (basiccrts.o): Likewise.
        (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise
        (clean mostlyclean): Remove ${BOARD_BSP}.
        (install): Depend on ${BOARD_INSTALL}.
        (install-sim): Reformat.
        (install-board): New target.
        * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in
        workaround code for 05000229.
        * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of
        `RAISE 0' for syscall.
        * bfin/basiccrt.S: New file.
        * bfin/bf5*ld: New file.
        * bfin/bfin-common-mc.ld: New file.
        * bfin/bfin-common-sc.ld: New file.
        * bfin/include/blackfin.h: New file.
        * bfin/include/cdefBF5*.h: New file.
        * bfin/include/cdef_LPBlackfin.h: New file.
        * bfin/include/cdefblackfin.h: New file.
        * bfin/include/cplb.h: New file.
        * bfin/include/cplbtab.h: New file.
        * bfin/include/defBF5*.h: New files.
        * bfin/include/def_LPBlackfin.h: New files.
        * bfin/include/defblackfin.h: New file.
        * bfin/include/sys/_adi_platform.h: New file.
        * bfin/include/sys/anomaly_macros_rtl.h: New file.
        * bfin/include/sys/excause.h: New file.
        * bfin/include/sys/exception.h: New file.
        * bfin/include/sys/mc_typedef.h: New file.
        * bfin/include/sys/platform.h: New file.
        * bfin/include/sys/pll.h: New file.
        * bfin/include/sysreg.h: New file.
        * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define
        for bfin.
        * libnosys/configure: Regenerate.

15 years agoAdd missing dependencies for building libmingwex.a.
Keith Marshall [Thu, 14 Aug 2008 15:13:18 +0000 (15:13 +0000)]
Add missing dependencies for building libmingwex.a.

15 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Fix linking
Corinna Vinschen [Thu, 14 Aug 2008 15:00:52 +0000 (15:00 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Fix linking
against symlinks.

15 years ago * external.cc (cygwin_internal): Call set_security_attribute with
Corinna Vinschen [Thu, 14 Aug 2008 14:05:04 +0000 (14:05 +0000)]
* external.cc (cygwin_internal): Call set_security_attribute with
additional path_conv argument.
* fhandler.cc (fhandler_base::open): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Never set DOS
R/O attribute when using ACLs.
(fhandler_disk_file::mkdir): Ditto.  Set
security descriptor on remote dirs after creating the dir, same as in
fhandler_base::open.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for remote AF_LOCAL
socket files.
* path.cc (symlink_worker): Ditto. for remote symlinks.
* security.cc (alloc_sd): Take additional path_conv argument.
Accommodate throughout.  Drop setting FILE_WRITE_EA/FILE_READ_EA
flags unconditionally (was only necessary for "ntea"). Don't set
FILE_READ_ATTRIBUTES and FILE_WRITE_ATTRIBUTES unconditionally on
Samba.  Add comment to explain.  Drop useless setting of
STANDARD_RIGHTS_WRITE, it's in FILE_GENERIC_WRITE anyway.
Remove FILE_READ_ATTRIBUTES bit from FILE_GENERIC_EXECUTE so as not
to enforce read permissions on Samba.
(set_security_attribute): Take additional path_conv argument.
* security.h (set_security_attribute): Change prototype accordingly.

15 years ago * mount.cc (NT_MAX_PATH): Define.
Corinna Vinschen [Wed, 13 Aug 2008 16:35:04 +0000 (16:35 +0000)]
* mount.cc (NT_MAX_PATH): Define.
(longopts): Rename mount-commands option to mount-entries.
(opts): Remove removed options.
(struct opt): Move up in file to allow using it in usage.
(usage): Change text for --mount-entries option.  Remove
-X option.  Add valid options output.
(main): Remove handling -b option.
(convert_spaces): New static function to convert spaces to "\040"
string.
(mount_entries): Renamed from mount_commands.  Rewrite to emit
/etc/fstab compatible output.
(show_cygdrive_info): Print "nouser" rather than "system".
* umount.cc (longopts): Remove remove-all-mounts,
remove-cygdrive-prefix, remove-system-mounts, system and user options.
(opts): Remove A, c, s, S, u options.
(usage): Remove text for all removed options.
(main): Remove handling for all removed options.
(remove_all_mounts): Remove.
(remove_all_system_mounts): Remove.
(remove_cygdrive_prefix): Remove.
* utils.sgml: Fix mount and umount documentation.  Move description
of (cyg,not)exec options to mount table section.

15 years ago * pathnames.sgml: Move description for (cyg,not)exec mount options
Corinna Vinschen [Wed, 13 Aug 2008 16:34:49 +0000 (16:34 +0000)]
* pathnames.sgml: Move description for (cyg,not)exec mount options
from utils.sgml here.  Clarify nouser mount points.

15 years ago * mount.cc (fillout_mntent): Always print noumount option last.
Corinna Vinschen [Wed, 13 Aug 2008 15:30:52 +0000 (15:30 +0000)]
* mount.cc (fillout_mntent): Always print noumount option last.

15 years ago * mount.cc (fillout_mntent): Print options as taken in fstab and mount.
Corinna Vinschen [Wed, 13 Aug 2008 15:11:25 +0000 (15:11 +0000)]
* mount.cc (fillout_mntent): Print options as taken in fstab and mount.

15 years ago * cyglsa-config: Copy the DLL instead of moving.
Corinna Vinschen [Wed, 13 Aug 2008 11:05:25 +0000 (11:05 +0000)]
* cyglsa-config: Copy the DLL instead of moving.

15 years ago * dll_init.cc: Throughout convert to use long pathnames.
Corinna Vinschen [Wed, 13 Aug 2008 08:25:44 +0000 (08:25 +0000)]
* dll_init.cc: Throughout convert to use long pathnames.
* dll_init.h (struct dll): Change name to WCHAR, change operator [] to
take PWCHAR argument.

15 years agoAdd replacements for remaining members of printf() family.
Keith Marshall [Mon, 11 Aug 2008 22:41:55 +0000 (22:41 +0000)]
Add replacements for remaining members of printf() family.

15 years ago * syscalls.cc (rename): If newpath doesn't exist, check if .exe suffix
Corinna Vinschen [Mon, 11 Aug 2008 15:05:25 +0000 (15:05 +0000)]
* syscalls.cc (rename): If newpath doesn't exist, check if .exe suffix
in oldpath has been omitted before appending .exe to newpath.

15 years ago * fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Don't set
Corinna Vinschen [Sat, 9 Aug 2008 11:09:02 +0000 (11:09 +0000)]
* fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Don't set
eom_detected when EOF is detected, thus returning 0 instead of
setting errno to ENOSPC.

15 years agoAdd AVR architectures avr25, avr31, avr35, and avr51 to match GCC.
Eric Weddington [Sat, 9 Aug 2008 05:35:13 +0000 (05:35 +0000)]
Add AVR architectures avr25, avr31, avr35, and avr51 to match GCC.
bfd/
* archures.c (bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35,
bfd_mach_avr51): New.
* bfd-in2.h: Regenerate.
* cpu-avr.c (arch_info_struct): Add avr25, avr31, avr35, and avr51
architectures. Change comments to match architecture comments in GCC.
(compatible): Add test for new AVR architectures.
* elf32-avr.c (bfd_elf_avr_final_write_processing): Recognize
bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35 and bfd_mach_avr51.
(elf32_avr_object_p): Recognize E_AVR_MACH_AVR25, E_AVR_MACH_AVR31,
E_AVR_MACH_AVR35 and E_AVR_MACH_AVR51.

gas/
* config/tc-avr.c (mcu_types): Add avr25, avr31, avr35, and avr51
architectures. Reorganize list to put mcu types in correct architectures
and to order list same as in GCC. Use new ISA definitions in
include/opcode/avr.h.
* doc/c-avr.texi: Add avr25, avr31, avr35, and avr51 architecture
descriptions. Reorganize descriptions to put mcu types in correct
architectures and to order lists same as in GCC.

include/
* elf/avr.h (E_AVR_MACH_AVR25, E_AVR_MACH_AVR31,
E_AVR_MACH_AVR35, E_AVR_MACH_AVR51): Define.
(EF_AVR_MACH): Redefine to 0x7F.
* opcode/avr.h (AVR_ISA_TINY3, AVR_ISA_ALL, AVR_ISA_USB162): Remove.
(AVR_ISA_AVR3): Redefine.
(AVR_ISA_AVR1, AVR_ISA_AVR2, AVR_ISA_AVR31, AVR_ISA_AVR35,
AVR_ISA_AVR3_ALL, AVR_ISA_AVR4, AVR_ISA_AVR5, AVR_ISA_AVR51,
AVR_ISA_AVR6): Define.

ld/
* Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
and eavr51.o.
Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
* Makefile.in: Regenerate.
* configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
and avr51.
* emulparams/avr25.sh: New file.
* emulparams/avr31.sh: New file.
* emulparams/avr35.sh: New file.
* emulparams/avr51.sh: New file.

15 years ago2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
Daniel Jacobowitz [Fri, 8 Aug 2008 19:24:49 +0000 (19:24 +0000)]
2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Mark Shinwell  <shinwell@codesourcery.com>
    Maxim Kuvyrkov  <maxim@codesourcery.com>

* elf32-mips.c (mips_vxworks_copy_howto_rela): Replace with...
(elf_mips_copy_howto): ...this howto.  Clear the size fields.
(mips_vxworks_jump_slot_howto_rela): Replace with...
(elf_mips_jump_slot_howto): ...this howto.
(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY
and BFD_RELOC_MIPS_JUMP_SLOT.
(bfd_elf32_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and
"R_MIPS_JUMP_SLOT".
(mips_elf32_rtype_to_howto): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT.
(elf_backend_plt_readonly): Define.
(elf_backend_plt_sym_val): Define for non-VxWorks targets.
(mips_vxworks_bfd_reloc_type_lookup): Delete.
(mips_vxworks_bfd_reloc_name_lookup): Likewise.
(mips_vxworks_rtype_to_howto): Likewise.
(elf_backend_want_dynbss): Don't define for VxWorks.
(elf_backend_plt_readonly): Likewise.
(bfd_elf32_bfd_reloc_type_lookup): Likewise.
(bfd_elf32_bfd_reloc_name_lookup): Likewise.
(elf_backend_mips_rtype_to_howto): Likewise.
(elf_backend_adjust_dynamic_symbol): Likewise.
(elf_backend_got_symbol_offset): Don't define.
* elfn32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto): New.
(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY
and BFD_RELOC_MIPS_JUMP_SLOT.
(bfd_elf32_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and
"R_MIPS_JUMP_SLOT".
(mips_elf32_n32_rtype_to_howto): Handle R_MIPS_COPY and
R_MIPS_JUMP_SLOT.
(elf_backend_rela_plts_and_copies_p, elf_backend_plt_readonly)
(elf_backend_plt_sym_val): Define.
* elf64-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto): New.
(bfd_elf64_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY
and BFD_RELOC_MIPS_JUMP_SLOT.
(bfd_elf64_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and
"R_MIPS_JUMP_SLOT".
(mips_elf64_rtype_to_howto): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT.
(elf_backend_rela_plts_and_copies_p, elf_backend_plt_readonly)
(elf_backend_plt_sym_val): Define.
* elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Delete.
(_bfd_mips_elf_use_plts_and_copy_relocs, _bfd_mips_elf_init_stubs)
(_bfd_mips_elf_plt_sym_val, _bfd_mips_post_process_headers): Declare.
* elfxx-mips.c (mips_elf_la25_stub): New structure.
(LA25_LUI, LA25_J, LA25_ADDIU): New macros.
(mips_elf_link_hash_entry): Add "la25_stubs", "has_static_relocs"
and "has_nonpic_branches" fields.  Remove "is_relocation_target" and
"is_branch_target".
(mips_elf_link_hash_table): Add blank lines.  Add
"use_plts_and_copy_relocs", "reserved_gotno", "strampoline",
"la25_stubs" and "add_stub_section" fields.
(mips_htab_traverse_info): New structure.
(PIC_OBJECT_P, MIPS_ELF_LOAD_WORD): New macros.
(MIPS_RESERVED_GOTNO): Delete.
(mips_o32_exec_plt0_entry, mips_n32_exec_plt0_entry)
(mips_n64_exec_plt0_entry, mips_exec_plt_entry): New tables.
(mips_elf_link_hash_newfunc): Update after the changes to
mips_elf_link_hash_entry.
(mips_elf_check_mips16_stubs): Replace the DATA parameter with
an INFO parameter.  Don't look through warnings symbols here;
do it in mips_elf_check_symbols instead.
(mips_elf_create_stub_symbol): New function.
(mips_elf_la25_stub_hash, mips_elf_la25_stub_eq): New functions.
(_bfd_mips_elf_init_stubs, mips_elf_local_pic_function_p): Likewise.
(mips_elf_add_la25_intro, mips_elf_add_la25_trampoline): Likewise.
(mips_elf_add_la25_stub, mips_elf_check_symbols): New functions.
(mips_elf_gotplt_index): Check for VxWorks.
(mips_elf_output_dynamic_relocation): Take the relocation index
as an extra parameter.  Do not increment reloc_count here.
(mips_elf_initialize_tls_slots): Update the calls to
mips_elf_output_dynamic_relocation accordingly.
(mips_elf_multi_got): Use htab->reserved_gotno instead of
MIPS_RESERVED_GOTNO.
(mips_elf_create_got_section): Don't allocate reserved GOT
entries here.  Unconditionally create .got.plt, but don't
set its alignment here.
(mips_elf_relocation_needs_la25_stub): New function.
(mips_elf_calculate_relocation): Redirect branches and jumps to
a non-PIC stub if one exists.  Check !h->has_static_relocs instead
of !htab->is_vxworks when deciding whether to create dynamic
relocations for R_MIPS_32, R_MIPS_REL32 and R_MIPS_64.
(_bfd_mips_elf_create_dynamic_sections): Unconditionally call
_bfd_elf_create_dynamic_sections.  Unconditionally set up
htab->splt and htab->sdynbss.  Set htab->srelplt to ".rel.plt"
if !htab->is_vxworks.  Add non-VxWorks values of
htab->plt_header_size and htab->plt_entry_size.
(_bfd_mips_elf_check_relocs): Set pointer_equality_needed for
non-branch static relocations.  Set has_nonpic_branches when an la25
stub might be required.  Set can_make_dynamic_p to TRUE if R_MIPS_32,
R_MIPS_REL32 and R_MIPS_64 relocations can be made dynamic,
rather than duplicating the condition.  Do not make them dynamic
for read-only sections in non-PIC executable objects.
Do not protect this code with dynobj == NULL || htab->sgot == NULL;
handle each group of cases separately.  Add a default case that
sets has_static_relocs for non-GOT relocations that cannot be
made dynamic.  Don't set is_relocation_target and is_branch_target.
Reject non-PIC static relocations in shared objects.
(_bfd_mips_vxworks_adjust_dynamic_symbol): Fold into...
(_bfd_mips_elf_adjust_dynamic_symbol): ...here, using
htab->use_plts_and_copy_relocs instead of htab->is_vxworks
to select PLT and copy-reloc handling.  Set the alignment of
.plt and .got.plt when allocating the first entry.  Generalize
code to handle REL as well as RELA sections and 64-bit as well as
32-bit GOT entries.  Complain if we find a static-only reloc
against an externally-defined symbol and if we cannot create
dynamic relocations for it.  Allocate copy relocs using
mips_elf_allocate_dynamic_relocations on non-VxWorks targets.
Set possibly_dynamic_relocs to 0 when using PLTs or copy relocs.
Skip reserved .got.plt entries.
(_bfd_mips_elf_always_size_sections): Use mips_elf_check_symbols
instead of mips_elf_check_mips16_stubs to process each symbol.
Do the traversal for relocatable objects too.
(mips_elf_lay_out_got): Use htab->reserved_gotno instead of
MIPS_RESERVED_GOTNO.
(_bfd_mips_elf_size_dynamic_sections): Exclude sdynbss if it
is empty.  Extend the DT_PLTREL, DT_JMPREL and DT_PLTRELSZ handling
to non-VxWorks targets.  Only add DT_REL{,A}, DT_REL{,A}SZ and
DT_REL{,A}ENT if .rel.dyn is nonempty.  Create a symbol for the
PLT.  Allocate a nop at the end of the PLT.  Allocate DT_MIPS_PLTGOT.
(mips_elf_create_la25_stub_info): New function.
(_bfd_mips_elf_finish_dynamic_symbol): Write out PLT entries
and copy relocs where necessary.  Check pointer_equality_needed.
(mips_finish_exec_plt): New function.
(_bfd_mips_elf_finish_dynamic_sections): Always set DT_PLTGOT
to the beginning of htab->sgot.  Use htab->reserved_gotno instead
of MIPS_RESERVED_GOTNO.  Assert htab->use_plts_and_copy_relocs
instead of htab->is_vxworks for DT_PLTREL, DT_PLTRELSZ and DT_JMPREL.
Set DT_PLTREL to DT_REL instead of DT_RELA on non-VxWorks targets.
Use mips_finish_exec_plt to create non-VxWorks PLT headers.  Set
DT_MIPS_PLTGOT.
(_bfd_mips_elf_copy_indirect_symbol): Copy has_static_relocs
from the indirect symbol to the direct symbol.  Also copy
has_nonpic_branches for indirect symbols.
(_bfd_mips_elf_get_target_dtag): Handle DT_MIPS_PLTGOT and
DT_MIPS_RWPLT.
(_bfd_mips_elf_link_hash_table_create): Initialize the new
mips_elf_link_hash_table fields.
(_bfd_mips_vxworks_link_hash_table_create): Set
use_plts_and_copy_relocs to TRUE.  Use TRUE rather than 1
when setting is_vxworks.
(_bfd_mips_elf_use_plts_and_copy_relocs): New function.
(_bfd_mips_elf_final_link): Call mips_elf_create_la25_stub for
each la25_stub.
(_bfd_mips_elf_merge_private_bfd_data): Treat dynamic objects
as PIC.  Generalize message about linking PIC and non-PIC.
(_bfd_mips_elf_plt_sym_val, _bfd_mips_post_process_headers): New
functions.
* reloc.c: Update comment near BFD_RELOC_MIPS_JUMP_SLOT.
* bfd-in2.h: Regenerated.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Mark Shinwell  <shinwell@codesourcery.com>

* readelf.c (get_mips_symbol_other): Handle STO_MIPS_PLT and
STO_MIPS_PIC.
(slurp_rela_relocs, slurp_rel_relocs): Handle MIPS ELF64 here.
(dump_relocations, debug_apply_relocations): Don't handle it here.
(get_mips_dynamic_type): Handle DT_MIPS_PLTGOT and DT_MIPS_RWPLT.
(print_mips_pltgot_entry): New function.
(process_mips_specific): Dump the PLT GOT.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* config/tc-mips.c (OPTION_CALL_NONPIC): New macro.
(OPTION_NON_SHARED, OPTION_XGOT, OPTION_MABI, OPTION_32)
(OPTION_N32, OPTION_64, OPTION_MDEBUG, OPTION_NO_MDEBUG)
(OPTION_PDR, OPTION_NO_PDR, OPTION_MVXWORKS_PIC): Bump by 1.
(md_longopts): Add -call_nonpic.
(md_parse_option): Handle OPTION_CALL_NONPIC.
(md_show_usage): Add -call_nonpic.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>

* gas/mips/call-nonpic-1.s, gas/mips/call-nonpic-1.d: New test.
* gas/mips/mips.exp: Run it.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Mark Shinwell  <shinwell@codesourcery.com>

* mips.h (STO_MIPS_PLT, ELF_ST_IS_MIPS_PLT, ELF_ST_SET_MIPS_PLT)
(STO_MIPS_PIC, DT_MIPS_PLTGOT, DT_MIPS_RWPLT): New macros.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
(OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
two variables.
* emulparams/elf32bmipn32-defs.sh: Likewise.
* emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
(is_mips_elf): New macro.
(stub_file, stub_bfd): New variables.
(hook_stub_info): New structure.
(hook_in_stub): New function.
(mips_add_stub_section): Likewise.
(mips_create_output_section_statements): Likewise.
(mips_before_allocation): Likewise.
(real_func): New variable.
(mips_for_each_input_file_wrapper): New function.
(mips_lang_for_each_input_file): Likewise.
(lang_for_each_input_file): Define.
(LDEMUL_BEFORE_ALLOCATION): Likewise.
(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* ld-mips-elf/mips16-pic-3a.s,
ld-mips-elf/mips16-pic-3b.s,
ld-mips-elf/mips16-pic-3.dd,
ld-mips-elf/mips16-pic-3.gd,
ld-mips-elf/mips16-pic-3.rd,
ld-mips-elf/mips16-pic-3.inc,
ld-mips-elf/pic-and-nonpic-1a.s,
ld-mips-elf/pic-and-nonpic-1b.s,
ld-mips-elf/pic-and-nonpic-1.ld,
ld-mips-elf/pic-and-nonpic-1.dd,
ld-mips-elf/pic-and-nonpic-1.nd,
ld-mips-elf/pic-and-nonpic-1-rel.dd,
ld-mips-elf/pic-and-nonpic-1-rel.nd,
ld-mips-elf/pic-and-nonpic-2a.s,
ld-mips-elf/pic-and-nonpic-2b.s,
ld-mips-elf/pic-and-nonpic-2.d,
ld-mips-elf/pic-and-nonpic-3a.s,
ld-mips-elf/pic-and-nonpic-3a.ld,
ld-mips-elf/pic-and-nonpic-3a.dd,
ld-mips-elf/pic-and-nonpic-3a.gd,
ld-mips-elf/pic-and-nonpic-3a.sd,
ld-mips-elf/pic-and-nonpic-3b.s,
ld-mips-elf/pic-and-nonpic-3b.ld,
ld-mips-elf/pic-and-nonpic-3b.ad,
ld-mips-elf/pic-and-nonpic-3b.dd,
ld-mips-elf/pic-and-nonpic-3b.gd,
ld-mips-elf/pic-and-nonpic-3b.nd,
ld-mips-elf/pic-and-nonpic-3b.pd,
ld-mips-elf/pic-and-nonpic-3b.rd,
ld-mips-elf/pic-and-nonpic-3b.sd,
ld-mips-elf/pic-and-nonpic-3-error.d,
ld-mips-elf/pic-and-nonpic-4a.s,
ld-mips-elf/pic-and-nonpic-4b.s,
ld-mips-elf/pic-and-nonpic-4b.ld,
ld-mips-elf/pic-and-nonpic-4b.ad,
ld-mips-elf/pic-and-nonpic-4b.dd,
ld-mips-elf/pic-and-nonpic-4b.gd,
ld-mips-elf/pic-and-nonpic-4b.nd,
ld-mips-elf/pic-and-nonpic-4b.rd,
ld-mips-elf/pic-and-nonpic-4b.sd,
ld-mips-elf/pic-and-nonpic-4-error.d,
ld-mips-elf/pic-and-nonpic-5a.s,
ld-mips-elf/pic-and-nonpic-5b.s,
ld-mips-elf/pic-and-nonpic-5b.ld,
ld-mips-elf/pic-and-nonpic-5b.ad,
ld-mips-elf/pic-and-nonpic-5b.dd,
ld-mips-elf/pic-and-nonpic-5b.gd,
ld-mips-elf/pic-and-nonpic-5b.nd,
ld-mips-elf/pic-and-nonpic-5b.rd,
ld-mips-elf/pic-and-nonpic-5b.sd,
ld-mips-elf/pic-and-nonpic-5b.pd,
ld-mips-elf/pic-and-nonpic-6.ld,
ld-mips-elf/pic-and-nonpic-6-o32a.s,
ld-mips-elf/pic-and-nonpic-6-o32b.s,
ld-mips-elf/pic-and-nonpic-6-o32c.s,
ld-mips-elf/pic-and-nonpic-6-o32.ad,
ld-mips-elf/pic-and-nonpic-6-o32.dd,
ld-mips-elf/pic-and-nonpic-6-o32.gd,
ld-mips-elf/pic-and-nonpic-6-o32.nd,
ld-mips-elf/pic-and-nonpic-6-o32.pd,
ld-mips-elf/pic-and-nonpic-6-o32.rd,
ld-mips-elf/pic-and-nonpic-6-o32.sd,
ld-mips-elf/pic-and-nonpic-6-n32a.s,
ld-mips-elf/pic-and-nonpic-6-n32b.s,
ld-mips-elf/pic-and-nonpic-6-n32c.s,
ld-mips-elf/pic-and-nonpic-6-n32.ad,
ld-mips-elf/pic-and-nonpic-6-n32.dd,
ld-mips-elf/pic-and-nonpic-6-n32.gd,
ld-mips-elf/pic-and-nonpic-6-n32.nd,
ld-mips-elf/pic-and-nonpic-6-n32.pd,
ld-mips-elf/pic-and-nonpic-6-n32.rd,
ld-mips-elf/pic-and-nonpic-6-n32.sd,
ld-mips-elf/pic-and-nonpic-6-n64a.s,
ld-mips-elf/pic-and-nonpic-6-n64b.s,
ld-mips-elf/pic-and-nonpic-6-n64c.s,
ld-mips-elf/pic-and-nonpic-6-n64.ad,
ld-mips-elf/pic-and-nonpic-6-n64.dd,
ld-mips-elf/pic-and-nonpic-6-n64.gd,
ld-mips-elf/pic-and-nonpic-6-n64.nd,
ld-mips-elf/pic-and-nonpic-6-n64.pd,
ld-mips-elf/pic-and-nonpic-6-n64.rd,
ld-mips-elf/pic-and-nonpic-6-n64.sd: New tests.
* ld-mips-elf/mips-elf.exp: Run them.

15 years ago * fhandler.cc (fhandler_base::open): Use Samba workaround generally
Corinna Vinschen [Thu, 7 Aug 2008 16:20:03 +0000 (16:20 +0000)]
* fhandler.cc (fhandler_base::open): Use Samba workaround generally
for all remote filesystems supporting ACLs.  Change comment and
explain why.  Refer to the discussion which led to this.

15 years ago * config/i386/profile.h (mcount): Mark asms volatile.
Brian Dessent [Tue, 5 Aug 2008 19:20:58 +0000 (19:20 +0000)]
* config/i386/profile.h (mcount): Mark asms volatile.

15 years ago* dll_init.cc (dll_global_dtors): Add an additional test to avoid walking the
Christopher Faylor [Tue, 5 Aug 2008 14:26:47 +0000 (14:26 +0000)]
* dll_init.cc (dll_global_dtors): Add an additional test to avoid walking the
linked list if it is empty.
(dll_list::detach): Don't set dll_global_dtors_recorded if we aren't actually
going to record any dlls.

15 years agoChanges suggested by Dave Korn.
Christopher Faylor [Mon, 4 Aug 2008 15:55:32 +0000 (15:55 +0000)]
Changes suggested by Dave Korn.
* dcrt0.cc (cygwin_exit): Remove (hopefully) extraneous call to
dll_global_dtors.
* dll_init.cc (dll_global_dtors): Run destructors in reverse dependency/load
order.
* dll_init.h (dll_list): Add dll_global_dtors as a friend.

15 years ago* cygcheck.cc (load_cygwin): Duplicate argv list since it disappears when
Christopher Faylor [Mon, 4 Aug 2008 15:30:06 +0000 (15:30 +0000)]
* cygcheck.cc (load_cygwin): Duplicate argv list since it disappears when
cygwin1.dll is unloaded.

15 years ago * common.h (ELFOSABI_AROS): Update comment.
Alan Modra [Sun, 3 Aug 2008 23:20:42 +0000 (23:20 +0000)]
* common.h (ELFOSABI_AROS): Update comment.

15 years ago * mt-spu (all-ld): Update for ld Makefile changes.
Alan Modra [Sun, 3 Aug 2008 03:38:07 +0000 (03:38 +0000)]
* mt-spu (all-ld): Update for ld Makefile changes.

15 years ago * tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal
Keith Seitz [Sat, 2 Aug 2008 21:20:13 +0000 (21:20 +0000)]
    * tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal
        with cygwin.
        (SC_PATH_TKCONFIG): Likewise.

15 years agogas/
Peter Bergner [Sat, 2 Aug 2008 04:38:51 +0000 (04:38 +0000)]
gas/
* config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
Handle -mvsx and -mpower7.
(md_show_usage): Document -mpower7 and -mvsx.
* doc/as.texinfo (Target PowerPC): Document -mvsx.
* doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.

gas/testsuite/
* gas/ppc/power7.d: New.
* gas/ppc/power7.s: Likewise.
* gas/ppc/ppc.exp: Run power7 test.

include/opcode/
* ppc.h (PPC_OPCODE_VSX, PPC_OPERAND_VSR): New.

opcodes/
* ppc-dis.c (powerpc_init_dialect): Handle power7 and vsx options.
(print_insn_powerpc): Prepend 'vs' when printing VSX registers.
(print_ppc_disassembler_options): Document -Mpower7 and -Mvsx.
* ppc-opc.c (insert_xt6): New static function.
(extract_xt6): Likewise.
(insert_xa6): Likewise.
(extract_xa6: Likewise.
(insert_xb6): Likewise.
(extract_xb6): Likewise.
(insert_xb6s): Likewise.
(extract_xb6s): Likewise.
(XS6, XT6, XA6, XB6, XB6S, DM, XX3, XX3DM, XX1_MASK, XX3_MASK,
XX3DM_MASK, PPCVSX): New.
(powerpc_opcodes): Add opcodes "lxvd2x", "lxvd2ux", "stxvd2x",
"stxvd2ux", "xxmrghd", "xxmrgld", "xxpermdi", "xvmovdp", "xvcpsgndp".

15 years ago* dcrt0.cc (dll_crt0_1): Add a symbol denoting return from call to main().
Christopher Faylor [Fri, 1 Aug 2008 19:12:49 +0000 (19:12 +0000)]
* dcrt0.cc (dll_crt0_1): Add a symbol denoting return from call to main().
* exceptions.cc (stack_info::walk): Stop walking the stack when we hit
_cygwin_exit_return rather than just blindly stopping when PC becomes zero.

15 years ago * path.cc (symlink_info::check): Handle (and explain) a special case
Corinna Vinschen [Thu, 31 Jul 2008 14:48:28 +0000 (14:48 +0000)]
* path.cc (symlink_info::check): Handle (and explain) a special case
when accessing files matching DOS device names on SMB shares.

15 years ago * spawn.cc (spawn_guts): Check constructed short pathname for being
Corinna Vinschen [Thu, 31 Jul 2008 14:41:19 +0000 (14:41 +0000)]
* spawn.cc (spawn_guts): Check constructed short pathname for being
a DOS device name and fall back to long path name, if so.

15 years ago2008-07-30 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 30 Jul 2008 15:03:57 +0000 (15:03 +0000)]
2008-07-30 Paolo Bonzini  <bonzini@gnu.org>

Sync with gcc:
2008-07-30 Paolo Bonzini  <bonzini@gnu.org>

        * configure.ac: Add makefile fragments for hpux.
        * Makefile.def (flags_to_pass): Add ADA_CFLAGS.
        * Makefile.tpl (HOST_EXPORTS): Pass ADA_CFLAGS.
        * configure: Regenerate.
        * Makefile.in: Regenerate.

2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

        * Makefile.tpl ($(srcdir)/configure): Update dependencies.
        * Makefile.in: Regenerate.
        * configure: Regenerate.

config:
2008-07-30  Paolo Bonzini  <bonzini@gnu.org>

* mh-pa: New, from gcc/config/pa/x-ada.
* mh-pa-hpux10: New, from gcc/config/pa/x-ada-hpux10.

2008-06-11  Bernhard Fischer  <aldot@gcc.gnu.org>

        * tls.m4: Fix typos.

15 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_name): Check for
Corinna Vinschen [Wed, 30 Jul 2008 14:41:59 +0000 (14:41 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_name): Check for
file systems incapable of handling FileIdBothDirectoryInformation
correctly.
(fhandler_disk_file::opendir): Ditto.
* path.cc (fs_info::update): Always clear at the start.
Rearrange to make certain tests only on non-Samba, non-NFS remote
drives.
Add test for file systems known to be incapable of handling
FileIdBothDirectoryInformation correctly.  Right now that's just
"UNIXFS".
* path.h (struct fs_info): Add has_buggy_fileid_dirinfo flag and
accessor methods.
(class path_conv): Add has_buggy_fileid_dirinfo method.

15 years ago * sec_auth.cc (extract_nt_dom_user): Return domain and user name as
Corinna Vinschen [Wed, 30 Jul 2008 12:10:20 +0000 (12:10 +0000)]
* sec_auth.cc (extract_nt_dom_user): Return domain and user name as
WCHAR.
(cygwin_logon_user): Accommodate above change.  Convert password to
WCHAR and call LogonUserW.
* external.cc (cygwin_internal): Accommodate above change.
* security.h (extract_nt_dom_user): Change prototype accordingly.

15 years agoinclude/opcode/
Alan Modra [Wed, 30 Jul 2008 06:29:21 +0000 (06:29 +0000)]
include/opcode/
* ppc.h (PPC_OPCODE_405): Define.
(PPC_OPERAND_FSL, PPC_OPERAND_FCR, PPC_OPERAND_UDI): Define.
gas/
* config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
(md_show_usage): Likewise.
opcodes/
* ppc-dis.c (print_insn_powerpc): Disassemble FSL/FCR/UDI fields.
* ppc-opc.c (powerpc_operands): Add Xilinx APU related operands.
(insert_sprg, PPC405): Use PPC_OPCODE_405.
(powerpc_opcodes): Add Xilinx APU related opcodes.

15 years ago* Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.
Christopher Faylor [Wed, 30 Jul 2008 06:07:42 +0000 (06:07 +0000)]
* Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.

15 years ago* cygwin.din (_getutline): Remove.
Christopher Faylor [Wed, 30 Jul 2008 04:58:24 +0000 (04:58 +0000)]
* cygwin.din (_getutline): Remove.
* lib/bsdlib.cc (login): Make argument const as per linux.
(logout): Ditto.
* syscalls.cc (getutid): Ditto.
(getutline): Ditto.
(pututline): Ditto.
(getutxent): Add comment mentioning non-thread-safety.
(getutxid): Ditto.
(getutxline): Ditto.
(pututxline): Ditto.
* sys/utmp.h: Declare arguments to various functions as const as per linux.
Remove bogus _getutline definition.

15 years ago(missing changelog entry)
Christopher Faylor [Wed, 30 Jul 2008 01:37:55 +0000 (01:37 +0000)]
(missing changelog entry)
* include/cygwin/version.h: Add comment indicating that current API number bump
also has another consequence.

15 years ago* include/cygwin/version.h: Add comment indicating that current API number bump
Christopher Faylor [Tue, 29 Jul 2008 14:07:21 +0000 (14:07 +0000)]
* include/cygwin/version.h: Add comment indicating that current API number bump
also has another consequence.

15 years ago * Makefile.in (DLL_OFILES): Remove v8 regexp files.
Corinna Vinschen [Tue, 29 Jul 2008 10:40:37 +0000 (10:40 +0000)]
* Makefile.in (DLL_OFILES): Remove v8 regexp files.
(OBSOLETE_FUNCTIONS): Remove v8 regexp functions.
(NEW_FUNCTIONS): Remove POSIX regex functions.
* cygwin.din: Export POSIX regex functions with their correct symbol
name.  Export with posix_ prefix for backward compatibility.
* syscalls.cc (regfree): Remove ancient fake function.
* regex/regex.h: Remove renaming regex functions within Cygwin.
* regexp/*: Remove.
* include /cygwin/version,.h: Bump API minor number.

15 years agoReplace __mingw_snprintf() with new generic family implementation; likewise, replace...
Keith Marshall [Mon, 28 Jul 2008 23:24:20 +0000 (23:24 +0000)]
Replace __mingw_snprintf() with new generic family implementation; likewise, replace __mingw_vsnprintf().

15 years ago Lay foundations for new printf() function family implementation.
Keith Marshall [Mon, 28 Jul 2008 22:57:43 +0000 (22:57 +0000)]
Lay foundations for new printf() function family implementation.

15 years ago* dcrt0.cc (dll_crt0_0): Remove calling malloc_init and
Christopher Faylor [Sun, 27 Jul 2008 22:31:48 +0000 (22:31 +0000)]
* dcrt0.cc (dll_crt0_0): Remove calling malloc_init and
user_shared_initialize_1 from here.
(dll_crt0_1): Remove dynamically_loaded check.  Just call malloc_init and
user_shared_initialize unconditionally.
* shared.cc (user_shared_create): Rename from user_shared_initialize.
(user_shared_initialize): Rename from user_shared_initialize_1.  Move complete
user_shared content initialization code here from user_shared_create.
* syscalls.cc (seteuid32): Remove call to user_shared_initialize_1.  That is
implied by the "true" argument to user_shared_create().

15 years ago* mount.cc (mount_info::init): Add location where we're looking for fstab to
Christopher Faylor [Sun, 27 Jul 2008 16:59:07 +0000 (16:59 +0000)]
* mount.cc (mount_info::init): Add location where we're looking for fstab to
temporary message.
* lib/cygwin_crt0.c (cygwin_crt0): Simplify by eliminating accommodations for
ancient cygwin DLLs.
* lib/crt0.h: Include <windows.h> directly since it is needed.

15 years ago* cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.
Christopher Faylor [Sun, 27 Jul 2008 14:53:42 +0000 (14:53 +0000)]
* cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.

15 years ago* shared_info.h (shared_destroy): Declare.
Christopher Faylor [Sun, 27 Jul 2008 14:52:46 +0000 (14:52 +0000)]
* shared_info.h (shared_destroy): Declare.
* shared.cc (shared_destroy): Define new function to destroy shared memory
regions.
* init.cc (dll_entry): Call shared_destroy when dll detaches from the process.

15 years ago * fhandler_socket.cc (fhandler_socket::send_internal): Send never more
Corinna Vinschen [Sun, 27 Jul 2008 10:20:49 +0000 (10:20 +0000)]
* fhandler_socket.cc (fhandler_socket::send_internal): Send never more
then 64K bytes at once.  For blocking sockets, loop until entire data
has been sent or an error occurs.
(fhandler_socket::sendto): Drop code which sends on 64K bytes.
(fhandler_socket::sendmsg): Ditto.

This page took 0.081688 seconds and 5 git commands to generate.