summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2012-07-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2012-07-162-0/+7
| | | | * libc/posix/telldir.c: Conditionally build dd_hash_lock.
* include/Doug Evans2012-07-132-0/+11
| | | | | | | * filenames.h: #include "hashtab.h". (filename_hash, filename_eq): Declare. libiberty/ * filename_cmp.c (filename_hash, filename_eq): New functions.
* 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel2012-07-132-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf64-s390.c: Include elf-s390-common.c. (R_390_IRELATIVE): New reloc. (elf_s390_reloc_type_lookup): Support R_390_IRELATIVE. (RELA_ENTRY_SIZE): New macro. (elf_s390_link_hash_entry): New fields ifunc_resolver_address and *ifunc_resolver_section. (struct plt_entry): New struct. (struct elf_s390_obj_tdata): New field local_plt. (elf_s390_local_plt): New macro. (struct elf_s390_link_hash_table): New field irelifunc. (ELF64): New macro. (link_hash_newfunc): Initialize new fields. (elf_s390_check_relocs): Handle IFUNC symbols. (elf_s390_adjust_dynamic_symbol): Don't do anything for IFUNC symbols. (allocate_dynrelocs): Call s390_elf_allocate_ifunc_dyn_relocs for IFUNC symbols. (elf_s390_size_dynamic_sections): Handle IFUNC symbols. (elf_s390_relocate_section): Likewise. (elf_s390_finish_dynamic_symbol): Likewise. (elf_s390_finish_dynamic_sections): Handle local IFUNC symbols. (elf_s390_finish_ifunc_symbol): New function. (elf_s390_gc_sweep_hook): Handle local plt entries. (elf_backend_add_symbol_hook): Define. * elf32-s390.c: See elf64-s390.c changes. * elf-s390-common.c: New file. * bfd-in2.h (BFD_RELOC_390_IRELATIVE): New enum field. * libbfd.h (BFD_RELOC_390_IRELATIVE): New entry for BFD_RELOC_390_IRELATIVE. * reloc.c (BFD_RELOC_390_IRELATIVE): Document new relocation. 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * elf/s390.h (START_RELOC_NUMBERS): Define R_390_IRELATIVE reloc. 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * emulparams/elf_s390.sh (IREL_IN_PLT): Define. * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
* 2012-07-13 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2012-07-132-2/+8
| | | | | * libc/sys/rtems/machine/_types.h (_ssize_t): Add __ARM_EABI__, __v850__, __851__.
* Fix copy-paste errorCorinna Vinschen2012-07-131-3/+0
|
* * winlean.h: Make sure certain Windows macros are undefined again.Corinna Vinschen2012-07-124-5/+49
| | | | | | | | Add comment to explain why. * winsup.h: Include winlean.h from C sources as well. * libc/minires-os-if.c: Drop including ntdef.h. Fix previous ChangeLog entry.
* * pseudo-reloc.cc: Drop including wchar.h.Corinna Vinschen2012-07-124-5/+8
| | | | | | (__report_error): Define module as WCHAR. * advapi.cc: Drop including wchar.h. * kernel32.cc: Ditto.
* * Makefile.in (cygcheck.exe): Link against psapi.dll.Corinna Vinschen2012-07-116-43/+113
| | | | | | | | | | | | | | | | | | | | | | * bloda.cc: Change include section to work with Mingw64 headers. Include psapi.h. Use SystemProcessInformation instead of SystemProcessesAndThreadsInformation throughout and add define for w32api headers. Ditto for PSYSTEM_PROCESS_INFORMATION vs. PSYSTEM_PROCESSES. (system_module_list): New type to replace SYSTEM_MODULE_INFORMATION. Change usage throughout accordingly. (get_module_list): Fetch module list using PSAPI functions EnumDeviceDrivers and GetDeviceDriverBaseNameA. * cygcheck.cc (max): Define as __max if not defined already. (alloca): Only define if not defined already. (handle_unique_object_name): Use explicit sharing flags rather than FILE_SHARE_VALID_FLAGS which officially is only available in DDK headers. (PRODUCT_ULTIMATE_E): Only define if not defined already. * dump_setup.cc: Change include section to work with Mingw64 headers. (NtQueryAttributesFile): Drop NTOSAPI aka DECLSPEC_IMPORT. * strace.cc: Change include section to work with Mingw64 headers. (alloca): Only define if not defined already.
* * cygtls.cc (well_known_dlls): Add ole32.dll and wbemprox.dll.Corinna Vinschen2012-07-112-0/+6
|
* * cygwin.sc (.rdata): Revert patch from 2012-07-06.Corinna Vinschen2012-07-092-1/+5
|
* * passwd.cc (getpass): Make check for closed stream more reliable.Corinna Vinschen2012-07-092-8/+19
| | | | | Check if setting tty attributes worked and only revert to old state if so.
* * libc/stdio/fileno.c (fileno): Check if f is a valid stream. If not,Corinna Vinschen2012-07-092-1/+16
| | | | return -1 and set errno to EBADF per POSIX.
* * Makefile.in, configure.in, mkvers.sh: Revert accidental checkin fromCorinna Vinschen2012-07-094-11/+8
| | | | 2012-07-06.
* * Makefile.in: Change mingw_lib (temporarily?) back to w32api_lib.Christopher Faylor2012-07-082-1/+5
|
* * cygpath.cc: Change including headers to allow building againstCorinna Vinschen2012-07-066-38/+45
| | | | | | | | | | | | | | Mingw64 headers. Include ntdef.h and ntdll.h rather than ddk headers. Define _WIN32_WINNT and WINVER as 0x0602. (RtlEqualUnicodePathPrefix): Drop definition. Pulled in from ntdll.h now. (get_device_name): s/Zw/Nt. * dumper.cc: Include sys/param.h (dumper::dump_memory_region): Use MIN rather than min. * locale.cc: Include stdlib.h. Define _WIN32_WINNT and WINVER as 0x0602. * ps.cc: Include ntdef.h and ntdll.h rather than ddk headers. * regtool.cc (regDeleteKeyEx): Drop WINADVAPI qualifier.
* * winlean.h (__STRALIGN_H_): Drop definition.Corinna Vinschen2012-07-065-6/+16
|
* * mips.h: Fix a typo in description.Maciej W. Rozycki2012-07-062-1/+5
|
* * fhandler_procnet.cc: Fix copyright.Corinna Vinschen2012-07-065-4/+11
| | | | | | * syslog.cc: Ditto. * libc/minires-os-if.c: Ditto. * libc/minires.h: Ditto.
* Add files missing in previous checkinCorinna Vinschen2012-07-062-65/+52
|
* In terms of network related functionality, rely on Winsock definitionsCorinna Vinschen2012-07-0613-37/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as much as possible: * dtable.cc: Drop including sys/socket.h. * fhandler_procnet.cc: Change includes accordingly. * fhandler_socket.cc: Ditto. (fhandler_socket::listen): Avoid gcc error message initializing sin6. (LPFN_WSARECVMSG): Only define when building against w32api headers. * net.cc: Change includes accordingly. Define USE_SYS_TYPES_FD_SET and __WSA_ERR_MACROS_DEFINED. Define _INC_NETIOAPI temporarily and explain why. (struct _IP_ADAPTER_UNICAST_ADDRESS_LH): Only define when building against w32api headers. (struct _IP_ADAPTER_ADDRESSES_LH): Ditto. (SIO_GET_INTERFACE_LIST): Ditto. (ws_freeaddrinfo): Rename from freeaddrinfo so as not to collide with Winsock declaration. Change througout. (ws_getaddrinfo): Ditto. (ws_getnameinfo): Ditto. * select.cc: Include netdb.h after defining USE_SYS_TYPES_FD_SET. * syslog.cc: Drop including netinet/in.h. Define USE_SYS_TYPES_FD_SET and include ws2tcpip.h. * include/netdb.h (struct addrinfo): Don't define when building Cygwin. * include/cygwin/if.h: Don't declare if_xxx functions when building Cygwin. * include/cygwin/in.h: Disable most definitions when building Cygwin. * include/cygwin/socket.h: Disable sockaddr and sockaddr_storage definitions when building Cygwin. Same for MCAST_INCLUDE/MCAST_EXCLUDE. * libc/inet_addr.c: Don't define __INSIDE_CYGWIN__ nor __INSIDE_CYGWIN_NET__. * libc/inet_network.c: Ditto. * libc/minires.h: Drop redundant inclusion of netdb.h. Define __INSIDE_CYGWIN_NET__ only before including netdb.h and resolver headers.
* * include/winsock.h: Keep IP_OPTIONS and SO_xxx definitions whenCorinna Vinschen2012-07-063-4/+11
| | | | | | building Cygwin. * include/winsock2.h: Keep sockaddr and sockaddr_storage definitions when building Cygwin.
* * winbase.h: Throughout use LONG rather than long type to prepare forCorinna Vinschen2012-07-062-15/+26
| | | | | 64 bit. (InterlockedCompareExchangePointer): Define.
* * fhandler_registry.cc (RegOpenUserClassesRoot): Only define whenCorinna Vinschen2012-07-066-5/+48
| | | | | | | | | | | | | | | | | | building against w32api headers. (RegOpenCurrentUser): Ditto. * fhandler_tty.cc (GetNamedPipeClientProcessId): Ditto. * ntdll.h (enum _PROCESSINFOCLASS): Add ProcessImageFileName. (RtlInitAnsiString): Declare. (RtlUnicodeStringToAnsiSize): Declare. * sched.cc (GetForegroundWindow): Ditto. * sec_helper.cc (SECURITY_NT_NON_UNIQUE): Define as SECURITY_NT_NON_UNIQUE_RID when building against w32api headers. (cygsid::get_sid): Use SECURITY_NT_NON_UNIQUE rather than SECURITY_NT_NON_UNIQUE_RID. (__sec_user): Use PISECURITY_DESCRIPTOR rather than PSECURITY_DESCRIPTOR to allow valid pointer arithmetic. (_recycler_sd): Ditto. (_everyone_sd): Ditto.
* * advapi32.cc (_ADVAPI32_): Drop definition.Corinna Vinschen2012-07-063-13/+24
| | | | | | * kernel32.cc (_KERNEL32_): Ditto. * winlean.h: Add definitions required to use Mingw64 headers. (FILE_SHARE_VALID_FLAGS): Drop definition.
* * winsup.h (_WIN32_WINNT): Define. Explain why.Corinna Vinschen2012-07-062-1/+9
|
* * libc/rcmd.cc: Don't undef __INSIDE_CYGWIN_NET__.Corinna Vinschen2012-07-062-0/+5
|
* * cygwin.sc (.rdata): Include all sections starting with .rdata.Corinna Vinschen2012-07-062-1/+8
| | | | | (.debug_pubtypes): Make sure section is loaded at the end like all other debug sections.
* Allow building of Cygwin using Mingw64 SDK headers:Corinna Vinschen2012-07-064-5/+14
| | | | | | | | * libc/include/sys/time.h: Drop _WINSOCK_H guard. Just use _TIMEVAL_DEFINED instead. * libc/include/sys/types.h: Check for _WINSOCKAPI_ along with _WINSOCK_H. * libc/include/sys/unistd.h: Ditto.
* * Makefile.common (ALL_CFLAGS): Change := to = to allow overriding inCorinna Vinschen2012-07-062-1/+6
| | | | dependent Makefiles.
* gas/config/Sean Keys2012-07-051-1/+1
| | | | | | | | | | | | | | | | * tc-xgate.c: Revised assembler so that operands are collected before the addressing mode is determined. include/opcode/ * xgate.h: Changed the format string for mode XGATE_OP_DYA_MON. opcodes/ * xgate-dis.c: Removed an IF statement that will always be false due to overlapping operand masks. * xgate-opc.c: Corrected 'com' opcode entry and fixed spacing.
* * dcrt0.cc (build_argv): Guard against NULL pointer dereference found by Clang.Christopher Faylor2012-07-042-1/+7
|
* * exceptions.cc (setup_handler): Remove unneeded assignment found by Clang.Christopher Faylor2012-07-042-1/+6
|
* * hookapi.cc (find_first_notloaded_dll): Remove unused assignment ofChristopher Faylor2012-07-042-2/+5
| | | | importRVASize found by Clang.
* * fhandler_tty.cc (fhandler_pty_slave::read): Remove duplicate assignment toChristopher Faylor2012-07-042-1/+5
| | | | bytes_in_pipe found by Clang.
* fix typoChristopher Faylor2012-07-041-1/+1
|
* * exceptions.cc (exception::handle): Use error_code in klog, as intended.Christopher Faylor2012-07-032-2/+6
| | | | Found by Clang.
* * fhandler.h (class fhandler_dev_clipboard): Remove member eof.Corinna Vinschen2012-07-024-77/+87
| | | | | | | | | | | * fhandler_clipboard.cc: Throughout remove handling of eof member. (fhandler_dev_clipboard::write): Handle EOF condition immediately, rather than pushing it erroneously to the next read call. Rearrange code. Fix bug in CF_UNICODETEXT case which potentially dropped single bytes at the end of the buffer. Add comment. * strfuncs.cc (sys_cp_wcstombs): Allow returning non-NUL-terminated buffer if dst != NULL and len == (size_t) -1. Extend leading comment to explain what's returned in more detail.
* * fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicateChristopher Faylor2012-07-022-1/+5
| | | | assignment found by Clang.
* * fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS errorChristopher Faylor2012-07-022-0/+6
| | | | condition pointed to by Clang.
* * pinfo.cc (_pinfo::commune_request): Eliminate unneeded assignment found byChristopher Faylor2012-07-022-2/+5
| | | | Clang.
* * external.cc (fillout_pinfo): Return NULL rather than 0.Christopher Faylor2012-07-022-5/+12
| | | | (exit_process): Guard against NULL pointer dereference found by Clang.
* * mount.cc (mount_info::conv_to_win32_path): Eliminate unneeded assignmentChristopher Faylor2012-07-022-2/+7
| | | | | | found by CLANG. * path.cc (symlink_info::check): Remove unneeded/unused variable found by CLANG.
* * path.cc (symlink_info::check): Remove unneeded/unused variable.Christopher Faylor2012-07-022-3/+4
|
* * dll_init.cc (dll_list::alloc): Take long UNC paths into account.Corinna Vinschen2012-07-022-1/+12
|
* * Makefile.in: Add some more optimization flags for cygwait, malloc and ↵Christopher Faylor2012-07-029-16/+53
| | | | | | | | | | | | | | | | | | | | | path. Explain why -fomit-frame-pointer doesn't work right for passwd.o and path.o. Add -static to link command line for cygwin0.dll. * fhandler_disk_file.cc (fhandler_disk_file::facl): Reorganize slightly to silence compiler warning when compiling with -fstack-check. * net.cc (inet_ntop6): Initialize structure members to silence compiler warning when compiling with -fstack-check. * pseudo-reloc.cc (_pei386_runtime_relocator): Make this a C function. Detect NULL u. * winsup.h (_pei386_runtime_relocator): Declare this as extern "C". * lib/_cygwin_crt0_common.cc (_pei386_runtime_relocator): Call with NULL argument. * signal.cc (sigaction_worker): Eliminate last argument. Let callers report their own strace info. Regparmize. (sigaction): Reflect sigaction_worker changes. (siginterrupt): Ditto. * exceptions.cc: Update copyright.
* * path.cc: Perform some whitespace fixups throughout.Christopher Faylor2012-07-022-21/+26
|
* * kernel32.cc (_KERNEL32_): Define. Explain why.Corinna Vinschen2012-06-282-3/+12
| | | | (CreateFileMappingW): Drop undocumented flProtect flags.
* * fhandler_serial.cc: Fix includes for IOCTL codes to support Mingw64.Corinna Vinschen2012-06-285-32/+20
| | | | | | | | * fhandler_tape.cc: Ditto. * flock.cc (allow_others_to_sync): Use PISECURITY_DESCRIPTOR since PSECURITY_DESCRIPTOR is supposed to be the opaque type. * ntdll.h: Remove CreateDisposition flags again, now that they are defined in Mingw64's ntdef.h. Ditto for Create/Open flags.
* * exceptions.cc (RtlUnwind): Align declaration with MSDN.Corinna Vinschen2012-06-284-1/+43
| | | | | * ntdll.h: Define CreateDisposition Flags. Add comments. * winlean.h: Define FILE_SHARE_VALID_FLAGS if using Mingw64 headers.
* * configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sureAlexandre Oliva2012-06-283-8/+14
| | | | | they contain -O2. * configure: Regenerate.