summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * internal.h (R_JMP2, R_JMPL2, R_MOVL2): Comment spelling fix.Joern Rennecke2001-08-242-3/+7
|
* * elf-bfd.h (enum elf_reloc_type_class): New.Jakub Jelinek2001-08-232-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (struct elf_backend_data): Add elf_backend_reloc_type_class. (_bfd_elf_reloc_type_class): New. * elfxx-target.h (elf_backend_reloc_type_class): Define. (elfNN_bed): Add elf_backend_reloc_type_class. * elf.c (_bfd_elf_reloc_type_class): New. * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_i386_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf32_sparc_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (sparc64_elf_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field. (elfNN_ia64_hash_table_create): Clear ia64_info. (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only section. (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag instead of looking up section names for DT_TEXTREL. (elfNN_ia64_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elflink.h (size_dynamic_sections): Add spare DT_NULL tags. (struct elf_link_sort_rela): New. (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New. (elf_bfd_final_link): Call elf_link_sort_relocs. Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if necessary. * bfdlink.h (struct bfd_link_info): Add combreloc and spare_dynamic_tags fields. * emultempl/elf32.em (place_orphan): Place orphan .rel* sections into .rel.dyn resp. .rela.dyn if combreloc. (get_script): If .x linker script is equal to .xn, only put it once into the binary. Add .xc and .xsc scripts. (parse_args): Handle -z combreloc and -z nocombreloc. * scripttempl/elf.sc (.rela.sbss): Fix a typo. For .xc and .xsc scripts put all .rel* or .rela* input sections but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn. * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME is elf. Strip trailing whitespace from script. Generate .xc and .xsc scripts if requested. * ldmain.c (main): Initialize link_info.combreloc and link_info.spare_dynamic_tags. * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define. (ld_options): Add --spare-dynamic-tags option. (parse_args): Likewise. * ld.texinfo: Document -z combreloc and -z nocombreloc. * ldint.texinfo: Document .xc and .xsc linker scripts. * NEWS: Add notes about -z combreloc and SHF_MERGE.
* merge from gccDJ Delorie2001-08-236-20/+25
|
* * dtable.cc (dtable::dup2): Allow extension of fd table by dup2.Christopher Faylor2001-08-234-24/+28
| | | | | | | * syscalls.cc: Minor code cleanup. (fpathconf): Check for bad fd before doing anything else. * termios.cc (tcsetattr): Don't convert to new termios if bad fd. (tcgetattr): Minor debugging tweak.
* * net.cc (cygwin_inet_ntoa): Rearrange previous patch to useCorinna Vinschen2001-08-224-68/+94
| | | | | | | | | | | | | | | thread local buffer space when compiled thread safe. (cygwin_getprotobyname): Ditto. (cygwin_getprotobynumber): Ditto. (cygwin_getservbyname): Ditto. (cygwin_getservbyport): Ditto. (cygwin_gethostbyname): Ditto. (cygwin_gethostbyaddr): Ditto. Move near to cygwin_gethostbyname. * thread.h (struct _winsup_t): Add pointers for above used buffer space. * passwd.cc (getpwduid): Remove initializing passwd. (setpwent): Ditto. (endpwent): Ditto. (setpassent): Ditto.
* * smallprint.c (console_printf): New function.Christopher Faylor2001-08-228-36/+81
| | | | | | | | | | * dcrt0.cc (dll_crt0_1): Use console_printf for debugging output. * debug.cc (debug_mark_closed): New function. (close_handle): Use debug_mark_closed. * debug.h: Declare new functions. * dtable.cc (dtable::build_fhandler): Remove unneeded extern. * spawn.cc: Cosmetic changes. * winsup.h: Define NO_COPY for C files, too. Declare a global.
* * net.cc (free_char_list): New static function.Corinna Vinschen2001-08-222-7/+205
| | | | | | | | | | | | | | | | | | (dup_char_list): Ditto. (free_protoent_ptr): Ditto. (dup_protoent_ptr): Ditto. (free_servent_ptr): Ditto. (dup_servent_ptr): Ditto. (free_hostent_ptr): Ditto. (dup_hostent_ptr): Ditto. (cygwin_inet_ntoa): Use local static buffer to allow propagating of the result to child processes. (cygwin_getprotobyname): Ditto. (cygwin_getprotobynumber): Ditto. (cygwin_getservbyname): Ditto. (cygwin_getservbyport): Ditto. (cygwin_gethostbyname): Ditto. (cygwin_gethostbyaddr): Ditto.
* fix typo.Christopher Faylor2001-08-221-1/+1
|
* merge from gccDJ Delorie2001-08-222-13/+19
|
* * mips/Makefile.in (jmr3904-io.o): Remove bogus use of `-mips3.'Jonathan Larmour2001-08-222-1/+5
|
* 2001-08-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-212-1/+6
| | | | | * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional for SIZE_SZ so that alignment ends up a minimum of 8.
* merge from gccDJ Delorie2001-08-212-0/+84
|
* * include/setupapi.h : New file.Earnie Boyd2001-08-2116-54/+2133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/setupapi.def:New file. * lib/test.c: Include setupapi.h. * include/winioctl.h (_DISK_PERFORMANCE): Correct typo. * include/richedit.h (ENLINK): Add structure definition. (EM_AUTOURLDETECT, EN_LINK, ENM_LINK): Add defines. * include/shlobj.h (CMIC_*): Remove duplicate defines. (CMDSTR_*): Remove duplicates; UNICODE string constants. (GCS_*): Make UNICODE. (CSIDL_*): Add more defines. * include/winioctl.h (_MEDIA_TYPE): Add pointer typedef. (_DISK_GEOMETRY): Ditto. (_DISK_PERFORMANCE): Ditto. * include/winbase.h (HasOverlappedIoCompleted): Add macro. * include/winnt.h: Move CHAR, SHORT and LONG typedefs outside of block protected by #ifndef VOID. (This reverts 1998-12-01 Anders Norlander change.) * include/odbcinst.h: End file with newline. * include/raserror.h: Ditto. * include/winsock2.h (#include <wtypes.h): Don't. (_BLOB): Define instead, if not already done. (__BLOB_T_DEFINED: New define for guarding _BLOB. * include/wtypes.h (_BLOB): Guard against prior definition. * include/oaidl.h (tagVARIANT): Mark anonymous structs and unions as __extension__. (tagTYPEDESC): Ditto. (_wireBRECORD): Add structure definition. (_wireSAFEARR_BRECORD): Ditto. (_wireSAFEARR_HAVEIID): Ditto. (_wireSAFEARRAY_UNION.u): Add fields SAFEARR_BRECORD RecordStr, SAFEARR_HAVEIID HaveIidStr. (tagVariant): Add fields _VARIANT_BOOL bool,*pbool. (_wireVARIANT): Change field parray to type wirePSAFEARRAY, pparray to wirePSAFEARRAY*. (_wireVARIANT): Add field wireBRECORD brecVal. (wireVARIANT): Change typedef to struct _wireVariant*. (IRecordInfo): Add interface definition. (LPRECORDINFO): Add typedef for IRecordInfo*. (IID_IRecordInfo): Add forward decalaration. * include/lmcons.h: Guard CNLEN and UNCLEN against prior definition. * include/nddeapi.h: Likewise. * ChangeLog: Formatting and typo fixes.
* * floatformat.h (floatformat_arm_ext): Document as deprecated.Andrew Cagney2001-08-212-1/+17
| | | | | | | (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword) (floatformat_ia64_spill_little, floatformat_ia64_quad_little) (floatformat_ia64_spill_big, floatformat_ia64_quad_big) (floatformat_m88110_harris_ext): Declare.
* debugChristopher Faylor2001-08-201-1/+1
|
* * cygheap.cc (init_cheap): Allocate cygheap in shared memory for Windows NT.Christopher Faylor2001-08-202-4/+23
|
* * config.sub, config.guess: Import latest from subversions.Alan Modra2001-08-203-212/+212
|
* merge from gccDJ Delorie2001-08-182-137/+186
|
* merge from gccDJ Delorie2001-08-172-0/+7
|
* Add support for MIPS R1[02]000 performance counter opcodes.Thiemo Seufer2001-08-162-1/+10
|
* * fhandler_socket.cc (fhandler_socket::create_secret_event): RelaxEgor Duda2001-08-162-2/+9
| | | | | | security of secret_event so AF_UNIX socket clients can connect to servers even if running under a different user account. (fhandler_socket::check_peer_secret_event): Ditto.
* * resource.cc (getrlimit): Return getdtablesize () as current limitCorinna Vinschen2001-08-164-3/+11
| | | | | | | on RLIMIT_NOFILE. * syscalls.cc (getdtablesize): Return OPEN_MAX if current dtable size is less than OPEN_MAX, the current dtable size otherwise. * sysconf.cc (sysconf): Return getdtablesize () on _SC_OPEN_MAX.
* * resource.cc (getrlimit): Return OPEN_MAX as current limitCorinna Vinschen2001-08-165-5/+20
| | | | | | | on RLIMIT_NOFILE. * syscalls.cc (getdtablesize): Return OPEN_MAX. * sysconf.cc (sysconf): Return OPEN_MAX on _SC_OPEN_MAX. * include/limits.h (OPEN_MAX): Define as 256.
* * times.cc (utimes): Revert previous change. Just open theCorinna Vinschen2001-08-152-32/+10
| | | | | file using FILE_WRITE_ATTRIBUTES instead of GENERIC_WRITE on NT/W2K.
* * security.cc (set_nt_attribute): Return always -1 in case ofCorinna Vinschen2001-08-153-2/+40
| | | | | | | a failure. * times.cc (utimes): On NTFS with ntsec ON, change the file's security descriptor temporarily to acquire write access if opening the file failed.
* * fhandler.cc (fhandler_base::is_nonblocking): New method.Corinna Vinschen2001-08-157-24/+46
| | | | | | | | | | | | | | | | | | (fhandler_base::set_nonblocking): Ditto. * fhandler.h (fhandler_base): Declare new methods `is_nonblocking' and `set_nonblocking'. * fhandler_socket.cc (fhandler_socket::ioctl): Use `set_nonblocking'. * fhandler_tty.cc (fhandler_pty_master::process_slave_output): Use `is_nonblocking'. (fhandler_tty_slave::read): Ditto. (fhandler_tty_slave::ioctl): Use `set_nonblocking'. (fhandler_pty_master::ioctl): Ditto. * net.cc (cygwin_sendto): Fallback to winsock 1 functionality in case of nonblocking IO. (cygwin_recvfrom): Ditto. (cygwin_recv): Ditto. (cygwin_send): Ditto. * syscalls.cc (_read): Use `is_nonblocking'.
* * cygpath.cc (main): Support -w for Windows (System) directories and returnChristopher Faylor2001-08-152-2/+16
| | | | physical correct orthography for the Windows System dir.
* * include/cygwin/version.h: Bump API version.Christopher Faylor2001-08-142-1/+6
|
* * spawn.cc (spawn_guts): Enable appropriate privilege beforeEgor Duda2001-08-142-0/+12
| | | | loading user's registry hive.
* * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro arguments.Christopher Faylor2001-08-143-4/+20
| | | | * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under Cygwin.
* * fhandler.cc (fhandler_base::fcntl): Use new O_NONBLOCK_MASK define.Corinna Vinschen2001-08-148-28/+68
| | | | | | | | | | | | | | | | | | | * fhandler.h: Move definitions of O_NOSYMLINK, O_DIROPEN and OLD_O_NDELAY from winsup.h to here. Add O_NONBLOCK_MASK define. * fhandler_socket.cc (fhandler_socket::close): Add hack to allow a graceful shutdown even if shutdown() hasn't been called by the application. Add debug output. (fhandler_socket::ioctl): Set fhandler's NONBLOCK flag according to FIONBIO setting. (fhandler_socket::fcntl): Use new O_NONBLOCK_MASK define. Actually set `request' before using it. * fhandler_tty.cc: Use new O_NONBLOCK_MASK define throughout. (fhandler_tty_slave::ioctl): Set fhandler's NONBLOCK flag according to FIONBIO setting. (fhandler_pty_master::ioctl): Ditto. * net.cc (wsock_event::prepare): Compare WSACreateEvent return code with `WSA_INVALID_EVENT' according to MSDN. * syscalls.cc (_read): Use new O_NONBLOCK_MASK define.
* 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-132-0/+20
| | | | | | * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New macro constants for mallopt options. (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
* Oops. Forgot to check in include/wchar.h???Christopher Faylor2001-08-111-1/+2
|
* (lbasename): Change function declaration to return a const char pointer.Andrew Cagney2001-08-102-1/+6
|
* * opcode/mips.h (INSN_GP32): Remove.Richard Sandiford2001-08-102-11/+11
| | | | | (OPCODE_IS_MEMBER): Remove gp32 parameter. (M_MOVE): New macro identifier.
* * lib/kernels.c: New file.Earnie Boyd2001-08-101-0/+25
|
* * lib/test.c (Win32_Winsock): Replace with __USE_W32_SOCKETS.Earnie Boyd2001-08-104-16/+74
| | | | | | | | | | Add more includes of w32api headers. * include/winnt.h (GetCurrentFiber): Change __inline to __inline__. Swap asm code with that of GetFiberData. (GetFiberData): Ditto. * lib/kernels.c: New file, containing library versions of GetCurrentFiber and GetFiberData. * lib/makefile.in: Add kernel32.o as static object to libkernal32.a.
* Revert 2001-08-08 changes.Alan Modra2001-08-102-1/+4
|
* * include/wchar.h: Define __need_wint_t.Christopher Faylor2001-08-081-0/+4
|
* * include/winuser.h (GET_WHEEL_DELTA_WPARAM): Add macro.Earnie Boyd2001-08-083-16/+237
| | | | * lib/oleaut32.def: Regenerate.
* * ppc.h (struct powerpc_operand): New field `reloc'.Alan Modra2001-08-082-0/+6
| | | | | * ppc-opc.c: Include "bfd.h". (powerpc_operands): Add new field for reloc type.
* * security.cc (alloc_sd): Revert to setting inheritance attribute forCorinna Vinschen2001-08-082-17/+6
| | | | permissions given to directories. Never set inheritance on NULL ACE.
* * security.cc (alloc_sd): Don't set FILE_DELETE_CHILD for groupCorinna Vinschen2001-08-074-4/+13
| | | | | | | if S_ISVTX attribute is given. * dir.cc (mkdir): Allow immediate setting of S_ISUID, S_ISGID and S_ISVTX attribute. * syscalls.cc (_open): Ditto.
* * dir.cc (mkdir): Set security attributes correctly forCorinna Vinschen2001-08-076-15/+65
| | | | | | | | | | CreateDirectoryA () call if ntsec is on. Don't call set_file_attributes () then. * fhandler.cc (fhandler_base::open): Ditto for CreateFileA () call. * path.cc (symlink): Ditto. * security.cc (set_security_attribute): New function. * security.h: Add declaration for `allow_ntea' and `set_security_attribute'.
* * grp.cc (class grp_check): New class. Make `group_state'Corinna Vinschen2001-08-073-2/+111
| | | | | | | | a member of class grp_check. (read_etc_group): Free former allocated memory on reread. * passwd.cc (class pwd_check): New class Make `passwd_state' a member of class pwd_check. (read_etc_passwd): Free former allocated memory on reread.
* * fhandler_console.cc (get_tty_stuff): Don't initialize shared memory consoleChristopher Faylor2001-08-073-4/+15
| | | | | area if it is already initialized. * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Augment debugging info.
* * cygheap.cc (cygheap_root::set): Avoid treating '/' specially.Christopher Faylor2001-08-079-30/+57
| | | | | | | | | * fhandler.cc (fhandler_base::fcntl): Only set specific O_NDELAY style flag passed in from application. * fhandler_socket.cc (fhandler_socket::fcntl): Ditto. * fhandler.h: Set constant for future use. * winsup.h: Define OLD_O_NDELAY only for old programs. * include/cygwin/version.h: Define CYGWIN_VERSION_CHECK_FOR_OLD_O_NONBLOCK.
* * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.Earnie Boyd2001-08-054-11/+36
| | | | | | | | | | * include/stdio.h (_IORW): Change constant to 0x0080. (TMP_MAX): Add new define. (_P_tmpdir): Ditto. (_wP_tmpdir): Ditto. (L_tmpnam): Change constant to 16. * include/malloc.h: Fix non-ANSI comment after #endif. * profile/Makefile.in (mkinstalldirs): Correct relative path.
* * include/wtypes.h: (DECIMAL_SETZERO): Correct typo.Earnie Boyd2001-08-0511-40/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/oleidl.h (ISupportErrorInfo, ICreateInfo): Move from here * include/oaidl.h: ... to here. * include/oaidl.h ICreateErrorInfo): Add interface definition. (IErrorInfo::GetGUID): Change arg to GUID. (LPSUPPORTERRORINFO): Add typedef. (IID_ISupportErrorInfo): Change forward decl. of type to IID. * include/winsock2.h (WSAGET* and WSAMAKE*): Remove duplicate defines. * include/commctrl.h (TreeView_SetIndent): Correct typo. * include/commctrl.h (TBSTYPE_FLAT): Remove define. * include/commctrl.h (TBBUTTONINFO[AW]): Add struct definitions, and UNICODE mappings, if _WIN32_IE >= 0x400. (TBIF_* and TB_SETBUTTONINFO): Add defines, if _WIN32_IE >= 0x400. (CDIS_*,CDDS_*,CDRF_*) : Add defines. (tagNMCUSTOMDRAWINFO): Add struct definition and typedefs. (tagNMLVCUSTOMDRAW): Likewise. (tagNMTVCUSTOMDRAW): Likewise. (tagNMLVCACHEHINT): Likewise. * include/basetsd.h (#include <_mingw.h>): Remove. (__int64): Define. * include/wingdi.h (AC_SRC_OVER): Add define. (struct _BLENDFUNCTION): Add. * include/shlobj.h: Add BIF_* defines. * include/winerror.h (E_PENDING): Add error code define. * include/basetsd.h (#include <_mingw.h>): Add directive. * include/winbase.h(InterlockedCompareExchange): Change args and return value from PVOID to LONG. (InterlockedExchange): Change first arg to LPLONG. (InterlockedCompareExchangePointer): New macro. (InterlockedExchangePointer): New macro.
* Throughout, change check for running under Windows NT to 'iswinnt'.Christopher Faylor2001-08-0427-76/+105
| | | | | | | | | | | | | * dcrt0.cc (set_os_type): Set 'iswinnt' appropriately. * cygheap.cc (init_cheap): Revert to using VirtualAlloc for allocating cygheap. (cygheap_setup_for_child_cleanup): New function. Standard function to call after calling CreateProcess to cleanup cygheap info passed to child. (cygheap_fixup_in_child): Copy cygheap from shared memory into allocated space under Windows 9x or if can't relocate shared space under NT. * cygheap.h: Declare new function. * spawn.cc (spawn_guts): Use cygheap_fixup_in_child. * fork.cc (fork_parent): Ditto. * winsup.h: Declare iswinnt.