]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
18 years ago* times.cc (clock_getres): Use correct conversion from milliseconds to
Christopher Faylor [Sat, 11 Feb 2006 00:06:50 +0000 (00:06 +0000)]
* times.cc (clock_getres): Use correct conversion from milliseconds to
seconds/nanoseconds.
(clock_setres): Use correct conversion to nanoseconds.

18 years ago* external.cc (sync_winenv): Rename from "setup_winenv". Use same mechanism as
Christopher Faylor [Fri, 10 Feb 2006 17:22:34 +0000 (17:22 +0000)]
* external.cc (sync_winenv): Rename from "setup_winenv".  Use same mechanism as
spawn to determine environment variables which should be converted back to
windows form.
(cygwin_internal): Reflect setup_winenv -> sync_winenv name change.
* include/sys/cygwin.h: Ditto.

18 years agobfd/
H.J. Lu [Fri, 10 Feb 2006 15:04:19 +0000 (15:04 +0000)]
bfd/

2006-02-10  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/2258
* elf.c (copy_private_bfd_data): Renamed to ...
(rewrite_elf_program_header): This.
(copy_elf_program_header): New function.
(copy_private_bfd_data): Likewise.

binutils/

2006-02-10  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/2258
* readelf.c (process_program_headers): Use
ELF_IS_SECTION_IN_SEGMENT_MEMORY.

include/elf/

2006-02-10  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/2258
* internal.h (ELF_IS_SECTION_IN_SEGMENT_FILE): New.
(ELF_IS_SECTION_IN_SEGMENT_MEMORY): Likewise.

18 years ago * fhandler_disk_file.cc (fhandler_disk_file::opendir): Only set
Corinna Vinschen [Thu, 9 Feb 2006 14:42:48 +0000 (14:42 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Only set
the dirent_get_d_ino flag on filesystems having useful File IDs.
Add comment explaining why.

18 years ago * cygcheck.cc (find_on_path): Update copyright text.
Corinna Vinschen [Wed, 8 Feb 2006 14:19:40 +0000 (14:19 +0000)]
* cygcheck.cc (find_on_path): Update copyright text.

18 years ago * cygcheck.cc (find_on_path): Create copy of rv on successful access
Corinna Vinschen [Wed, 8 Feb 2006 14:13:28 +0000 (14:13 +0000)]
* cygcheck.cc (find_on_path): Create copy of rv on successful access
check, since rv can be reused in subsequent calls.

18 years ago * bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
Nathan Sidwell [Tue, 7 Feb 2006 19:01:10 +0000 (19:01 +0000)]
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.

* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here.  Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.

* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.

* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.

* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.

* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.

* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.

18 years ago2006-02-07 Paul Brook <paul@codesourcery.com>
Jeff Johnston [Tue, 7 Feb 2006 18:46:23 +0000 (18:46 +0000)]
2006-02-07  Paul Brook  <paul@codesourcery.com>

        * arm/crt0.S: Add Thumb-2 startup code.
        * arm/redboot-crt0.S: Ditto.
        * arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
        * arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
        * arm/trap.S: Disable for Thumb-2.

18 years ago2006-02-07 Paul Brook <paul@codesourcery.com>
Jeff Johnston [Tue, 7 Feb 2006 18:44:54 +0000 (18:44 +0000)]
2006-02-07  Paul Brook  <paul@codesourcery.com>

        * libc/machine/arm/setjmp.S: Add Thumb-2 support.
        * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
        * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
        * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
        * libc/sys/arm/trap.S: Disable for Thumb-2.

18 years ago * dtable.cc (handle_to_fn): Accomodate new argument order in call to
Corinna Vinschen [Tue, 7 Feb 2006 15:49:08 +0000 (15:49 +0000)]
* dtable.cc (handle_to_fn): Accomodate new argument order in call to
sys_wcstombs.
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Call sys_wcstombs
instead of just wcstombs to accomodate OEM codepages.
* miscfuncs.cc (sys_wcstombs): Split len argument in source and target
length.  Always 0-terminate result in target string.
* security.cc (lsa2wchar): Remove unused function.
(lsa2str): Ditto.
(get_lsa_srv_inf): Ditto.
(get_logon_server): Accomodate new argument order in call to
sys_wcstombs.
(get_user_groups): Ditto.
(get_user_local_groups): Ditto.
(get_priv_list): Call sys_wcstombs directly instead of lsa2str.
* uinfo.cc (cygheap_user::ontherange): Accomodate new argument order
in call to sys_wcstombs.
* winsup.h (sys_wcstombs): Change prototype to match new argument order.

18 years ago * init.cc (respawn_wow64_process): Exit with the exit code returned
Corinna Vinschen [Tue, 7 Feb 2006 09:57:43 +0000 (09:57 +0000)]
* init.cc (respawn_wow64_process): Exit with the exit code returned
by the respawned process.

18 years ago2006-02-04 Ron Lee <ronl@users.sourceforge.net>
Danny Smith [Mon, 6 Feb 2006 22:05:09 +0000 (22:05 +0000)]
2006-02-04  Ron Lee  <ronl@users.sourceforge.net>

* include/winnls.h: Remove stray end ';' from preprocessor defines.

18 years ago * elf/ia64.h (SHF_IA_64_HP_TLS): New.
Steve Ellcey [Mon, 6 Feb 2006 21:52:48 +0000 (21:52 +0000)]
* elf/ia64.h (SHF_IA_64_HP_TLS): New.

18 years agoFixed ChangeLog entry
Chris Sutcliffe [Mon, 6 Feb 2006 20:29:17 +0000 (20:29 +0000)]
Fixed ChangeLog entry

18 years ago2006-02-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Mon, 6 Feb 2006 20:27:01 +0000 (20:27 +0000)]
2006-02-06  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

* include/shlobj.h (PRF_VERIFYEXISTS, PRF_TRYPROGRAMEXTENSIONS,
PRF_FIRSTDIRDEF, PRF_DONTFINDLNK): Ditto.
* lib/shell32.def (PathResolve): Define.

18 years ago* include/shlobj.h (PathResolve): Fix typo.
Christopher Faylor [Mon, 6 Feb 2006 19:59:43 +0000 (19:59 +0000)]
* include/shlobj.h (PathResolve): Fix typo.

18 years agoAlways zero all elements of siginfo_t throughout.
Christopher Faylor [Mon, 6 Feb 2006 18:24:11 +0000 (18:24 +0000)]
Always zero all elements of siginfo_t throughout.
* cygtls.h (_cygtls::thread_context): Declare new field.
(_cygtls::thread_id): Ditto.
(_cygtls::signal_exit): Move into this class.
(_cygtls::copy_context): Declare new function.
(_cygtls::signal_debugger): Ditto.
* cygtls.cc (_cygtls::init_thread): Fill out thread id field.
* exceptions.cc (exception): Change message when exception info is unknown.
Copy context to thread local storage.
(_cygtls::handle_exceptions): Avoid double test for fault_guarded.  Reflect
move of signal_exit to _cygtls class.
(sigpacket::process): Copy context to thread local storage.
(_cygtls::signal_exit): Move to _cygtls class.  Call signal_debugger to notify
debugger of exiting signal (WIP).  Call stackdump here (WIP).
(_cygtls::copy_context): Define new function.
(_cygtls::signal_debugger): Ditto.
* tlsoffsets.h: Regenerate.
* include/cygwin.h (_fpstate): New internal structure.
(ucontext): Declare new structure (WIP).
(__COPY_CONTEXT_SIZE): New define.
* exceptions.cc (_cygtls::interrupt_setup): Clear "threadkill" field when there
is no sigwaiting thread.
(setup_handler): Move event handling into interrupt_setup.

18 years ago * fhandler_socket.cc (fhandler_socket::connect): Fix formatting.
Corinna Vinschen [Mon, 6 Feb 2006 17:50:23 +0000 (17:50 +0000)]
* fhandler_socket.cc (fhandler_socket::connect): Fix formatting.
(fhandler_socket::wait): Handle SA_RESTART when signal arrives.

18 years ago2006-02-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Mon, 6 Feb 2006 16:29:15 +0000 (16:29 +0000)]
2006-02-06  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

* include/shlobj.h (PathResolve): Define.

18 years ago * include/cygwin/socket.h (CMSG_FIRSTHDR): Avoid compiler warning.
Corinna Vinschen [Mon, 6 Feb 2006 10:01:37 +0000 (10:01 +0000)]
* include/cygwin/socket.h (CMSG_FIRSTHDR): Avoid compiler warning.

18 years ago * include/features.h: Add comment to explain what's going to happen
Corinna Vinschen [Sun, 5 Feb 2006 20:30:24 +0000 (20:30 +0000)]
* include/features.h: Add comment to explain what's going to happen
here at one point.
* include/sys/stdio.h: Guard getline and getdelim prototypes with
_GNU_SOURCE to avoid collision with old-style declarations.

18 years ago * cygwinenv.sgml: Explain transparent_exe option.
Corinna Vinschen [Sun, 5 Feb 2006 18:19:16 +0000 (18:19 +0000)]
* cygwinenv.sgml: Explain transparent_exe option.

18 years ago * environ.cc (struct parse_thing): Add transparent_exe option.
Corinna Vinschen [Sun, 5 Feb 2006 18:18:02 +0000 (18:18 +0000)]
* environ.cc (struct parse_thing): Add transparent_exe option.
* fhandler_disk_file.cc (fhandler_disk_file::link): Accomodate
transparent_exe option.  Add .exe suffix for links to executable files,
if transparent_exe is set.
* fhandler_process.cc (fhandler_process::fill_filebuf): Remove .exe
suffix if transparent_exe option is set.
* path.cc (symlink_worker): Accomodate transparent_exe option.
(realpath): Don't tack on .exe suffix if transparent_exe is set.
* syscalls.cc (transparent_exe): New global variable.
(unlink): Accomodate transparent_exe option.
(open): Ditto.
(link): Ditto.
(rename): Ditto. Maybe add .exe suffix when renaming executable files.
(pathconf): Accomodate transparent_exe option.
* winsup.h: Declare transparent_exe.

18 years ago * fhandler_disk_file.cc (fhandler_disk_file::readdir_9x): Remove
Corinna Vinschen [Sun, 5 Feb 2006 18:11:03 +0000 (18:11 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir_9x): Remove
useless code.

18 years agoCleanup of pseudo-ops for constants and new def24,def32 pseudo-ops on z80
Arnold Metselaar [Sun, 5 Feb 2006 11:57:34 +0000 (11:57 +0000)]
Cleanup of pseudo-ops for constants and new def24,def32 pseudo-ops on z80

18 years ago * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Remove label
Corinna Vinschen [Sun, 5 Feb 2006 11:17:03 +0000 (11:17 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Remove label
"out".  Move test for NULL __handle ...
(fhandler_disk_file::rewinddir_9x): ... here.

18 years ago ... and the ChangeLog, never forget the ChangeLog...
Corinna Vinschen [Sun, 5 Feb 2006 10:55:59 +0000 (10:55 +0000)]
... and the ChangeLog, never forget the ChangeLog...

18 years ago * dir.cc (rewinddir): Keep dirent_get_d_ino and dirent_set_d_ino flags.
Corinna Vinschen [Sun, 5 Feb 2006 10:55:23 +0000 (10:55 +0000)]
* dir.cc (rewinddir): Keep dirent_get_d_ino and dirent_set_d_ino flags.

18 years ago* fhandler_disk_file.cc (fhandler_disk_file::readdir): Don't close dir handle
Christopher Faylor [Sun, 5 Feb 2006 07:03:24 +0000 (07:03 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Don't close dir handle
when we hit EOF since rewwindir may reactivate it.
(fhandler_disk_file::readdir_9x): Eliminate superfluous temporary variable.
(fhandler_disk_file::closedir): Return EBADF when trying to close unopened DIR.
Reorganize slightly.  Return actual derived error value rather than always
returning 0.

18 years ago2006-02-04 Ron Lee <ronl@users.sourceforge.net>
Danny Smith [Sat, 4 Feb 2006 19:35:46 +0000 (19:35 +0000)]
2006-02-04  Ron Lee  <ronl@users.sourceforge.net>

* include/winnls.h: Remove stray end ';' from preprocessor defines.

18 years ago* dir.cc (rmdir): Reorganize check for trailing dot to return correct error
Christopher Faylor [Sat, 4 Feb 2006 19:02:42 +0000 (19:02 +0000)]
* dir.cc (rmdir): Reorganize check for trailing dot to return correct error
when directory does not exist.

18 years ago* dir.cc (mkdir): Reorganize check for trailing dot to return correct error
Christopher Faylor [Sat, 4 Feb 2006 04:31:34 +0000 (04:31 +0000)]
* dir.cc (mkdir): Reorganize check for trailing dot to return correct error
when directory exists.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Remove special test for
path ending in '.'.

18 years ago * path.cc (suffix_scan::lnk_match): Return true beginning with
Corinna Vinschen [Fri, 3 Feb 2006 21:33:09 +0000 (21:33 +0000)]
* path.cc (suffix_scan::lnk_match): Return true beginning with
SCAN_APPENDLNK.
(suffix_scan::next): Rearrange code to make .lnk append order slightly
more deterministic.
* spawn.cc (exe_suffixes): Try no suffix before .exe suffix to align
evaluation with stat_suffixes.
(dll_suffixes): Ditto.

18 years ago* cygwin/version.h: Mention CW_SETUP_WINENV in comment for API minor 153.
Christopher Faylor [Thu, 2 Feb 2006 23:16:26 +0000 (23:16 +0000)]
* cygwin/version.h: Mention CW_SETUP_WINENV in comment for API minor 153.

18 years ago * cygwin.din (updwtmpx): Export.
Corinna Vinschen [Thu, 2 Feb 2006 22:46:37 +0000 (22:46 +0000)]
* cygwin.din (updwtmpx): Export.
* syscalls.cc (updwtmpx): New function.
* include/utmpx.h (updwtmpx): Declare.
* include/cygwin/version.h: Bump API minor number to 153.

18 years ago* external.cc (setup_winenv): New function.
Christopher Faylor [Thu, 2 Feb 2006 19:55:45 +0000 (19:55 +0000)]
* external.cc (setup_winenv): New function.
(cygwin_internal): Implement CW_SETUP_WINENV.
* sys/cygwin.h (cygwin_getinfo_types): Define CW_SETUP_WINENV.

18 years ago * security.cc (is_group_member): Fix comment.
Corinna Vinschen [Thu, 2 Feb 2006 11:35:52 +0000 (11:35 +0000)]
* security.cc (is_group_member): Fix comment.

18 years ago * security.cc (is_group_member): Use local group info type 1. Test
Corinna Vinschen [Thu, 2 Feb 2006 11:22:10 +0000 (11:22 +0000)]
* security.cc (is_group_member): Use local group info type 1.  Test
group for being a global group or a well-known SID before adding it
to the group list.  Add comment.

18 years agoMention new cygcheck -p option.
Joshua Daniel Franklin [Thu, 2 Feb 2006 04:45:25 +0000 (04:45 +0000)]
Mention new cygcheck -p option.

18 years ago * lib/iphlpapi.def: (NotifyAddrChange@8): Define.
Danny Smith [Thu, 2 Feb 2006 04:26:18 +0000 (04:26 +0000)]
* lib/iphlpapi.def: (NotifyAddrChange@8): Define.
Reported by: Daniel Atallah  <datallah at users dot sf dot net>
(NotifyRouteChange@8): Define.

18 years ago * autoload.cc (GetTcpTable): Define.
Corinna Vinschen [Wed, 1 Feb 2006 11:10:53 +0000 (11:10 +0000)]
* autoload.cc  (GetTcpTable): Define.
* fhandler_socket.cc (address_in_use): New function to check if
sockaddr_in address is already in use.
(fhandler_socket::bind): Check if address is alreay in use in case of
SO_REUSEADDR, to circumvent WinSock non-standard behaviour.

18 years ago * spawn.cc (dll_suffixes): Add .exe and "no suffix" to the list.
Corinna Vinschen [Wed, 1 Feb 2006 08:44:15 +0000 (08:44 +0000)]
* spawn.cc (dll_suffixes): Add .exe and "no suffix" to the list.

18 years ago * dlfcn.cc (check_path_access): Call find_exec with FE_DLL option.
Corinna Vinschen [Tue, 31 Jan 2006 21:49:39 +0000 (21:49 +0000)]
* dlfcn.cc (check_path_access): Call find_exec with FE_DLL option.
* path.h (enum fe_types): Add FE_DLL value.
* spawn.cc (std_suffixes): Remove.
(exe_suffixes): New suffix_info for executing files.
(dll_suffixes): New suffix_info for searching shared libraries.
(perhaps_suffix): Add opt argument.  Use dll_suffixes if FE_DLL
option is given, exe_suffixes otherwise.
(find_exec): Propagate opt argument to perhaps_suffix.  Drop suffix
check when testing execute permission.
(spawn_guts): Call perhaps_suffix with FE_NADA opt argument.

18 years ago* spawn.cc (av::fixup): Remove unused argument.
Christopher Faylor [Tue, 31 Jan 2006 21:23:57 +0000 (21:23 +0000)]
* spawn.cc (av::fixup): Remove unused argument.
(spawn_guts): Remove capitalization in debugging.

18 years ago * spawn.cc (find_exec): Only return files with execute permission set
Corinna Vinschen [Tue, 31 Jan 2006 21:09:43 +0000 (21:09 +0000)]
* spawn.cc (find_exec): Only return files with execute permission set
if ntsec is on.  Don't check execute permission of Windows batch files.
(av::fixup): Handle empty files gracefully.  Drop execute permission
test here.
* path.cc (suffix_scan::next): Don't skip any suffix on first run.

18 years ago2006-01-31 Leif Ekblad <leif@rdos.net>
Jeff Johnston [Tue, 31 Jan 2006 19:33:56 +0000 (19:33 +0000)]
2006-01-31  Leif Ekblad  <leif@rdos.net>

        * configure.host: RDOS support added
        * libc/include/sys/config.h: Ditto.
        * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
        * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
        * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
        * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
        * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
        * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
        * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
        * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
        * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
        * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
        * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
        * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
        * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
        * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
        * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
        * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
        * libc/sys/rdos/write.c: Ditto.

18 years ago * path.cc (cwdstuff::set): Don't set win32 error, only POSIX errno.
Corinna Vinschen [Tue, 31 Jan 2006 16:10:29 +0000 (16:10 +0000)]
* path.cc (cwdstuff::set): Don't set win32 error, only POSIX errno.

18 years ago * path.cc (cwdstuff::set): When SetCurrentDirectory returns
Corinna Vinschen [Tue, 31 Jan 2006 14:43:37 +0000 (14:43 +0000)]
* path.cc (cwdstuff::set): When SetCurrentDirectory returns
ERROR_INVALID_FUNCTION, bend it over to ERROR_FILE_NOT_FOUND.  Add
comment to explain why.

18 years ago2006-01-31 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 31 Jan 2006 14:11:13 +0000 (14:11 +0000)]
2006-01-31  Paul Brook  <paul@codesourcery.com>
Richard Earnshaw <rearnsha@arm.com>

* gas/config/tc-arm.c: Use arm_feature_set.
(arm_ext_*, arm_arch_full, arm_arch_t2, arm_arch_none,
arm_cext_iwmmxt, arm_cext_xscale, arm_cext_maverick, fpu_fpa_ext_v1,
fpu_fpa_ext_v2, fpu_vfp_ext_v1xd, fpu_vfp_ext_v1, fpu_vfp_ext_v2):
New variables.
(insns): Use them.
(md_atof, opcode_select, opcode_select, md_assemble, md_assemble,
md_begin, arm_parse_extension, arm_parse_cpu, arm_parse_arch,
arm_parse_fpu, arm_parse_float_abi, aeabi_set_public_attributes,
s_arm_cpu, s_arm_arch, s_arm_fpu): Use macros for accessing CPU
feature flags.
(arm_legacy_option_table, arm_option_cpu_value_table): New types.
(arm_opts): Move old cpu/arch options from here...
(arm_legacy_opts): ... to here.
(md_parse_option): Search arm_legacy_opts.
(arm_cpus, arm_archs, arm_extensions, arm_fpus)
(arm_float_abis, arm_eabis): Make const.

* include/opcode/arm.h: Use ARM_CPU_FEATURE.
(ARM_AEXT_*, FPU_ENDIAN_PURE, FPU_VFP_HARD): New.
(arm_feature_set): Change to a structure.
(ARM_CPU_HAS_FEATURE, ARM_MERGE_FEATURE_SETS, ARM_CLEAR_FEATURE,
ARM_FEATURE): New macros.

18 years ago * dir.cc (readdir_worker): Add comment about writing old 32 bit d_ino.
Corinna Vinschen [Tue, 31 Jan 2006 08:56:22 +0000 (08:56 +0000)]
* dir.cc (readdir_worker): Add comment about writing old 32 bit d_ino.
* include/cygwin/version.h: Bump API minor number to 152.
(CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO): Remove.

18 years ago * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Simplify
Corinna Vinschen [Mon, 30 Jan 2006 13:44:16 +0000 (13:44 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Simplify
conditional.

18 years ago * fhandler_disk_file.cc (d_cachepos): Rename from d_pos to distinct
Corinna Vinschen [Mon, 30 Jan 2006 10:30:58 +0000 (10:30 +0000)]
* fhandler_disk_file.cc (d_cachepos): Rename from d_pos to distinct
clearly from __d_position.  Change throughout.
(fhandler_disk_file::rewinddir): Reset readdir cache on NT.

18 years ago* CYGWIN_LICENSE: Restrict to v2.
Christopher Faylor [Sun, 29 Jan 2006 18:06:24 +0000 (18:06 +0000)]
* CYGWIN_LICENSE: Restrict to v2.
* COPYING: Add.

18 years agov2 only
Christopher Faylor [Sun, 29 Jan 2006 18:05:00 +0000 (18:05 +0000)]
v2 only

18 years ago * fhandler_disk_file.cc (readdir_get_ino): Don't follow symlinks.
Corinna Vinschen [Sun, 29 Jan 2006 17:29:35 +0000 (17:29 +0000)]
* fhandler_disk_file.cc (readdir_get_ino): Don't follow symlinks.

18 years ago * fhandler.h (class fhandler_socket): Add saw_reuseaddr status flag.
Corinna Vinschen [Sun, 29 Jan 2006 12:23:44 +0000 (12:23 +0000)]
* fhandler.h (class fhandler_socket): Add saw_reuseaddr status flag.
* fhandler_socket.cc (fhandler_socket::bind): Set socket to
SO_EXCLUSIVEADDRUSE if application didn't explicitely set SO_REUSEADDR
socket option, on systems supporting SO_EXCLUSIVEADDRUSE.
* net.cc (cygwin_setsockopt): Set fhandler's saw_reuseaddr status flag
if SO_REUSEADDR socket option has been successsfully set.
* wincap.h (wincaps::has_exclusiveaddruse): New element.
* wincap.cc: Implement above element throughout.

18 years ago * include/winsock2.h (WINSOCK_API_LINKAGE): Define. Add to
Danny Smith [Sun, 29 Jan 2006 00:52:35 +0000 (00:52 +0000)]
* include/winsock2.h (WINSOCK_API_LINKAGE): Define. Add to
prototypes.

18 years ago * include/winnt.h (FORCEINLINE): Define.
Danny Smith [Sun, 29 Jan 2006 00:33:21 +0000 (00:33 +0000)]
* include/winnt.h (FORCEINLINE): Define.

18 years ago * fhandler_disk_file.cc (fhandler_disk_file::mkdir): In case or error,
Corinna Vinschen [Sat, 28 Jan 2006 13:59:39 +0000 (13:59 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): In case or error,
check for existance explicitely and set errno to EEXIST.

18 years ago * fhandler_disk_file.cc (DIR_NUM_ENTRIES): New define determining
Corinna Vinschen [Sat, 28 Jan 2006 13:41:22 +0000 (13:41 +0000)]
* fhandler_disk_file.cc (DIR_NUM_ENTRIES): New define determining
minimum number of dir entries which fit into the readdir cache.
(DIR_BUF_SIZE): Define globally as size of readdir cache.
(struct __DIR_cache): New structure used for readdir caching on NT.
(d_dirname): Accessor for struct __DIR_cache, use throughout.
(d_pos): Ditto.
(d_cache): Ditto.
(fhandler_disk_file::opendir): Allocate __d_dirname to contain readdir
cache on NT.
(fhandler_disk_file::readdir): Use buf as pointer into readdir cache.
Implement readdir caching.

18 years ago * include/sys/dirent.h (struct dirent): Revert misguided attempt to
Corinna Vinschen [Sat, 28 Jan 2006 10:34:11 +0000 (10:34 +0000)]
* include/sys/dirent.h (struct dirent): Revert misguided attempt to
rename __d_unused1 to __d_fd.

18 years agoMove cocom to the build requirements.
Joshua Daniel Franklin [Sat, 28 Jan 2006 02:12:32 +0000 (02:12 +0000)]
Move cocom to the build requirements.

18 years ago * autoload.cc (NtQueryDirectoryFile): Define.
Corinna Vinschen [Fri, 27 Jan 2006 21:50:42 +0000 (21:50 +0000)]
* autoload.cc (NtQueryDirectoryFile): Define.
* dir.cc (__opendir_with_d_ino): Just call opendir.
(opendir): Remove CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO handling.
(readdir_worker): Only try generating d_ino if it's 0.
Utilize namehash of directories fhandler.  Call readdir_get_ino to
generate d_ino for "..".
(seekdir64): Keep dirent_set_d_ino flag.
* fhandler.h (enum dirent_states): Add dirent_get_d_ino.
(class fhandler_disk_file): Declare new private methods readdir_helper
and readdir_9x.
* fhandler_disk_file.cc (path_conv::hasgood_inode): New method to
evaluate if a filesystem has reliable inode numbers.
(fhandler_base::fstat_by_handle): Accomodate structure member name
change from IndexNumber to FileId.
(fhandler_base::fstat_helper): Call hasgood_inode here.
(fhandler_disk_file::opendir): Call fhaccess only for real files.
Don't append '*' to __d_dirname here, move to readdir_9x.  On NT,
open directory handle here.  Set dirent_get_d_ino and dirent_set_d_ino
flags according to wincap and filesystem.
(fhandler_disk_file::readdir_helper): New method to implement readdir
postprocessing only once.
(readdir_get_ino_by_handle): New static function.
(readdir_get_ino): New function to centralize inode number evaluation
in case inode number hasn't been returned by NtQueryDirectoryFile.
(fhandler_disk_file::readdir): Move old functionality to readdir_9x.
Call readdir_9x when on 9x/Me.  Implement NT specific readdir here.
(fhandler_disk_file::readdir_9x): Move 9x specific readdir here.
(fhandler_disk_file::seekdir): Accomodate new NT readdir method.
(fhandler_disk_file::closedir): Ditto.
(fhandler_cygdrive::fstat): Set d_ino to namehash. Add comment.
(fhandler_cygdrive::opendir): Call get_namehash to prepare later
correct evaluation of d_ino.
(fhandler_cygdrive::readdir): Replace recursion with loop. Evaluate
drive's d_ino by calling readdir_get_ino.
* fhandler_proc.cc (fhandler_proc::readdir): Set dirent_saw_dot and
dirent_saw_dot_dot to avoid seeing . and .. entries twice.
* fhandler_process.cc (fhandler_process::readdir): Ditto.
* fhandler_registry.cc (fhandler_registry::readdir): Ditto.
* ntdll.h (STATUS_INVALID_PARAMETER): New define.
(STATUS_INVALID_LEVEL): New define.
(struct _FILE_INTERNAL_INFORMATION): Rename member IndexNumber to
FileId (as in Nebbitt).
* path.h (path_conv::hasgood_inode): Now implemented in
fhandler_disk_file.cc.
* wincap.h (wincaps::has_fileid_dirinfo): New element.
* wincap.cc: Implement above element throughout.
* winsup.h (readdir_get_ino): Add declaration.
* include/sys/dirent.h (struct dirent): Slightly rename structure
members to accomodate changes.
Remove __USE_EXPENSIVE_CYGWIN_D_INO handling and declaration of
__opendir_with_d_ino.

18 years ago* spawn.cc (spawn_guts): Fix potential handle leak when failing exec.
Christopher Faylor [Fri, 27 Jan 2006 06:08:05 +0000 (06:08 +0000)]
* spawn.cc (spawn_guts): Fix potential handle leak when failing exec.

18 years ago* exceptions.cc (inside_kernel): Fix to return true if we can't get the name of
Christopher Faylor [Fri, 27 Jan 2006 06:06:06 +0000 (06:06 +0000)]
* exceptions.cc (inside_kernel): Fix to return true if we can't get the name of
the DLL for the given memory block since we are not in kernel code.

18 years agoAdd top-level README
Joshua Daniel Franklin [Fri, 27 Jan 2006 05:37:13 +0000 (05:37 +0000)]
Add top-level README

18 years ago* faq-programming.xml (faq.programming.ipc): Add new FAQ about
Joshua Daniel Franklin [Fri, 27 Jan 2006 04:52:16 +0000 (04:52 +0000)]
* faq-programming.xml (faq.programming.ipc): Add new FAQ about
cygserver and its relation to the "Bad system call" error.
* faq-setup.xml (faq.setup.uninstall-all): Mention postgresql.
* overview2.sgml: Update security info on shared memory.

18 years ago2006-01-16 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Thu, 26 Jan 2006 18:56:02 +0000 (18:56 +0000)]
2006-01-16  Paolo Bonzini  <bonzini@gnu.org>

* configure.in: Set with_gnu_as, with_gnu_ld, with_newlib earlier.
Set md_exec_prefix.  Use ACX_CHECK_INSTALLED_TARGET_TOOL to find
the assembler, linker and binutils.
* configure: Regenerate.

config:
2006-01-16  Paolo Bonzini  <bonzini@gnu.org>

* acx.m4 (NCN_STRICT_CHECK_TARGET_TOOLS): Test $with_build_time_tools.
(ACX_PATH_SEP): New.
(ACX_TOOL_DIRS): Move here from the gcc directory.
(ACX_CHECK_INSTALLED_TARGET_TOOL): New.
(GCC_TARGET_TOOL): Do not use a host tool if we found a target tool
with a complete path in either $with_build_time_tools or $exec_prefix.

18 years ago * fhandler.cc (fhandler_base::open): Fix bug in argument order to
Corinna Vinschen [Thu, 26 Jan 2006 16:58:53 +0000 (16:58 +0000)]
* fhandler.cc (fhandler_base::open): Fix bug in argument order to
InitializeObjectAttributes call.

18 years ago* faq-programming.xml (faq.programming.building-cygwin): Add
Joshua Daniel Franklin [Thu, 26 Jan 2006 04:39:04 +0000 (04:39 +0000)]
* faq-programming.xml (faq.programming.building-cygwin): Add
list of packages required for building and exact check instructions.
* faq-setup.xml (faq.setup.uninstall-service): New instructions
on uninstalling a cygwin service.
(faq.setup.uninstall-all): Reference new service uninstall FAQ.

18 years ago* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix test for
Christopher Faylor [Thu, 26 Jan 2006 02:54:54 +0000 (02:54 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix test for
dirent_isroot to use the correct boolean operator.

18 years ago * include/winnt.h (DECLSPEC_SELECTANY): Define.
Danny Smith [Thu, 26 Jan 2006 01:55:39 +0000 (01:55 +0000)]
* include/winnt.h (DECLSPEC_SELECTANY): Define.

18 years ago2006-01-25 Filip Navara <xnavara@volny.cz>
Danny Smith [Thu, 26 Jan 2006 01:22:07 +0000 (01:22 +0000)]
2006-01-25  Filip Navara  <xnavara@volny.cz>

* include/winnt.h (DECLSPEC_ALIGN): Define.

18 years ago * faq-setup.xml (faq.setup.snapshots): Rename DLL using Windows tools.
Corinna Vinschen [Wed, 25 Jan 2006 10:57:19 +0000 (10:57 +0000)]
* faq-setup.xml (faq.setup.snapshots): Rename DLL using Windows tools.

18 years ago* ntdll.h: (temporarily?) Add more functions for querying directory.
Christopher Faylor [Wed, 25 Jan 2006 05:57:20 +0000 (05:57 +0000)]
* ntdll.h: (temporarily?) Add more functions for querying directory.

18 years ago* dir.cc (readdir_worker): Turn off expensive inode calculation.
Christopher Faylor [Tue, 24 Jan 2006 19:03:20 +0000 (19:03 +0000)]
* dir.cc (readdir_worker): Turn off expensive inode calculation.

18 years ago * fhandler_process.cc (fhandler_process::fill_filebuf): Disable
Corinna Vinschen [Tue, 24 Jan 2006 17:40:55 +0000 (17:40 +0000)]
* fhandler_process.cc (fhandler_process::fill_filebuf): Disable
stripping the .exe suffix from the link target in PROCESS_EXE and
PROCESS_EXENAME case.
* path.cc (realpath): Tack on .exe suffix if necessary.

18 years ago2006-01-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 24 Jan 2006 17:24:02 +0000 (17:24 +0000)]
2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>

        * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
        so as not to define PACKAGE and VERSION in newlib.h.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * newlib.hin: Ditto.

18 years ago * fhandler_disk_file.cc (fhandler_base::fstat_helper): Try harder
Corinna Vinschen [Tue, 24 Jan 2006 12:32:33 +0000 (12:32 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Try harder
to determine remote file systems with reliable inode numbers.  Add
longish comment.

18 years ago * include/commctrl.h: Correct spelling of 'compatibility' in
Danny Smith [Tue, 24 Jan 2006 02:19:28 +0000 (02:19 +0000)]
    * include/commctrl.h: Correct spelling of 'compatibility' in
comments.
* include/setupapi.h: Likewise.
* include/ws2tcpip.h: Likewise.

18 years ago2006-01-24 Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith [Tue, 24 Jan 2006 01:02:31 +0000 (01:02 +0000)]
2006-01-24  Danny Smith  <dannysmith@users.sourceforge.net>

        * include/ddk/winddk.h (KeGetCurrentKPCR): Support -masm=intel.

2006-01-24  Jiri Malak  <Jiri.Malak@iol.cz>

WATCOM compatibility changes.
* include/ddk/ntddk.h (DECL_IMPORT): Define using __declspec,
rather than __attribute__.
(DECL_EXPORT): Likewise.
* include/ddk/winddk.h (DDKAPI): Avoid using __attribute__.
(DDKFASTAPI): Likewise.
(DDKCDECLAPI): Likwise.
(KeGetCurrentKPCR): Provide __WATCOMC__ syntax for inline code.

18 years ago * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Reset
Corinna Vinschen [Mon, 23 Jan 2006 15:10:57 +0000 (15:10 +0000)]
* fhandler_socket.cc (fhandler_socket::fixup_after_fork): Reset
inheritance for duplicated socket.

18 years ago2006-01-23 Brandon Sneed <brandon@redf.net>
Danny Smith [Mon, 23 Jan 2006 08:10:32 +0000 (08:10 +0000)]
2006-01-23  Brandon Sneed  <brandon@redf.net>

* setupapi.def: Add all CM_* functions defined in ddk/cfgmgr32.h
to exports.

18 years ago.
Christopher Faylor [Sat, 21 Jan 2006 04:41:57 +0000 (04:41 +0000)]
.

18 years ago* include/cygwin/version.h: Bump API minor number to 151.
Christopher Faylor [Sat, 21 Jan 2006 02:24:17 +0000 (02:24 +0000)]
* include/cygwin/version.h: Bump API minor number to 151.
* dir.cc (__opendir_with_d_ino): New function.
(opendir): Set flag if we should be calculating inodes.
(readdir_worker): Calculate d_ino by calling stat if the user has asked for it.
(seekdir64): Maintain all persistent flag settings.
* fhandler.h (dirent_states): Add dirent_set_d_ino.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Reflect changes to
dirent structure.
* fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
* include/sys/dirent.h (struct dirent): Coalesce two similar structures.
Remove all threads of the apparently highly confusing references to inodes.
Add support for calculating a real inode if __USE_EXPENSIVE_CYGWIN_D_INO is
defined.

18 years ago2006-01-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 20 Jan 2006 22:42:46 +0000 (22:42 +0000)]
2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>

        * acconfig.h: New file to generate newlib.hin from.
        * newlib.hin: Regenerated.
        * stamp-h.in: Regenerated.
        * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
        called automatically.
        * Makefile.in: Regenerated.
        * acinclude.m4: Add proper comment for hack in previous change.
        * aclocal.m4 */aclocal.m4: Regenerated.
        * configure */configure: Regenerated.

18 years ago* include/sys/dirent.h: Add comments for people who are REALLY confused about
Christopher Faylor [Fri, 20 Jan 2006 16:04:40 +0000 (16:04 +0000)]
* include/sys/dirent.h: Add comments for people who are REALLY confused about
whether they should be using something called __invalid_d_ino or not.

18 years ago * fhandler_socket.cc (fhandler_socket::prepare): Fix debug output.
Corinna Vinschen [Fri, 20 Jan 2006 10:22:38 +0000 (10:22 +0000)]
* fhandler_socket.cc (fhandler_socket::prepare): Fix debug output.
(fhandler_socket::release): Add debug output for WSAEventSelect failure.
(fhandler_socket::ioctl): Always cancel WSAEventSelect before switching
to blocking mode.  Only set nonblocking flag if ioctlsocket call
succeeded.  Only print new socket state if ioctlsocket call succeeded.

18 years ago* cygcheck.cc (common_paths): Add "patch".
Christopher Faylor [Thu, 19 Jan 2006 21:16:38 +0000 (21:16 +0000)]
* cygcheck.cc (common_paths): Add "patch".

18 years ago* cygcheck.cc (init_paths): Record first_nonsys_path.
Christopher Faylor [Thu, 19 Jan 2006 20:17:11 +0000 (20:17 +0000)]
* cygcheck.cc (init_paths): Record first_nonsys_path.
(find_on_path): Start on first nonsys path when !search_sysdirs.

18 years agowhite space
Christopher Faylor [Thu, 19 Jan 2006 18:57:41 +0000 (18:57 +0000)]
white space

18 years ago* fhandler_disk_file.cc (fhandler_disk_file::opendir): Check posix path for
Christopher Faylor [Thu, 19 Jan 2006 18:55:07 +0000 (18:55 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Check posix path for
root rather than windows path.

18 years ago* dir.cc (readdir_worker): Fill in invalid fields with -1. Accommodate name
Christopher Faylor [Thu, 19 Jan 2006 05:34:39 +0000 (05:34 +0000)]
* dir.cc (readdir_worker): Fill in invalid fields with -1.  Accommodate name
change from __ino32 to __invalid_ino32.
* include/sys/dirent.h (__invalid_ino32): Rename from __ino32.  Don't define
unused d_type macros.

18 years agoRemove references to and files from old texinfo FAQ.
Joshua Daniel Franklin [Thu, 19 Jan 2006 02:44:17 +0000 (02:44 +0000)]
Remove references to and files from old texinfo FAQ.

18 years ago2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Thu, 19 Jan 2006 00:32:21 +0000 (00:32 +0000)]
2006-01-18  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * Makefile.in: Bump cygwin build number.

18 years agoinclude/elf/ChangeLog:
Alexandre Oliva [Wed, 18 Jan 2006 21:07:47 +0000 (21:07 +0000)]
include/elf/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* common.h (DT_TLSDESC_GOT, DT_TLSDESC_PLT): New.
* i386.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL, R_386_TLS_DESC):
New.
* x86-64.h (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
R_X86_64_TLSDESC): New.
bfd/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
* libbfd.h, bfd-in2.h: Rebuilt.
* elf32-i386.c (elf_howto_table): New relocations.
(R_386_tls): Adjust.
(elf_i386_reloc_type_lookup): Map new relocations.
(GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
(GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
(struct elf_i386_link_hash_entry): Add tlsdesc_got field.
(struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
(elf_i386_local_tlsdesc_gotent): New macro.
(struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
(elf_i386_compute_jump_table_size): New macro.
(link_hash_newfunc): Initialize tlsdesc_got.
(elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
(elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
R_386_TLS_DESC_CALL.
(elf_i386_check_relocs): Likewise.  Allocate space for
local_tlsdesc_gotent.
(elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
R_386_TLS_DESC_CALL.
(allocate_dynrelocs): Count function PLT relocations.  Reserve
space for TLS descriptors and relocations.
(elf_i386_size_dynamic_sections): Reserve space for TLS
descriptors and relocations.  Set up sgotplt_jump_table_size.
Don't zero reloc_count in srelplt.
(elf_i386_always_size_sections): New.  Set up _TLS_MODULE_BASE_.
(elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
R_386_TLS_DESC_CALL.
(elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
(elf_backend_always_size_sections): Define.
* elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
(R_X86_64_standard): Adjust.
(x86_64_reloc_map): Map new relocs.
(elf64_x86_64_rtype_to_howto): New, split out of...
(elf64_x86_64_info_to_howto): ... this function, and...
(elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
(GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
(GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
(struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
(struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
(elf64_x86_64_local_tlsdesc_gotent): New macro.
(struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
tlsdesc_got and sgotplt_jump_table_size fields.
(elf64_x86_64_compute_jump_table_size): New macro.
(link_hash_newfunc): Initialize tlsdesc_got.
(elf64_x86_64_link_hash_table_create): Initialize new fields.
(elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
R_X86_64_TLSDESC_CALL.
(elf64_x86_64_check_relocs): Likewise.  Allocate space for
local_tlsdesc_gotent.
(elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
R_X86_64_TLSDESC_CALL.
(allocate_dynrelocs): Count function PLT relocations.  Reserve
space for TLS descriptors and relocations.
(elf64_x86_64_size_dynamic_sections): Reserve space for TLS
descriptors and relocations.  Set up sgotplt_jump_table_size,
tlsdesc_plt and tlsdesc_got.  Make room for them.  Don't zero
reloc_count in srelplt.  Add dynamic entries for DT_TLSDESC_PLT
and DT_TLSDESC_GOT.
(elf64_x86_64_always_size_sections): New.  Set up
_TLS_MODULE_BASE_.
(elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
R_386_TLS_DESC_CALL.
(elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
(elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
DT_TLSDESC_GOT.  Set up TLS descriptor lazy resolver PLT entry.
(elf_backend_always_size_sections): Define.
binutils/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* readelf.c (get_dynamic_type): Handle DT_TLSDESC_GOT and
DT_TLSDESC_PLT.
gas/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* config/tc-i386.c (tc_i386_fix_adjustable): Handle
BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC_CALL,
BFD_RELOC_X86_64_GOTPC32_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL.
(optimize_disp): Emit fix up for BFD_RELOC_386_TLS_DESC_CALL and
BFD_RELOC_X86_64_TLSDESC_CALL immediately, and clear the
displacement bits.
(build_modrm_byte): Set up zero modrm for TLS desc calls.
(lex_got): Handle @tlsdesc and @tlscall.
(md_apply_fix, tc_gen_reloc): Handle the new relocations.
ld/testsuite/ChangeLog:
Introduce TLS descriptors for i386 and x86_64.
* ld-i386/i386.exp: Run on x86_64-*-linux* and amd64-*-linux*.
Add new tests.
* ld-i386/pcrel16.d: Add -melf_i386.
* ld-i386/pcrel8.d: Likewise.
* ld-i386/tlsbindesc.dd: New.
* ld-i386/tlsbindesc.rd: New.
* ld-i386/tlsbindesc.s: New.
* ld-i386/tlsbindesc.sd: New.
* ld-i386/tlsbindesc.td: New.
* ld-i386/tlsdesc.dd: New.
* ld-i386/tlsdesc.rd: New.
* ld-i386/tlsdesc.s: New.
* ld-i386/tlsdesc.sd: New.
* ld-i386/tlsdesc.td: New.
* ld-i386/tlsgdesc.dd: New.
* ld-i386/tlsgdesc.rd: New.
* ld-i386/tlsgdesc.s: New.
* ld-x86-64/x86-64.exp: Run new tests.
* ld-x86-64/tlsbindesc.dd: New.
* ld-x86-64/tlsbindesc.rd: New.
* ld-x86-64/tlsbindesc.s: New.
* ld-x86-64/tlsbindesc.sd: New.
* ld-x86-64/tlsbindesc.td: New.
* ld-x86-64/tlsdesc.dd: New.
* ld-x86-64/tlsdesc.pd: New.
* ld-x86-64/tlsdesc.rd: New.
* ld-x86-64/tlsdesc.s: New.
* ld-x86-64/tlsdesc.sd: New.
* ld-x86-64/tlsdesc.td: New.
* ld-x86-64/tlsgdesc.dd: New.
* ld-x86-64/tlsgdesc.rd: New.
* ld-x86-64/tlsgdesc.s: New.

18 years agomerge from gcc
DJ Delorie [Wed, 18 Jan 2006 21:05:51 +0000 (21:05 +0000)]
merge from gcc

18 years ago* heap.cc (heap_init): Remove Sleep.
Christopher Faylor [Wed, 18 Jan 2006 20:40:52 +0000 (20:40 +0000)]
* heap.cc (heap_init): Remove Sleep.

18 years ago * net.cc (rresvport): Remove extern declaration.
Corinna Vinschen [Wed, 18 Jan 2006 18:37:35 +0000 (18:37 +0000)]
* net.cc (rresvport): Remove extern declaration.

18 years ago * autoload.cc (rresvport): Remove.
Corinna Vinschen [Wed, 18 Jan 2006 18:24:33 +0000 (18:24 +0000)]
* autoload.cc (rresvport): Remove.
* net.cc (last_used_rrecvport): New global shared variable.
(cygwin_rresvport): Implement rresvport without using rresvport from
wsock32.

This page took 0.072511 seconds and 5 git commands to generate.