aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-06-14Add JLI support.Claudiu Zissulescu1-1/+6
Initialize the jli_base registers for ARCv2 cpus. libgloss/ 2017-05-23 Claudiu Zissulescu <claziss@synopsys.com> * arc/crt0.S: Initialize the jli_base registers for ARCv2 cpus.
2017-06-14Add profile support.Claudiu Zissulescu4-8/+527
Add profile support for ARC processors. libgloss/ 2016-07-28 Claudiu Zissulescu <claziss@synopsys.com> * arc/crt0.S: Add calls to profiler support routines. * Makefile.in (CRT0): Add gcrt0. (NSIM_OBJS): Add mcount. (CRT0_INSTALL): Install gcrt0, and crt0. * arc/gcrt0.S: New file. * arc/mcount.c: Likewise.
2017-06-14cygwin: readdir: don't lookup mount target inodesCorinna Vinschen1-41/+30
So far Cygwin's readdir returned the inode number of a mount target in d_ino, rather than the actual inode number of the mount point in the underlying filesystem. This not only results in a performance hit if the mount target is a remote FS, it is also not done on other POSIX systems. Remove the code evaluating the mount target inode number. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-06-14readdir() with mount point dentry, return mount point INOJoe Lowe1-23/+10
This patch fixes a minor compatibility issue w/ cygwin mount point handling in readdir(), compared to equivalent behavior of Linux and MacOS. dentry.d_ino should indicate the INO of the mount point itself, not the target volume root folder. Changed return type from readdir_check_reparse_point to uint8_t, to avoid unnecessarily being implicitly cast to and from a signed int. Renamed a related local variable "attr" to "oattr" that was eclipsing a member variable with the same name. Joe L.
2017-06-14ccoshl: Align formatting to upstreamAditya Upadhyay1-6/+6
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-06-13Importing ccoshl.c from netbsd.Aditya Upadhyay3-4/+55
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-06-12Remove FreeBSD specifics from RTEMS <arpa/inet.h>Sebastian Huber1-21/+0
For whatever reason FreeBSD renames several functions provided by <arpa/inet.h> and uses weak references to provide the standard function names. This causes problems on targets lacking proper support for weak references. We do not need this function renaming on RTEMS. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-06-09Don't overread or write memory returned by _DTOA_RSilviu Baranga1-12/+13
Don't over-read memory returned by _DTOA_R, and never write to it since the result might be a string literal. For example, when doing: swprintf(tt, 20, L"%.*f", 6, 0.0); we will get back "0". Instead, write the result returned by _DTOA_R to the output buffer. After this, write the 0 chars directly to the the output buffer (if there are any). This also has the (marginal) advantage that we read/write less memory overall.
2017-06-09Add COMODO Internet Security and ConEmu to BLODADavid Macek1-1/+3
ConEmu: There has been at least one report of it causing crashes <https://github.com/Maximus5/ConEmu/issues/1158> COMODO Internet Security: Causing GPG failures <https://github.com/msys2/msys2/issues/38>
2017-06-07Fix RTEMS ioctl() declarationSebastian Huber1-2/+2
Using uint32_t for ioctl_command_t does not work well on 64-bit targets. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-06-07Update FreeBSD revision of RTEMS <sys/bitset.h>Sebastian Huber1-1/+1
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-06-07Fix some RTEMS CPUSET(9) macrosSebastian Huber1-11/+11
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-06-07Fix RTEMS CPU_EQUAL_S()Sebastian Huber1-2/+2
According to the FreeBSD man page BIT_CMP() returns true in case the two sets are NOT equal. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-06-07Add myself to Write After ApprovalSebastian Huber1-0/+1
2017-06-07Fix minor issues in memchr NEON implementationPrakhar Bahuguna1-1/+2
2017-06-07Print sign of NaN values.Kito Cheng2-0/+8
2017-06-07cygwin: document lrint bugfixCorinna Vinschen1-0/+3
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-06-07cygwin: Fix lrint{f,l} to return a 64 bit long on x86_64Corinna Vinschen3-3/+9
Mingw-w64 (where the code has been taken from) has 4 byte longs independently of the architecture but x86_64 Cygwin has 64 bit longs. So use fistpll instead of fistpl on x86_64 Cygwin. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-06-06cygwin: document env var crash fixCorinna Vinschen1-0/+3
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-06-06cygwin: Fix crash if env var name starts with non-ASCII charCorinna Vinschen1-2/+2
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-06-06cygwin: document wcsxfrm fixCorinna Vinschen1-0/+3
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-06-06cygwin wcsxfrm: byte swap result ourselvesCorinna Vinschen1-8/+13
Workaround a bug (or undocumented behaviour) in LCMapStringW: It's documented(*) that the cchDest parameter is a byte count with LCMAP_SORTKEY, but a character count otherwise. But the docs don't state what happens if you combine LCMAP_SORTKEY with LCMAP_BYTEREV. Tests indicate that LCMAP_SORTKEY treats cchDest as byte count, but then LCMAP_BYTEREV treats it as char count in the same call. So the latter swaps twice as much bytes in the destination buffer than the byte count it returns, which potentially results in writing past the end of the given output buffer. Solution: Don't specify LCMAP_BYTEREV in the LCMapStringW(LCMAP_SORTKEY) call, rather byte swap afterwards. (*) https://msdn.microsoft.com/en-us/library/windows/desktop/dd318702(v=vs.85).aspx Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-05-26Fix thinko in MSP430 libgloss implementation of write() system call.Martin Young1-1/+1
2017-05-25Update COPYING.NEWLIB appropriately.Jeff Johnston1-1/+85
2017-05-25Add de-facto standard <sys/ioctl.h> for RTEMSSebastian Huber3-0/+252
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-05-25Add some POSIX header files for RTEMSSebastian Huber20-6/+4641
Add the POSIX header files * arpa/inet.h * net/if.h * netdb.h * netinet/in.h * netinet/tcp.h * sys/socket.h * sys/syslog.h * sys/uio.h * sys/un.h * syslog.h * termios.h and their dependencies for RTEMS. The origin of these files is the latest FreeBSD. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-05-25FreeBSD compatibility for RTEMS <sys/cpuset.h>Sebastian Huber4-138/+402
Make the RTEMS <sys/cpuset.h> compatible with the latest FreeBSD version. Fix the CPU_COPY() parameter order, see also: https://devel.rtems.org/ticket/3023 Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-05-25Add __bitcount*() to RTEMS <machine/types.h>Sebastian Huber2-0/+92
Use a dedicated header file <machine/_bitcount.h> to avoid cyclic header dependencies in future changes. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-05-25Move ARM access.c from machine to sysSebastian Huber5-14/+13
The implementation of the POSIX access() function is nothing machine specific like memcpy(), etc. Move it back to the system domain. This avoids problems due to the include search order of the Newlib/GCC build which picks up machine includes before system includes. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-05-25Increase MSIZE for RTEMSSebastian Huber1-1/+1
Increase the MSIZE for RTEMS to be in line with the latest FreeBSD version. The legacy network stack of RTEMS will provides its own definition. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-05-25FreeBSD compatibility for RTEMS <sys/param.h>Sebastian Huber2-125/+180
Update the RTEMS <machine/param.h> and <sys/param.h> to be compatible with the latest FreeBSD version. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-05-25Add generic <machine/_align.h> for RTEMSSebastian Huber2-11/+42
It uses __BIGGEST_ALIGNMENT__ which is available in recent GCC and LLVM/clang. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-05-19ARM/AArch64: Fix GetCmdLine semihosting directivesnewlib-snapshot-20170519Laurent ALFONSI2-7/+12
When simulating arm code, the target program startup code (crt0) uses semihosting invocations to get the command line from the simulator. The simulator returns the command line and its size into the area passed in parameter. (ARM 32-bit specifications : http://infocenter.arm.com/help/topic/com.arm.doc.dui0058d/DUI0058.pdf chapter "5.4.19 SYS_GET_CMDLINE"). The memory area pointed by the semihosting register argument is located in .text section (usually not writtable (RX)). If we run this code on a simulator that respects this rights properties (qemu user-mode for instance), the command line will not be written to the .text program memory, in particular the length of the string. The program runs with an empty command line. This problem hasn't been seen earlier probably because qemu user-mode is not so much used, but this can happen with another simulator that refuse to write in a read-only segment. With this modification, the command line can be correctly passed to the target program. Changes: - libgloss/arm/crt0.S : Arguments passed to the AngelSWI_Reason_GetCmdLine semihosting invocation are placed into .data section instead of .text - libgloss/aarch64/crt0.S : Idem for aarch64 AngelSVC_Reason_GetCmdLine semihosting.
2017-04-25cygwin CONTRIBUTORS: Add Daniel SantosCorinna Vinschen1-0/+1
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-24Fix transposed lines in 2.8.1 release textJon Turney1-2/+2
2017-04-24Update 2.8.1 release textJon Turney1-1/+7
2017-04-24cygwin: add 2.8.1 release fileCorinna Vinschen1-0/+23
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-24cygwin TEST: Add nagging debug output to pinfoCorinna Vinschen1-0/+13
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-24cygwin: pinfo: do not wait for setting ppid on a transitional procinfoCorinna Vinschen1-6/+11
This leads to excessive lag when stracing processes if the inferior process checks the process table. The reason is that ppid isn't set in the procinfo memory of the dynamically loading strace itself. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-24cygwin: try unprivileged symlink creation on W10 1703 and laterCorinna Vinschen1-2/+9
Add new SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE flag to CreateSymbolicLinkW call when running on W10 1703 or later. Don't do that on older versions to avoid ERROR_INVALID_PARAMETER. Preliminary, needs testing. There's an off-chance that the flag results in the same ERROR_INVALID_PARAMETER on 1703 if the developer settings are not enabled. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-24cygwin: wincap: handle W10 1703Corinna Vinschen2-2/+28
Add has_unprivileged_createsymlink flag and set to true on 1703 and later. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-24cygwin: wincap: fix evaluation of build numberCorinna Vinschen1-0/+1
RtlGetNtVersionNumbers returns the build number with some upper bits set for no apparent reason. The fact that RtlGetNtVersionNumbers is undocumented doesn't exactly help. Just filter out the upper WORD for now. If build numbers are in danger to become 6 digit numbers, re-evaluate.
2017-04-24cygwin: remov unused winpids constructorCorinna Vinschen1-2/+0
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-22Fix stat.st_blocks for files compressed with CompactOS methodChristian Franke1-5/+12
Always retrieve FileCompressionInformation for non-empty files if FileStandardInformation returns 0 allocated blocks. This fixes stat.st_blocks for files compressed with CompactOS method. Signed-off-by: Christian Franke <franke@computer.org>
2017-04-22cygwin doc: Add postinstall/preremove scripts to install Start Menu entriesBrian Inglis3-2/+115
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-22cygwin CONTRIBUTORS: Add Brian InglisCorinna Vinschen1-0/+1
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-22cygwin doc: install-html: Fix docbook.css and index.html symlink installationCorinna Vinschen1-4/+4
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-20Update URLs for Cygwin packaging informationnewlib-snapshot-20170421Jon Turney3-13/+6
Also: Remove obsolete reference to g-b-s Remove mention of ancient pre-invisiconsole behaviour of setup scripts Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2017-04-19strace: Fix "over-optimization" flaw in strace.Daniel Santos1-1/+1
Recent versions of gcc are optimizing away the TLS buffer allocated in main, so we need to tell gcc that it's really used. RtlSecureZeroMemory accomplishes this while also inlining the memset. Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
2017-04-19Fix relocation type for _bsssize being R_MSP430X_ABS16 when large memory ↵Jozef Lawrynowicz1-2/+2
model is used