summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2006-11-08 Jie Zhang <jzhang918@gmail.com>Jeff Johnston2006-11-0813-1/+5654
| | | | | | | | | | | | | | | * configure.host: Add support for bfin. * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin. * libc/include/machine/setjmp.h: Define _JBLEN for bfin. * libc/machine/bfin/aclocal.m4: Generate. * libc/machine/bfin/configure.in: New. * libc/machine/bfin/configure: Generate. * libc/machine/bfin/Makefile.am: New. * libc/machine/bfin/Makefile.in: Generate. * libc/machine/bfin/setjmp.S: New. * libc/machine/bfin/longjmp.S: New. * libc/machine/configure.in: Add bfin support. * libc/machine/configure: Generate.
* * sec_helper.cc (sid_auth): Remove.Corinna Vinschen2006-11-086-14/+76
| | | | | | | | | | | | | | | | | | | | | | | (well_known_this_org_sid): New well known sid. (SECURITY_MANDATORY_INTEGRITY_AUTHORITY): Define. (mandatory_medium_integrity_sid): New well known sid. (mandatory_high_integrity_sid): Ditto. (mandatory_system_integrity_sid): Ditto. (cygsid::get_sid): Use local SID_IDENTIFIER_AUTHORITY. Allow all authorities fitting in a UCHAR. * security.cc (get_token_group_sidlist): Always add the local group to the token. Add comment. Add "This Organization" group if available in incoming group list. (get_server_groups): Only add world and authenticated users groups if not already in list. (create_token): Add matching mandatory integrity SID to group list on systems supporting Mandatory Integrity Control. * security.h (well_known_this_org_sid): Define. (mandatory_medium_integrity_sid): Define. (mandatory_high_integrity_sid): Define. (mandatory_system_integrity_sid): Define. * wincap.h: Define has_mandatory_integrity_control throughout. * wincap.cc: Ditto.
* * fhandler.cc (check_posix_perm): Moved here from syscalls.cc.Corinna Vinschen2006-11-079-164/+324
| | | | | | | | | | | | | | | | (fhandler_base::fpathconf): New method implementing (f)pathconf. * fhandler.h (class fhandler_base): Declare fpathconf method. * path.cc (path_conv::check): Replace MAX_LINK_DEPTH with SYMLOOP_MAX. * path.h (MAX_LINK_DEPTH): Delete. * syscalls.cc (check_posix_perm): Move to fhandler.cc. (fpathconf): Call fhandler's fpathconf method. (pathconf): Build fhandler and call fhandler's fpathconf method. * sysconf.cc (sysconf): Reorder switch according to order of flags in sys/unistd.h. Add handling for some missing flags. * include/limits.h: Reorder according to SUSv3 description. Add some missing definitions. Add comments. * include/sys/syslimits.h: New file overriding newlib's syslimits.h file.
* * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.Corinna Vinschen2006-11-072-1/+13
| | | | | | (_PC_FILESIZEBITS): Add definition. (_PC_2_SYMLINKS): Ditto. (_PC_SYMLINK_MAX): Ditto.
* * dtable.cc (build_fh_pc): Add missing DEV_SD1_MAJOR case (Thanks toCorinna Vinschen2006-11-062-1/+7
| | | | Joe Loh for noticing).
* * path.cc (symlink_info::posixify): Fix comment.Corinna Vinschen2006-11-022-2/+6
|
* * path.cc (symlink_info::check): Eliminate PATH_REP bit from pflags.Corinna Vinschen2006-11-022-2/+6
|
* * path.cc (symlink_info::posixify): New mothod converting NT and DOSCorinna Vinschen2006-11-022-27/+89
| | | | | | | | | | | paths in symlinks to POSIX. (symlink_info::check_shortcut): Allocate buf allowing for a trailing 0. Call posixify on the result. (symlink_info::check_sysfile): Read from file into local buffer. Eliminate old b16 considerations. Call posixify on the result. (symlink_info::check_reparse_point): Don't use PrintName but SubstituteName which is relevant for Windows' path handling. Call posixify on the result.
* * include/winuser.h (LR_DEFAULTSIZE): Remove duplicate.Danny Smith2006-11-025-59/+16
| | | | | | | | | C99 'extern inline' patrol. * include/winnt.h (GetCurrentFiber): Remove extern declaration. Make inline static. (GetFiberData): Likewise. * lib/kernel32.c: Remove. * lib/Makefile.in: Remove reference to kernel32.[co].
* * security.h (cygpriv_idx): Add privileges new in Vista.Corinna Vinschen2006-11-014-3/+20
| | | | | * security.cc (sys_privs): Ditto. * sec_helper.cc (cygpriv): Ditto. Fix comment.
* * include/winnt.h (SE_RELABEL_NAME): Define.Corinna Vinschen2006-11-012-0/+11
| | | | | | (SE_INCREASE_WORKING_SET_NAME): Define. (SE_TIME_ZONE_NAME): Define. (SE_CREATE_SYMBOLIC_LINK_NAME): Define.
* 2006-10-30 Paul Brook <paul@codesourcery.com>Paul Brook2006-10-312-0/+11
| | | | | | | | | | | | | | | binutils/ * objdump.c (disassemble_section): Set info->symtab_pos. (disassemble_data): Set info->symtab and info->symtab_size. include/ * dis-asm.h (disassemble_info): Add symtab, symtab_pos and symtab_size. opcodes/ * arm-dis.c (last_is_thumb, last_mapping_sym, last_mapping_addr): New. (get_sym_code_type): New function. (print_insn): Search for mapping symbols.
* * cygheap.h (struct user_heap_info): Add slop member.Corinna Vinschen2006-10-318-10/+91
| | | | | | | | | | | | | | * heap.cc (heap_init): Add slop factor to heap allocation. Add comment. * mmap.cc (MapViewNT): Allocate memory maps top down. (fhandler_dev_zero::mmap): Ditto. * shared.cc (shared_info::heap_slop_size): New method. (shared_info::heap_chunk_size): Don't use debug_printf at early stage. * shared_info.h (SHARED_INFO_CB): Accomodate change to shared_info. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Add heap_slop member. Declare heap_slop_size. * wincap.h: Define heapslop throughout. * wincap.cc: Ditto.
* * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): DropCorinna Vinschen2006-10-315-14/+112
| | | | | | | | | | | | | | directory attribute for reparse points to avoid mistreating. (fhandler_base::fstat_by_name): Ditto. * path.cc (symlink_info::check_reparse_point): New method testing reparse points for symbolic links. (symlink_info::check_shortcut): Move file attribute tesat to calling function. (symlink_info::check): Add handling for reparse points. * path.h (enum path_types): Add PATH_REP to denote reparse point based symlinks. (path_conv::is_rep_symlink): New method. * syscalls.cc (unlink): Handle reparse points.
* * include/winnt.h (IO_REPARSE_TAG_SYMLINK): Define.Corinna Vinschen2006-10-312-0/+8
| | | | | (struct _REPARSE_DATA_BUFFER): Add missing Flags field to SymbolicLinkReparseBuffer substructure.
* * tc-score.c (data_op2): Check invalid operands.Nick Clifton2006-10-312-0/+615
| | | | | | | | | | (my_get_expression): Const operand of some instructions can not be symbol in assembly. (get_insn_class_from_type): Handle instruction type Insn_internal. (do_macro_ldst_label): Modify inst.type. (Insn_PIC): Delete. * score-inst.h (enum score_insn_type): Add Insn_internal. * tc-score.c (data_op2): The immediate value in lw is 15 bit signed. * score-dis.c (print_insn): Correct the error code to print correct PCE instruction disassembly.
* bfd/H.J. Lu2006-10-302-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-10-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/3111 * elf-bfd.h (elf_obj_tdata): Add symbuf. (_bfd_elf_section_already_linked): Add struct bfd_link_info *. (_bfd_elf_check_kept_section): Likewise. (bfd_elf_match_symbols_in_sections): Likewise. * elf.c (assign_section_numbers): Updated to add struct bfd_link_info *. (bfd_elf_match_symbols_in_sections): Updated. Cache symbol buffer if info->reduce_memory_overheads is false. * elflink.c (match_group_member): Updated to add struct bfd_link_info *. (_bfd_elf_check_kept_section): Likewise. (elf_link_input_bfd): Likewise. (_bfd_elf_section_already_linked): Likewise. (bfd_elf_final_link): Free symbol buffer if info->reduce_memory_overheads is false. * libbfd-in.h (_bfd_nolink_section_already_linked): Add struct bfd_link_info *. (_bfd_generic_section_already_linked): Likewise. * libbfd.h: Regenerated. * linker.c (bfd_section_already_linked): Add struct bfd_link_info *. (_bfd_generic_section_already_linked): Likewise. * targets.c (bfd_target): Add struct bfd_link_info * to _section_already_linked. * bfd-in2.h: Regenerated. include/ 2006-10-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/3111 * bfdlink.h (bfd_link_info): Add reduce_memory_overheads. ld/ 2006-10-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/3111 * ld.h (args_type): Remove reduce_memory_overheads. * ldlang.c (lang_map): Updated. (section_already_linked): Likewise. (print_input_section): Likewise. * ldmain.c (main): Likewise. * lexsup.c (parse_args): Likewise.
* 2006-10-29 Daniel Atallah <datallah@users.sourceforge.net>Danny Smith2006-10-292-0/+5
| | | | * lib/ws2_32.def (WSANSPIoctl): Add to lib.
* include/elf/Richard Sandiford2006-10-282-1/+7
| | | | | | | | | | | | * mips.h (R_MIPS_GLOB_DAT): Define (R_MIPS_max): Bump by 1. bfd/ * elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT. * elfn32-mips.c (elf_mips_howto_table_rel): Likewise. (elf_mips_howto_table_rela): Likewise. * elf64-mips.c (mips_elf64_howto_table_rel): Likewise. (mips_elf64_howto_table_rela): Likewise.
* 2006-10-27 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-10-2720-47/+1748
| | | | | | | | | | | | | | | | | | | | | | | | * libc/machine/spu/memcpy.c: Override generic function with vectorized version optimized for the cell spu. * libc/machine/spu/memmove.c: Ditto. * libc/machine/spu/memset.c: Ditto. * libc/machine/spu/strcat.c: Ditto. * libc/machine/spu/strchr.c: Ditto. * libc/machine/spu/strcmp.c: Ditto. * libc/machine/spu/strcpy.c: Ditto. * libc/machine/spu/strcspn.c: Ditto. * libc/machine/spu/strlen.c: Ditto. * libc/machine/spu/strncat.c: Ditto. * libc/machine/spu/strncmp.c: Ditto. * libc/machine/spu/strncpy.c: Ditto. * libc/machine/spu/strpbrk.c: Ditto. * libc/machine/spu/strrchr.c: Ditto. * libc/machine/spu/strspn.c: Ditto. * libc/machine/spu/strxfrm.c: Ditto. * libc/machine/spu/vec_literal.h: Add abstraction of vector literals, removing altivec style initializers. * libc/machine/spu/Makefile.am: Add new files to list so they build * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
* 2006-10-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-10-272-0/+31
| | | | | * COPYING.NEWLIB: Add spu license. * COPYING.LIBGLOSS: Ditto.
* 2006-10-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-10-272-0/+38
| | | | * COPYING.NEWLIB: Add spu license.
* 2006-10-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-10-272-0/+71
| | | | | * README: Add a brief section on how to regenerate configuration files in newlib.
* * shared.cc (open_shared): Drop useless attempt from 2006-08-11.Corinna Vinschen2006-10-272-24/+4
|
* * dcrt0.cc (__api_fatal): Drop spare argument to __small_sprintf.Corinna Vinschen2006-10-274-3/+12
| | | | | * smallprint.c (__small_vsprintf): Preserve GetLastError value. * winsup.h (api_fatal): Simplify. Drop duplicate filename arg.
* 2006-10-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2006-10-272-1/+5
| | | | * lib/Makefile.in: Fix order for 'all' rule.
* 2006-10-25 Vladimir Prus <vladimir@codesourcery.com>Jeff Johnston2006-10-252-1/+7
| | | | | * libc/include/math.h: (exception): Add a comment telling fixincludes that we handle C vs. C++ issue.
* New Cell SPU port.Alan Modra2006-10-258-0/+621
|
* Add powerpc cell support.Alan Modra2006-10-242-0/+6
|
* Fix AMDFAM10 POPCNT instructionMichael Meissner2006-10-232-1/+6
|
* * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Fix comment.Corinna Vinschen2006-10-232-3/+7
|
* * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): AccomodateCorinna Vinschen2006-10-234-6/+59
| | | | | | buggy RestartScan behaviour of Windows 2000. * wincap.h: Define has_buggy_restart_scan throughout. * wincap.cc: Ditto.
* * fhandler_disk_file.cc (fhandler_disk_file::facl): Fix whitespace.Corinna Vinschen2006-10-227-6/+21
| | | | | | | | | * external.cc: Update copyright. * fhandler.cc: Ditto. * sec_helper.cc: Ditto. * security.h: Ditto. * security.cc: Ditto. (check_registry_access): Return -1 if W_OK is requested.
* * external.cc (cygwin_internal): Use security_descriptor::copy method.Corinna Vinschen2006-10-225-106/+96
| | | | | | | | | | | | | | | | | | | | | | | * sec_helper.cc (security_descriptor::malloc): Use own free method. Set type. (security_descriptor::realloc): Handle the case that psd has been allocated using LocalAlloc. Set type. (security_descriptor::free): Ditto. * security.cc (get_nt_attribute): Remove. (get_reg_security): Remove. (get_nt_object_security): Use GetSecurityInfo which handles all securable objects. (get_nt_object_attribute): Remove. (get_object_attribute): Call get_nt_object_security instead of get_nt_object_attribute. (get_file_attribute): Ditto. (check_registry_access): Call get_nt_object_security instead of get_reg_security. * security.h (cygpsid::operator PSID): Make method const, not the result. (class security_descriptor): Add type member. Accomodate throughout. (security_descriptor::copy): New method. (security_descriptor::operator PSECURITY_DESCRIPTOR *): New operator.
* * fhandler.cc (fhandler_base::fhaccess): Check if opening registryCorinna Vinschen2006-10-223-1/+10
| | | | | | actually created a handle. This handles the registry root dir. * fhandler_registry.cc (fhandler_registry::open): Set io_handle in case of opening one of the predefined registry keys.
* * regtool.cc (key_type): Drop.Corinna Vinschen2006-10-212-111/+218
| | | | | | | | | | | | | | | | | | | | (REG_AUTO): Define. (value_type): Replace key_type. Use REG_xxx values directly. Accomodate change throughout. (longopts): Add --dword, --dword-le, --none, --qword and --hex options. (opts): Add -d, -D, -n, -Q and -x options. (types): Array to convert REG_xxx into strings. (hex): New variable to keep value of --hex option. (usage): Accomodate new options. Print only the necessary by default. Only be verbose in case of -h/--help option. (cmd_list): Use key separator from -K option when printing. Print value type when verbose option is given. Handle so far not handled REG_xxx types. (cmd_set): Avoid SEGV due to missing argument. Handle so far not handled REG_xxx types. (cmd_get): Handle --binary option type agnostic. Handle so far not handled REG_xxx types. (main): Handle new options.
* * fhandler.cc (fhandler_base::fhaccess): Call check_registry_accessCorinna Vinschen2006-10-214-34/+75
| | | | | | | | | | for registry keys/values if ntsec is on. * security.cc (check_access): New static function derived from check_file_access, but object type agnostic. (check_file_access): Only do file specific stuff. Call check_access. (check_registry_access): New access check function for registry keys/ values. * security.h (check_registry_access): Declare.
* * fhandler_registry.cc (fhandler_registry::fstat): Set restrictiveCorinna Vinschen2006-10-212-4/+26
| | | | | permission and ownership if key can't be opened for reading security. (open_key): If opening key fails, retry opening with backup intent.
* * net.cc (cygwin_getnameinfo): Fix typo in comment.Corinna Vinschen2006-10-202-1/+5
|
* Fix score bugsNick Clifton2006-10-192-10/+15
|
* * fhandler.h (fhandler_base::set_name): Make virtual.Corinna Vinschen2006-10-194-24/+70
| | | | | | | | | | | | | | | | | | (class fhandler_registry): Add wow64 and prefix_len members. Declare set_name method. * fhandler_proc.cc (PROC_REGISTRY32): Define. (PROC_REGISTRY64): Define. (proc_listing): Add "registry32" and "registry64" elements. (proc_fhandlers): Add corresponding FH_REGISTRY values. * fhandler_registry.cc (registry_len): Drop static value in favor of class member prefix_len. Use preifx_len instead of registry_len throughout. (fhandler_registry::set_name): Define. Set wow64 and prefix_len according to directory prefix. (fhandler_registry::fhandler_registry): Set wow64 and prefix_len to default values. (open_key): Add wow64 argument. Handle wow64 in call to RegOpenKeyEx. Use fhandler_registry member wow64 in this place throughout.
* * fhandler_proc.cc: Drop superfluous definition of _WIN32_WINNT.Corinna Vinschen2006-10-194-6/+8
| | | | | * miscfuncs.cc: Ditto. * sched.cc: Ditto.
* * regtool.cc (longopts): Add --wow32 option.Corinna Vinschen2006-10-193-0/+19
| | | | | | | (opts): Add -W option. (usage): Add text for --wow32/-W option. (main): Handle --wow32/-W option. * utils.sgml: Document the new -W option.
* * Fix ChangeLog entry to mention full path of changed file.Corinna Vinschen2006-10-191-1/+2
|
* * glob.c: Remove.Corinna Vinschen2006-10-173-276/+331
| | | | | | | | | * glob.cc: New file. Latest glob version from FreeBSD plus Cygwin specific changes (__stat64/__stat32, ignore_case_with_glob, drop collate functions). (glob3): Return GLOB_ABORTED in case directory is unreadable and GLOB_ERR is set, as demanded by SUSv3. * glob.h: Import latest version from FreeBSD.
* bfd/Mark Shinwell2006-10-172-0/+17
| | | | | | | | | | | | | | | | | | | | | | * elf32-arm.c (elf32_arm_howto_table_1): Change offset for R_THM_CALL to 25 and remove FIXME comment. (using_thumb2): New function. (elf32_arm_final_link_relocate): Cope with Thumb-2 BL encoding. include/ * elf/arm.h: Define TAG_CPU_ARCH_* constants. ld/testsuite/ * ld-arm/arm-elf.exp: Add thumb1-bl, thumb2-bl, thumb2-bl-as-thumb1-bad and thumb2-bl-bad tests. * ld-arm/thumb1-bl.d: New. * ld-arm/thumb1-bl.s: New. * ld-arm/thumb2-bl-as-thumb1-bad.d: New. * ld-arm/thumb2-bl-as-thumb1-bad.s: New. * ld-arm/thumb2-bl-bad.d: New. * ld-arm/thumb2-bl-bad.s: New. * ld-arm/thumb2-bl.d: New. * ld-arm/thumb2-bl.s: New.
* * winsup.h (WINVER): Define instead of _WIN32_WINNT. Set to 0x0502.Corinna Vinschen2006-10-172-3/+7
| | | | (_NO_W32_PSEUDO_MODIFIERS): Define.
* 2006-10-17 Brooks Moses <bmoses@stanford.edu>DJ Delorie2006-10-174-92/+2467
| | | | | | * Makefile.def: Added pdf target handling. * Makefile.tpl: Added pdf target handling. * Makefile.in: Regenerated.
* * regtool.cc (KEY_WOW64_64KEY): Drop definition. Instead defineCorinna Vinschen2006-10-162-4/+6
| | | | WINVER to 0x0502 before including windows.h.
* * regtool.cc (KEY_WOW64_64KEY): Define.Corinna Vinschen2006-10-163-6/+57
| | | | | | | | | | | | | | | (longopts): Add --wow64 option. (opts): Add -w option. (wow64): New variable to control usage of KEY_WOW64_64KEY access flag. (usage): Add text for --wow64/-w option. (print_version): Fix copyright. (find_key): Use wow64 value in calls to RegOpenKeyEx and RegCreateKeyEx. (cmd_add): Use wow64 value in call to RegCreateKeyEx. (regDeleteKeyEx): New function pointer to load RegDeleteKeyEx function dynamically. (cmd_remove): Load and use regDeleteKeyEx when wow64 is set. (main): Handle --wow64/-w option. * utils.sgml: Document the new -w option.