summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* include/elf/Richard Henderson2002-05-302-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * alpha.h (R_ALPHA_TLSGD, R_ALPHA_TLSLDM, R_ALPHA_DTPMOD64, R_ALPHA_GOTDTPREL, R_ALPHA_DTPREL64, R_ALPHA_DTPRELHI, R_ALPHA_DTPRELLO, R_ALPHA_DTPREL16, R_ALPHA_GOTTPREL, R_ALPHA_TPREL64, R_ALPHA_TPRELHI, R_ALPHA_TPRELLO, R_ALPHA_TPREL16): New. bfd/ * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD, ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New. (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove. (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove. (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated. (struct alpha_elf_obj_tdata): Rename total_got_entries and n_local_got_entries to total_got_size and local_got_size. (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs. (alpha_got_entry_size): New. (elf64_alpha_relax_with_lituse): Use it. (elf64_alpha_relax_without_lituse): Likewise. (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES. (get_got_entry): New. (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize. (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask. (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type. (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise. (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size. (elf64_alpha_calc_got_offsets): Likewise. (alpha_dynamic_entries_for_reloc): New. (elf64_alpha_calc_dynrel_sizes): Use it. (elf64_alpha_size_dynamic_sections): Likewise. (elf64_alpha_relocate_section): Handle TLS relocations. * reloc.c: Add Alpha TLS relocations. * bfd-in2.h, libbfd.h: Rebuild. gas/ * expr.h (operatorT): Add O_md17..O_md32. * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd, O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel, O_tprelhi, O_tprello, O_tprel): New. (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them. (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New. (LITUSE_TLSGD, LITUSE_TLSLDM): New. (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld, saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field. (md_apply_fix3): Handle TLS relocations. (alpha_force_relocation, alpha_fix_adjustable): Likewise. (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the associated TLS reloc. Check lituse_tls relocs match up. (emit_insn): Handle TLS relocations. (ldX_op): Remove. gas/testsuite/ * gas/alpha/elf-tls-1.s, gas/alpha/elf-tls-1.d: New. * gas/alpha/elf-tls-2.s, gas/alpha/elf-tls-1.l: New. * gas/alpha/elf-tls-3.s, gas/alpha/elf-tls-1.l: New. * gas/alpha/alpha.exp: Run them.
* 2002-05-30 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-3013-30/+423
| | | | | | | | | | | | | | | | | * libc/sys/linux/Makefile.am: Add support for new files. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/ids.c: Add __getuid weak alias for getuid. * libc/sys/linux/signal.c: Change to use real-time syscalls for sigsuspend, sigprocmask, and sigpending. Also remove sigaction as it is in a separate file now. * libc/sys/linux/machine/i386/Makefile.am * libc/sys/linux/machine/i386/Makefile.in * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>. * libc/sys/linux/sigaction.c: New file. * libc/sys/linux/sigqueue.c: Ditto. * libc/sys/linux/sigwait.c: Ditto. * libc/sys/linux/machine/i386/sigaction.c: Ditto. * libc/sys/linux/kernel_sigaction.h: Ditto.
* * mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.Christopher Faylor2002-05-302-1/+6
|
* * include/ntdef.h (ANSI_STRING, PANSI_STRING, OEM_STRING, POEM_STRING):Corinna Vinschen2002-05-302-0/+9
| | | | Add missing typedefs.
* * autoload.cc: Replace autoload statments for ZwXXX by NtXXX.Corinna Vinschen2002-05-306-29/+45
| | | | | | | | | | | | | | | | | | Drop ZwQuerySystemInformation since NtQuerySystemInformation was already available. * fhandler_proc.cc (format_proc_uptime): Replace call to ZwQuerySystemInformation by call to NtQuerySystemInformation. (format_proc_stat): Ditto. * fhandler_process.cc (format_process_stat): Replace call to ZwQueryInformationProcess by call to NtQueryInformationProcess. (get_process_state): Ditto. (get_mem_values): Ditto. Replace call to ZwQueryVirtualMemory by call to NtQueryVirtualMemory. * ntdll.h: Cleanup. Drop ZwQuerySystemInformation since NtQuerySystemInformation was already available. Replace declarations of ZwXXX functions by declarations of NtXXX. * pinfo.cc (winpids::enumNT): Replace call to ZwQuerySystemInformation by call to NtQuerySystemInformation.
* * mount.cc (main): Make -b the default.Christopher Faylor2002-05-302-1/+5
|
* speling fxiChristopher Faylor2002-05-301-1/+1
|
* * configure.in (vax-*-netbsd*): Don't build gas for thisJason Thorpe2002-05-302-0/+9
| | | | platform.
* 2002-05-29 Matt Thomas <matt@3am-software.com>Jason Thorpe2002-05-302-0/+55
| | | | * vax.h: New file
* * include/sys/cygwin.h (EXTERNAL_PINFO_VERSION): Reinstate.Christopher Faylor2002-05-293-1/+7
| | | | * external.cc (fillout_pinfo): Use it.
* * ps.cc (main): Use uid or uid32 member of struct external_pinfoCorinna Vinschen2002-05-292-7/+25
| | | | dependent of the value of the struct's version member.
* * external.cc (fillout_pinfo): Use new version define.Corinna Vinschen2002-05-293-2/+11
| | | | | | * include/sys/cygwin.h (external_pinfo): Define EXTERNAL_PINFO_VERSION_16_BIT and EXTERNAL_PINFO_VERSION_32_BIT instead of just EXTERNAL_PINFO_VERSION.
* * external.cc (fillout_pinfo): Set new version field in external_pinfoChristopher Faylor2002-05-293-4/+13
| | | | | | structure. * include/sys/cygwin.h (external_pinfo): Replace strace_file with version field.
* * ps.cc (main): Change print format for uid to unsigned. Use uid32Corinna Vinschen2002-05-292-5/+10
| | | | member of struct external_pinfo instead of uid.
* Change internal uid datatype from __uid16_t to __uid32_tCorinna Vinschen2002-05-2917-55/+135
| | | | | | | | | | | | | | | | | | | | throughout. * cygwin.din: Export new symbols getpwuid32, getpwuid_r32, getuid32, geteuid32, setuid32, seteuid32. * passwd.cc (getpwuid32): New function. (getpwuid_r32): Ditto. * syscalls.cc (seteuid32): Ditto. (setuid32): Ditto. * uinfo.cc (getuid32): Ditto. (geteuid32): Ditto. * winsup.h (uid16touid32): New macro, correclt casting from __uid16_t to __uid32_t. (gid16togid32): Ditto fir gids. (getuid32): Declare. (geteuid32): Ditto. (getpwuid32): Ditto. * include/sys/cygwin.h (struct external_pinfo): Add members uid32 and gid32.
* * include/cygwin/socket.h: Protect some symbols against multipleCorinna Vinschen2002-05-296-20/+399
| | | | | | | | | | | definition. * include/netinet/ip.h: Ditto. * include/netinet/tcp.h: Ditto. * include/netinet/ip.h: Replace by BSD derived version of the file. * include/netinet/tcp.h: Ditto. * include/netinet/udp.h: New file. * include/cygwin/ip.h: Remove.
* * passwd.c (prog_name): New global variable.Corinna Vinschen2002-05-292-39/+114
| | | | | | | | (longopts): Ditto. (opts): Ditto. (usage): Standardize output. Accomodate new options. (print_version): New function. (main): Accomodate longopts and new --help, --version options.
* * dtable.cc (dtable::init_std_file_from_handle): Attempt stronger detection ofChristopher Faylor2002-05-292-43/+61
| | | | | | invalid handle. (handle_to_fn): Detect pathological condition where NT resets the buffer pointer to NULL on an invalid handle.
* clarify changelogChristopher Faylor2002-05-291-1/+2
|
* * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Properly check forChristopher Faylor2002-05-292-1/+10
| | | | | whether we should be opening the file to search for #! characters. Set path_conv structure execability, too, if found.
* 2002-05-28 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-289-38/+223
| | | | | | | | | | | | | | * libc/sys/linux/Makefile.am: Add support for cfspeed.c and tcsendbrk.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/termios.c: Add tcflow(), tcflush(), tcgetpgrp(), and tcsetpgrp() functions. * libc/sys/linux/sys/termios.h: Add include of machine/termios.h to get __MAX_BAUD rate. * libc/sys/linux/machine/i386/include/termios.h: New file. * libc/include/machine/termios.h: Ditto. * libc/sys/linux/cfspeed.c: Ditto. * libc/sys/linux/tcsendbrk.c: Ditto.
* 2002-05-28 Marek Michalkiewicz <marekm@amelek.gda.pl>Marek Michalkiewicz2002-05-282-0/+8
| | | | | * configure.in (noconfigdirs): Don't compile libiberty, libstdcxx and libgcj for AVR.
* Add DLX targetNick Clifton2002-05-282-2/+6
|
* * ps.cc (usage): Fix typo.Corinna Vinschen2002-05-282-1/+6
|
* * security.cc (set_security_attribute): Call getegid32() instead ofCorinna Vinschen2002-05-283-1/+8
| | | | | getegid(). * include/cygwin/grp.h: Declare getegid32().
* Change internal gid datatype from __gid16_t to __gid32_tCorinna Vinschen2002-05-2815-74/+235
| | | | | | | | | | | | | | | | | | | | | | | throughout. * cygwin.din: Export new symbols chown32, fchown32, getegid32, getgid32, getgrgid32, getgrnam32, getgroups32, initgroups32, lchown32, setgid32, setegid32, getgrent32. * grp.cc (grp32togrp16): New static function. (getgrgid32): New function. (getgrnam32): Ditto. (getgrent32): Ditto. (getgroups32): Change name of internal function from getgroups. (getgroups32): New function. (initgroups32): Ditto. * syscalls.cc (chown32): Ditto. (lchown32): Ditto. (fchown32): Ditto. (setegid32): Ditto. (setgid32): Ditto. * uinfo.cc (getgid32): Ditto. (getegid32): Ditto. * include/cygwin/grp.h: Remove declaration of getgrgid() and getgrnam(). Declare getgrgid32() and getgrnam32() instead. Declare getgid32().
* Add DLX targetNick Clifton2002-05-287-1/+354
|
* * include/w32api.h: Increment version to 1.5Earnie Boyd2002-05-283-4/+9
| | | | * Makefile.in: Ditto.
* Merging MinGW changesEarnie Boyd2002-05-282-1/+6
|
* Merging MinGW changesEarnie Boyd2002-05-2846-1877/+1877
|
* * ps.cc (prog_name): New global variable.Christopher Faylor2002-05-282-11/+86
| | | | | | | | (longopts): Ditto. (opts): Ditto. (usage): New function. (print_version): New function. (main): Accomodate longopts and new --help, --version options.
* * autoload.cc (noload): Properly mask low order word for determining number ofChristopher Faylor2002-05-282-1/+6
| | | | bytes to pop.
* * fhandler_disk_file.cc (fhandler_disk_file::fstat): Minor logic cleanup.Christopher Faylor2002-05-282-3/+6
|
* * autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro.Christopher Faylor2002-05-2832-922/+1075
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (LoadFuncEx2): Adapted from LoadFuncEx. Provides control of return value for nonexistent function. (NtQueryObject): Declare. (IsDebuggerPresent): Declare via LoadFuncEx2 and always return true if not available. * debug.h (being_debugged): Just rely on IsDebuggerPresent return value. * dtable.cc (handle_to_fn): New function. (dtable::init_std_file_from_handle): Attempt to derive std handle's name via handle_to_fn. (dtable::build_fhandler_from_name): Fill in what we can in path_conv structure when given a handle and path doesn't exist. * fhandler.cc (fhandler_base::open): Don't set the file pointer here. Use pc->exists () to determine if file exists rather than calling GetFileAttributes again. * fhandler.h (fhandler_base::exec_state_isknown): New method. (fhandler_base::fstat_helper): Add extra arguments to declaration. (fhandler_base::fstat_by_handle): Declare new method. (fhandler_base::fstat_by_name): Declare new method. * fhandler_disk_file (num_entries): Make __stdcall. (fhandler_base::fstat_by_handle): Define new method. (fhandler_base::fstat_by_name): Define new method. (fhandler_base:fstat): Call fstat_by_{handle,name} as appropriate. (fhandler_disk_file::fstat_helper): Accept extra arguments for filling out stat structure. Move handle or name specific stuff to new methods above. (fhandler_disk_file::open): Use real_path->exists rather than calling GetFileAttributes again. * ntdll.h (FILE_NAME_INFORMATION): Define new structure. (OBJECT_INFORMATION_CLASS): Partially define new enum. (OBJECT_NAME_INFORMATION): Define new structure. (NtQueryInformationFile): New declaration. (NtQueryObject): New declaration. * path.cc (path_conv::fillin): Define new method. * path.h (path_conv::fillin): Declare new method. (path_conv::drive_thpe): Rename from 'get_drive_type'. (path_conv::volser): Declare new method. (path_conv::volname): Declare new method. (path_conv::root_dir): Declare new method. * syscalls.cc (fstat64): Send real path_conv to fstat as second argument.
* * security.cc (lsa2str): New function.Corinna Vinschen2002-05-272-2/+15
| | | | (get_priv_list): Call lsa2str instead of sys_wcstombs.
* * syscalls.cc (seteuid): Do not take allow_ntsec into account.Corinna Vinschen2002-05-272-242/+225
| | | | | | | | Attempt to use an existing or new token even when the uid matches orig_uid, but the gid is not in the process token. Major reorganization after several incremental changes. (setegid): Do not take allow_ntsec into account. Minor reorganization after several incremental changes.
* 2002-05-27 Ren� M�ller Fonseca <fonseca@users.sourceforge.net>Danny Smith2002-05-272-7/+16
| | | | | | | * include/winreg.h: (RegConnectRegistry[AW]): Replace LP[W]STR with LPC[W]STR. (REG_QWORD, REG_QWORD_LITTLE_ENDIAN): Add defines. Clean up whitespace.
* 2002-05-27 Rick Rankin <rick_rankin@yahoo.com>Danny Smith2002-05-272-0/+7
| | | | * include/winnls.h: Add #define for LOCALE_RETURN_NUMBER.
* * debug.h (being_debugged): New macro.Christopher Faylor2002-05-275-2/+16
| | | | | | | * dtable.cc (dtable::extend): Use new macro. * exceptions.cc (try_to_debug): Ditto. * strace.cc (strace::hello): Only output debugging info when we think we're being debugged.
* * winsup.h: Remove duplicate declarations of malloc_lock and malloc_unlock.Christopher Faylor2002-05-272-3/+5
|
* update commentChristopher Faylor2002-05-271-1/+1
|
* * strace.cc (attach_process): Don't tell process to start stracing here.Christopher Faylor2002-05-272-3/+16
| | | | | | (proc_child): Do it here, instead, after first debug event. This should work around inexplicable races with DebugActiveProcess. (dostrace): Pass any pid argument to proc_child.
* * ia64.h: Use #include "" instead of <> for local header files.Alan Modra2002-05-253-4/+9
| | | | * sparc.h: Likewise.
* Remove unneeded sync.h, where appropriate, throughout. Remove unneeded heap.h,Christopher Faylor2002-05-2536-42/+7
| | | | | | where appropriate, throughout. Remove unneeded exceptions.h, where appropriate, throughout. Remove unneeded perprocess.h, where appropriate, throughout.
* 2002-05-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-249-27/+157
| | | | | | | | | | | * libc/include/string.h: Add strnlen and strerror_r prototypes. * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support. * libc/string/Makefile.in: Regenerated. * libc/string/strerror_r.c: New file. * libc/string/strnlen.c: New file. * libc/sys/linux/Makefile.am: Add rename.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/rename.c: New file to override default rename.
* Fix typos.Christopher Faylor2002-05-241-16/+16
|
* * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.Thomas Fitzsimmons2002-05-2412-23/+351
| | | | | | | | | * libc/sys/linux/sys/time.h: Add conversion macros. * libc/sys/linux/sys/types.h: Add FD_ macros. Include <bits/types.h>. * libc/sys/linux/ids.c: Add setresuid and syslog syscalls. * libc/sys/linux/gethostname.c: New file. * libc/sys/linux/seteuid.c: New file. * libc/sys/linux/sysctl.c: New file.
* * security.cc (create_token): Call __sec_user() instead ofCorinna Vinschen2002-05-242-4/+11
| | | | | sec_user() to remove dependence on allow_ntsec. Verify that the returned sd is non-null.
* * setfacl.c (usage): Standardize usage output. Change return type toCorinna Vinschen2002-05-242-122/+203
| | | | | | | static void. (print_version): New function. (longopts): Added longopts for all options. (main): Accommodate changes in usage function and new version option.
* 2002-05-25 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-05-242-1/+10
| | | | * gmon.c (fake_sbrk): Correctly return -1 on failed malloc's.