]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years ago * Makefile.in (DLL_OFILES): Add fhandler_dev.o.
Corinna Vinschen [Thu, 29 Mar 2012 18:02:54 +0000 (18:02 +0000)]
* Makefile.in (DLL_OFILES): Add fhandler_dev.o.
* devices.h (DEV_DEV_MAJOR): Define.
(FH_DEV): Redefine in terms of DEV_DEV_MAJOR.
(ext_dev_storage): Declare.
(dev_storage_size): Declare.
(dev_dev_storage): Declare.
(dev_dev): Define.
(isdev_dev): Define.
* devices.in (dev_dev_storage): Activate.
(ext_dev_storage): Define as externally available pointer to
dev_storage.
(dev_storage_size): Define to contain number of dev_storage elements.
* dir.cc (rmdir): Handle /dev as always not empty.
* dtable.cc (fh_alloc): Handle DEV_DEV_MAJOR.
* fhandler.h (fhandler_dev): New class, derived from fhandler_disk_file.
(fhandler_union): Add fhandler_dev member.
* fhandler_disk_file.cc (class __DIR_mounts): Handle /dev directory
to make sure it always exists.
* fhandler_dev.cc: New file implementing /dev.
* globals.cc (ro_u_dev): New R/O unicode string.
* path.cc (path_conv::check): Handle FH_DEV device.

12 years ago* fhandler_console.cc (fhandler_console::set_unit): Don't succeed unless we are
Christopher Faylor [Thu, 29 Mar 2012 17:34:55 +0000 (17:34 +0000)]
* fhandler_console.cc (fhandler_console::set_unit): Don't succeed unless we are
opening a console actually associated with this process.

12 years ago * sec_acl.cc (acl32): Fix potnetial crash if build_fh_name returns NULL.
Corinna Vinschen [Thu, 29 Mar 2012 15:01:18 +0000 (15:01 +0000)]
* sec_acl.cc (acl32): Fix potnetial crash if build_fh_name returns NULL.

12 years ago* exceptions.cc (ctrl_c_handler): Don't generate a SIGINT if we've execed a
Christopher Faylor [Thu, 29 Mar 2012 05:45:49 +0000 (05:45 +0000)]
* exceptions.cc (ctrl_c_handler): Don't generate a SIGINT if we've execed a
non-cygwin process.  Let the Windows process deal with it itself.

12 years ago* sigproc.cc (proc_terminate): Avoid releasing myself.
Christopher Faylor [Wed, 28 Mar 2012 17:28:27 +0000 (17:28 +0000)]
* sigproc.cc (proc_terminate): Avoid releasing myself.

12 years ago * times.cc (clock_setres): Set minperiod to period.
Corinna Vinschen [Wed, 28 Mar 2012 07:38:35 +0000 (07:38 +0000)]
* times.cc (clock_setres): Set minperiod to period.

12 years ago Fix copyright.
Corinna Vinschen [Tue, 27 Mar 2012 18:31:09 +0000 (18:31 +0000)]
Fix copyright.

12 years ago * fhandler_process.cc (process_tab): Add entry for mountinfo.
Corinna Vinschen [Tue, 27 Mar 2012 18:30:28 +0000 (18:30 +0000)]
* fhandler_process.cc (process_tab): Add entry for mountinfo.
(format_process_mountstuff): New function, derived from
format_process_mounts.  Only open another user's user_info shared
memory area if the process is owned by another user.  Actually
access the opened shared user_info to get the right mount table.
For other users, don't print remote cygdrive mount points.  Print
mountinfo or mounts output depending on the bool mountinfo argument.
(format_process_mounts): Just call format_process_mountstuff with
mountinfo set to false.
(format_process_mountinfo): Ditto with mountinfo set to true.

* new-features.sgml (ov-new1.7.11): Add mountinfo.

12 years ago * times.cc (clock_setres): Revert previous change.
Corinna Vinschen [Tue, 27 Mar 2012 08:50:45 +0000 (08:50 +0000)]
* times.cc (clock_setres): Revert previous change.

12 years ago * fhandler.h (class fhandler_dev_clipboard): Add fstat method.
Corinna Vinschen [Mon, 26 Mar 2012 11:24:51 +0000 (11:24 +0000)]
* fhandler.h (class fhandler_dev_clipboard): Add fstat method.
* fhandler_clipboard.cc (cygcb_t): New type for Cygwin-specific
clipboard format.
(set_clipboard): Use new clipboard format to allow setting a timestamp.
(fhandler_dev_clipboard::fstat): New method.  Read modification and
access timestamp as well as length from clipboard data.
(fhandler_dev_clipboard::read): Use new clipboard format.

12 years ago * libc/stdio/findfp.c (__sinit): Set __sdidinit last.
Corinna Vinschen [Mon, 26 Mar 2012 10:43:06 +0000 (10:43 +0000)]
* libc/stdio/findfp.c (__sinit): Set __sdidinit last.

12 years ago * hires.h (hires_ms::dmsecs): Drop unused method.
Corinna Vinschen [Mon, 26 Mar 2012 09:05:50 +0000 (09:05 +0000)]
* hires.h (hires_ms::dmsecs): Drop unused method.
* times.cc (JITTER): Remove.
(gtod): Revert to process-local variable.
(hires_ms::nsecs): Just return system time to disallow discrepancy with
the OS.
(hires_ms::resolution): Return coarsest timer value from OS.  Add
comment to explain why.
(clock_setres): Ditto.

12 years agolibgloss: cris: respect DESTDIR when installing
Michael Frysinger [Sat, 24 Mar 2012 03:38:28 +0000 (03:38 +0000)]
libgloss: cris: respect DESTDIR when installing

12 years ago* child_info.h: Reset magic number.
Christopher Faylor [Wed, 21 Mar 2012 17:23:57 +0000 (17:23 +0000)]
* child_info.h: Reset magic number.

12 years ago* child_info.h (child_info::postfork): Define new function.
Christopher Faylor [Wed, 21 Mar 2012 15:54:50 +0000 (15:54 +0000)]
* child_info.h (child_info::postfork): Define new function.
* fork.cc (frok::parent): Call postfork to do all of the manipulation required
prior to calling pinfo::remember.
* pinfo.h (pinfo::set_rd_proc_pipe): Just set pinfo's rd_proc_pipe.  Don't
bother setting it to NULL.
* sigproc.cc (child_info_spawn::wait_for_myself): Call postfork to set up
myself for waiting.
* spawn.cc (child_info_spawn::worker): Avoid now-unnecessary global lock.
Consistently test mode rather than chtype when making wr_proc_pipe decisions.
Call postfork() to set up stuff prior to pinfo::remember.

12 years ago * cygtls.cc (well_known_dlls): Add advapi32.dll.
Corinna Vinschen [Wed, 21 Mar 2012 10:42:24 +0000 (10:42 +0000)]
* cygtls.cc (well_known_dlls): Add advapi32.dll.

12 years ago* child_info.h: Reset magic number.
Christopher Faylor [Wed, 21 Mar 2012 05:23:13 +0000 (05:23 +0000)]
* child_info.h: Reset magic number.
(child_info_spawn::wait_for_myself): Move function to sigproc.cc.
* pinfo.cc (is_toplevel_proc): Delete unneeded variable.
* sigproc.cc (child_info_spawn::wait_for_myself): Move function from header to
here.  Do all setup required to properly wait for top-level execed process to
exit.
* spawn.cc (child_info_spawn::worker): Attempt to properly handle _P_DETACH.
Set wr_proc_pipe if top-level process even when execing.  Just call
wait_for_myself() to...  wait for myself.  Don't call cleanup twice.

12 years ago* pinfo.cc (proc_waiter): Remove debugging.
Christopher Faylor [Wed, 21 Mar 2012 04:45:57 +0000 (04:45 +0000)]
* pinfo.cc (proc_waiter): Remove debugging.

12 years ago* dtable.cc (set_std_handle): Call SetStdHandle with NULL if fd is closed.
Christopher Faylor [Tue, 20 Mar 2012 23:13:40 +0000 (23:13 +0000)]
* dtable.cc (set_std_handle): Call SetStdHandle with NULL if fd is closed.
(dtable::release): "Close" standard handle if appropriate.
* dcrt0.cc (dll_crt0_0): Fix minor switch formatting problem.
* fork.cc (frok::parent): Make minor comment indentation change.

12 years ago * syscalls.cc (lseek): Fix debug output.
Corinna Vinschen [Tue, 20 Mar 2012 20:39:32 +0000 (20:39 +0000)]
* syscalls.cc (lseek): Fix debug output.

12 years ago * ntdll.h (SharedUserData): Add volatile qualifier. This fixes a
Corinna Vinschen [Tue, 20 Mar 2012 18:01:09 +0000 (18:01 +0000)]
* ntdll.h (SharedUserData): Add volatile qualifier. This fixes a
possible infinite loop in hires_ms::timeGetTime_ns.

12 years ago* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
Christopher Faylor [Tue, 20 Mar 2012 15:07:30 +0000 (15:07 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
(child_info::rd_proc_pipe): Declare new field.
(child_info::wr_proc_pipe): Ditto.
(child_info::prefork): Declare new function, derived from previous pinfo
version.
* dcrt0.cc (child_info_fork::handle_fork): Close previous wr_proc_pipe when
appropriate and assign new one from passed-in child_info block.
(child_info_spawn::handle_spawn): Assign our wr_proc_pipe handle from passed-in
child_info block.
* fork.cc (child_info::prefork): Define new function.
(frok::child): Clear rd_proc_pipe and wr_proc_pipe so they will not be closed
by the child_info destructor.
(frok::parent): Use child_info prefork handling, outside of retry loop.  Set
rd_proc_pipe in child's pinfo after successful CreateProcess.  Eliminate
postfork call.
* globals.cc (my_wr_proc_pipe): Define/declare new variable.
* pinfo.cc (pinfo::pending_rd_proc_pipe): Delete.
(pinfo::pending_wr_proc_pipe): Ditto.
(pinfo::prefork): Ditto.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(pinfo::wait): Assume that rd_proc_pipe is set up correctly prior to call.
(_pinfo::alert_parent): Replace "wr_proc_pipe" with "my_wr_proc_pipe".
* pinfo.h (_pinfo::_wr_proc_pipe): Delete declaration.
(_pinfo::set_rd_proc_pipe): Define new function.
(pinfo::pending_rd_proc_pipe): Delete declaration.
(pinfo::pending_wr_proc_pipe): Ditto.
(pinfo::prefork): Ditto.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(pinfo::wr_proc_pipe): Ditto.
* sigproc.cc (child_info::child_info): Clear rd_proc_pipe and wr_proc_pipe.
(child_info::cleanup): Close rd_proc_pipe and wr_proc_pipe if necessary.
(child_info_fork::child_info_fork): Set forker_finished to NULL by default.
(child_info_spawn::child_info_spawn): Use my_wr_proc_pipe rather than
myself->wr_proc_pipe.
(child_info::sync): Ditto.
(child_info_spawn::cleanup): Call child_info::cleanup.
* spawn.cc (child_info_spawn::worker): Remove call to myself.prefork().  Set
wr_proc_pipe when execing or set up new rd_proc_pipe/wr_proc_pipe via
child_info::prefork when spawning.  Remove call to pinfo::postexec.  Set
rd_proc_pipe in child pinfo when spawning.  Use my_wr_proc_pipe rather than
myself->wr_proc_pipe.  Remove call to postfork.

12 years ago* pinfo.cc (pinfo_init): Cosmetic change: unset "destroy" for myself.
Christopher Faylor [Tue, 20 Mar 2012 02:08:14 +0000 (02:08 +0000)]
* pinfo.cc (pinfo_init): Cosmetic change: unset "destroy" for myself.
(pinfo::wait): Change some comments.
(pinfo::prefork): Move a comment.
(pinfo::postfork): Set pending_*_pipe variables to NULL if closed.
(pinfo::postexec): Use right name when closing handle.
(_pinfo::alert_parent): Ditto.
* sigproc.h (hold_everything): Remove debugging label.

12 years ago2012-03-19 Ben Greear <greear@users.sf.net>
Chris Sutcliffe [Tue, 20 Mar 2012 00:28:53 +0000 (00:28 +0000)]
2012-03-19      Ben Greear  <greear@users.sf.net>

        * include/routprot.h (IP_LOCAL_BINDING): Move above IP_ADAPTER_BINDING_INFO
        to correct warning about IP_LOCAL_BINDING being undefined.

12 years ago* client.cc: Revert sigproc.h inclusion since it was fixed elsewhere.
Christopher Faylor [Mon, 19 Mar 2012 20:52:55 +0000 (20:52 +0000)]
* client.cc: Revert sigproc.h inclusion since it was fixed elsewhere.

12 years ago* cygserver_ipc.h: Include sigproc.h for signal_arrived declaration.
Christopher Faylor [Mon, 19 Mar 2012 20:18:18 +0000 (20:18 +0000)]
* cygserver_ipc.h: Include sigproc.h for signal_arrived declaration.

12 years ago * client.cc: Include sigproc.h if __INSIDE_CYGWIN__ is defined.
Corinna Vinschen [Mon, 19 Mar 2012 19:25:01 +0000 (19:25 +0000)]
* client.cc: Include sigproc.h if __INSIDE_CYGWIN__ is defined.

12 years ago* cygprops.h: Use #pragma once.
Christopher Faylor [Mon, 19 Mar 2012 17:49:40 +0000 (17:49 +0000)]
* cygprops.h: Use #pragma once.
* mkglobals_h: Ditto for generated globals.h file.
* globals.cc: Use specific NO_GLOBALS_H flag to control inclusion of globals.h.
* winsup.h: Honor NO_GLOBALS_H to control inclusion of globals.h.  Make
clear_procimptoken extern inline so that it is only defined when needed.

12 years ago* client.cc: Remove unneeded #include "sigproc.h".
Christopher Faylor [Mon, 19 Mar 2012 17:47:05 +0000 (17:47 +0000)]
* client.cc: Remove unneeded #include "sigproc.h".

12 years ago * thread.cc (cancelable_wait): Don't malloc tbi, just make it a struct
Corinna Vinschen [Mon, 19 Mar 2012 17:34:23 +0000 (17:34 +0000)]
* thread.cc (cancelable_wait): Don't malloc tbi, just make it a struct
on the stack to avoid memory leak.

12 years ago* pinfo.cc (pinfo::wait): Handle case where prefork was not called prior to
Christopher Faylor [Mon, 19 Mar 2012 16:51:30 +0000 (16:51 +0000)]
* pinfo.cc (pinfo::wait): Handle case where prefork was not called prior to
calling wait().  This is the case when we are reabsorbing processes after being
execed.

12 years ago* fork.cc (lock_signals): Move to sigproc.h.
Christopher Faylor [Fri, 16 Mar 2012 20:20:29 +0000 (20:20 +0000)]
* fork.cc (lock_signals): Move to sigproc.h.
(lock_pthread): Ditto.
(hold_everything): Ditto.
(frok::parent): Call myself.prefork() just before calling CreateProcess.  Call
myself.postfork () on function exit.
* pinfo.cc (pinfo::pending_rd_proc_pipe): Define.
(pinfo::pending_wr_proc_pipe): Ditto.
(_pinfo::dup_proc_pipe): Delete.
(pinfo::wait): Move pipe creation into pinfo::prefork.  Set pipe variables from
pending_*.
(_pinfo::sync_proc_pipe): Delete.
(_pinfo::proc_pipe_owner): Ditto.
(pinfo::prefork): Define new function.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(_pinfo::alert_parent): Remove obsolete call to sync_proc_pipe.
(_pinfo::dup_proc_pipe): Delete declaration.
(_pinfo::sync_proc_pipe): Ditto.
(pinfo::pending_rd_proc_pipe): Declare.
(pinfo::pending_wr_proc_pipe): Ditto.
(pinfo::prefork): Declare new function.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(pinfo::wr_proc_pipe): Define new wrapper function.
* sigproc.h: Include "sync.h".  Move locking functions from fork to here.
* spawn.cc (child_info_spawn::worker): Delete now-unneeded requirement to
record orig_wr_proc_pipe.  Call hold_everything prior to doing anything.  Call
myself.prefork() if spawning.  Replace wr_proc_pipe synchronization with call
to myself.postexec().  Call myself.postfork() if not execing.
* sync.h: Replace #ifdef wrapper with "#pragma once".

12 years ago * configure.ac (enable_libgomp): Remove *-*-irix6*.
Rainer Orth [Thu, 15 Mar 2012 14:13:32 +0000 (14:13 +0000)]
* configure.ac (enable_libgomp): Remove *-*-irix6*.
(unsupported_languages): Remove mips-sgi-irix6.*.
(noconfigdirs): Don't add ${libgcj} for mips*-*-irix6*.
(with_stabs): Remove.
* configure: Regenerate.

12 years ago * configure.ac (enable_libgomp): Remove *-*-osf*.
Rainer Orth [Thu, 15 Mar 2012 14:11:38 +0000 (14:11 +0000)]
* configure.ac (enable_libgomp): Remove *-*-osf*.
(with_stabs): Remove alpha*-*-osf*.
* configure: Regenerate.

12 years agoinclude/
Alan Modra [Thu, 15 Mar 2012 12:58:48 +0000 (12:58 +0000)]
include/
* dis-asm.h (disassemble_init_powerpc): Declare.
opcodes/
* disassemble.c (disassemble_init_for_target): Handle ppc init.
* ppc-dis.c (private): New var.
(powerpc_init_dialect): Don't return calloc failure, instead use
private.
(PPC_OPCD_SEGS, PPC_OP_TO_SEG): Define.
(powerpc_opcd_indices): New array.
(disassemble_init_powerpc): New function.
(print_insn_big_powerpc): Don't init dialect here.
(print_insn_little_powerpc): Likewise.
(print_insn_powerpc): Start search using powerpc_opcd_indices.

12 years ago * hookapi.cc (hook_or_detect_cygwin): Change condition when to use
Corinna Vinschen [Tue, 13 Mar 2012 17:15:28 +0000 (17:15 +0000)]
* hookapi.cc (hook_or_detect_cygwin): Change condition when to use
importRVAMaxSize or importRVASize for the mapping size.  Make sure
to map never more than the section size.  Change comments accordingly.

12 years ago * include/netdb.h (h_errno): Add self-referencing macro and comment.
Corinna Vinschen [Tue, 13 Mar 2012 09:13:02 +0000 (09:13 +0000)]
* include/netdb.h (h_errno): Add self-referencing macro and comment.

12 years agolibgloss: libnosys: use @host_makefile_frag@
Michael Frysinger [Tue, 13 Mar 2012 01:52:31 +0000 (01:52 +0000)]
libgloss: libnosys: use @host_makefile_frag@

Rather than inlining the generated rules, use @host_makefile_frag@ instead.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agolibgloss: change 'q' flag to 'r' in ar call
Michael Frysinger [Tue, 13 Mar 2012 01:47:40 +0000 (01:47 +0000)]
libgloss: change 'q' flag to 'r' in ar call

The GNU ar has "q" aliased to "r", and we generally want this behavior anyways
(replacing rather than always appending), so change our AR_FLAGS definition.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoChristopher Faylor <me.cygwin2012@cgf.cx>
Christopher Faylor [Mon, 12 Mar 2012 21:29:36 +0000 (21:29 +0000)]
Christopher Faylor <me.cygwin2012@cgf.cx>
* fhandler.h (wait_return): Add overlapped_nullread.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Detect zero-byte
read as a special case.
(fhandler_base_overlapped::raw_read): Keep looping when zero-byte read detected
without EOF.
(fhandler_base_overlapped::raw_write): Quiet gcc warning by adding
overlapped_nullread to switch statement even though it will never actually be
hit.

12 years ago* dtable.cc (fh_alloc): Treat pc.dev as unsigned.
Christopher Faylor [Sat, 10 Mar 2012 17:51:33 +0000 (17:51 +0000)]
* dtable.cc (fh_alloc): Treat pc.dev as unsigned.
* fhandler_console.cc (fhandler_console::set_unit): Use lock always to avoid
races between competing cygwin processes running on the console.

12 years agoinclude/opcode/
Alan Modra [Fri, 9 Mar 2012 23:39:02 +0000 (23:39 +0000)]
include/opcode/
* ppc.h: Add PPC_OPCODE_ALTIVEC2, PPC_OPCODE_E6500, PPC_OPCODE_TMR.
opcodes/
* ppc-dis.c (ppc_opts): Add entries for "e5500" and "e6500".
* ppc-opc.c (insert_ls, TMR, ESYNC, XSYNCLE_MASK): New.
(PPCVEC2, PPCTMR, E6500): New short names.
(powerpc_opcodes): Add vabsdub, vabsduh, vabsduw, dni, mvidsplt,
mviwsplt, icblq., mftmr, mttmr, dcblq., miso, lvexbx, lvexhx,
lvexwx, stvexbx, stvexhx, stvexwx, lvepx, lvepxl, stvepx, stvepxl,
lvtrx, lvtrxl, lvtlx, lvtlxl, stvfrx, stvfrxl, stvflx, stvflxl,
lvswx, lvswxl, stvswx, stvswxl, lvsm mnemonics. Accept LS, ESYNC
optional operands on sync instruction for E6500 target.
bfd/
* archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
* bfd-in2.h: Regenerate.
* cpu-powerpc.c (bfd_powerpc_archs): Add entryies for
bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
gas/
* config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
(ppc_handle_align): Add termination nop opcode for e500mc family.
* doc/as.texinfo: Document options -me5500 and -me6500.
* doc/c-ppc.texi: Likewise.
gas/testsuite/
* gas/ppc/e500mc64_nop.s: New test case for e500mc family
termination nops.
* gas/ppc/e500mc64_nop.d: Likewise.
* gas/ppc/e5500_nop.s: Likewise.
* gas/ppc/e5500_nop.d: Likewise.
* gas/ppc/e6500_nop.s: Likewise.
* gas/ppc/e6500_nop.d: Likewise.
* gas/ppc/e6500.s: New.
* gas/ppc/e6500.d: Likewise.
* gas/ppc/ppc.exp: Run e6500, e500mc64_nop, e5500_nop, and e6500_nop.

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 20:31:34 +0000 (20:31 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Modify DJ Delorie license to include
        modification rights in clause as permitted by DJ Delorie.
        * COPYING.LIBGLOSS: Ditto.

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 20:28:57 +0000 (20:28 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * epiphany/access.c: Add modification rights to clause as
        permitted by DJ Delorie.
        * iq2000/access.c: Ditto.
        * mn10200/access.c: Ditto.
        * mn10300/access.c: Ditto.
        * mt/access.c: Ditto.
        * v850/access.c: Ditto.

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 20:26:39 +0000 (20:26 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/machine/setjmp-dj.h: Modify license to include
        modification in clause as permitted by DJ Delorie.
        * libc/machine/arm/access.c: Ditto.
        * libc/machine/i386/setjmp.S: Ditto.
        * libc/sys/h8300hms/sys/file.h: Ditto.
        * libc/sys/linux/machine/i386/setjmp.S: Ditto.
        * libc/sys/sysmec/access.c: Ditto.
        * libc/sys/sysnecv850/access.c: Ditto.

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 19:38:10 +0000 (19:38 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Remove two unused licenses.

12 years ago * hookapi.cc (find_first_notloaded_dll): Fix a compiler warning.
Corinna Vinschen [Fri, 9 Mar 2012 12:42:14 +0000 (12:42 +0000)]
* hookapi.cc (find_first_notloaded_dll): Fix a compiler warning.

12 years ago * hookapi.cc (rvadelta): Add parameter to return maximum available
Corinna Vinschen [Fri, 9 Mar 2012 12:37:37 +0000 (12:37 +0000)]
* hookapi.cc (rvadelta): Add parameter to return maximum available
size from start of import RVA table to end of section.
(find_first_notloaded_dll): Take big executables into account.  Use
offset and size computation as in hook_or_detect_cygwin, just simpler.
(hook_or_detect_cygwin): Return NULL rather than false througout.
Change computation of required mapping size to take non-gcc compilers
into account.  Explain the differences and what we do against them.
Don't alloca buf if fn is NULL.  Never use buf if fn is NULL.

Fix name and address in previous ChangeLog entry.

12 years ago * net.cc (call_gaa): New thread function to call GetAdaptersAddresses.
Corinna Vinschen [Thu, 8 Mar 2012 16:02:44 +0000 (16:02 +0000)]
* net.cc (call_gaa): New thread function to call GetAdaptersAddresses.
(get_adapters_addresses): Call call_gaa.  If necessary, call it as
child thread.  Explain why that's necessary.

12 years ago * path.cc (readlink): Avoid calling strlen() twice.
Corinna Vinschen [Thu, 8 Mar 2012 14:56:18 +0000 (14:56 +0000)]
* path.cc (readlink): Avoid calling strlen() twice.

12 years ago2012-03-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 8 Mar 2012 14:14:52 +0000 (14:14 +0000)]
2012-03-08  Tristan Gingold  <gingold@adacore.com>

* lbr.h (struct vms_lhd): Add comments.

12 years ago * Throughout, replace usage of w32api's min with MIN from sys/param.h.
Corinna Vinschen [Thu, 8 Mar 2012 09:36:11 +0000 (09:36 +0000)]
* Throughout, replace usage of w32api's min with MIN from sys/param.h.

12 years agomerge from gcc
DJ Delorie [Thu, 8 Mar 2012 00:01:18 +0000 (00:01 +0000)]
merge from gcc

12 years ago * mn10300.h (elf_mn10300_reloc_type): Add R_MN10300_TLS_GD,
Nick Clifton [Wed, 7 Mar 2012 17:51:56 +0000 (17:51 +0000)]
* mn10300.h (elf_mn10300_reloc_type): Add R_MN10300_TLS_GD,
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF and R_MN10300_TLS_TPOFF.

* elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
field.
(elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
(elf_mn10300_tdata): Define.
(elf_mn10300_local_got_tls_type): Define.
(elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
(mn10300_reloc_map): Likewise.
(elf_mn10300_tls_transition): New function.
(dtpoff, tpoff, mn10300_do_tls_transition): New functions.
(mn10300_elf_check_relocs): Add TLS support.
(mn10300_elf_final_link_relocate): Likewise.
(mn10300_elf_relocate_section): Likewise.
(mn10300_elf_relax_section): Likewise.
(elf32_mn10300_link_hash_newfunc): Initialise new field.
(_bfd_mn10300_copy_indirect_symbol): New function.
(elf32_mn10300_link_hash_table_create): Initialise new fields.
(_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_reloc_type_class): Allocate an
elf_mn10300_obj_tdata structure.
(elf_backend_copy_indirect_symbol): Define.
* reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
(BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
alongside other MN10300 relocations.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

* config/tc-mn10300.c (other_registers): Add SSP and USP.
(md_assemble): Add support for TLS relocs.
(mn10300_parse_name): Likewise.

* readelf.c (is_16bit_abs_reloc): Add detection of R_MN10300_16.

12 years ago* pinfo.cc (_pinfo::dup_proc_pipe): Reorganize to provide more information for
Christopher Faylor [Wed, 7 Mar 2012 17:09:37 +0000 (17:09 +0000)]
* pinfo.cc (_pinfo::dup_proc_pipe): Reorganize to provide more information for
failing condition.
(pinfo::wait): Pass name of function to dup_proc_pipe.  Eliminate error check
for dup_proc_pipe since it never actually returned an error.
* pinfo.h (_pinfo::dup_proc_pipe): Add an argument.
* spawn.cc (child_info_spawn::worker): Pass name of function to dup_proc_pipe.

12 years ago * glob.cc (MAXPATHLEN): Reinstantiate with a value of 8192.
Corinna Vinschen [Wed, 7 Mar 2012 10:12:28 +0000 (10:12 +0000)]
* glob.cc (MAXPATHLEN): Reinstantiate with a value of 8192.

12 years ago * pinfo.cc (_pinfo::dup_proc_pipe): Fix order of arguments in debug
Corinna Vinschen [Mon, 5 Mar 2012 12:12:10 +0000 (12:12 +0000)]
* pinfo.cc (_pinfo::dup_proc_pipe): Fix order of arguments in debug
output.

12 years ago * init.cc (dll_entry): Move wincap.init call back from here...
Corinna Vinschen [Mon, 5 Mar 2012 12:09:22 +0000 (12:09 +0000)]
* init.cc (dll_entry): Move wincap.init call back from here...
* dcrt0.cc (dll_crt0_0): ...to here.

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 5 Mar 2012 11:57:17 +0000 (11:57 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* configure.ac: Enable gdb and readline for ia64*-*-*vms*.
* configure: Regenerate.

12 years ago * cygheap.h (enum fcwd_version_t): Move here from path.cc.
Corinna Vinschen [Mon, 5 Mar 2012 11:50:25 +0000 (11:50 +0000)]
* cygheap.h (enum fcwd_version_t): Move here from path.cc.
(class fcwd_access_t): Ditto.  Only declare methods.
(class cwdstuff): Move fast_cwd_ptr and fast_cwd_version from shared
DLL section here.
* path.cc: Keep fcwd_access_t method definitions.
(fcwd_access_t::fast_cwd_version): New method.
(find_fast_cwd_pointer): Change comment.  Mention test on W8CP.
(cwdstuff::init): Initialize fast_cwd_ptr and fast_cwd_version.

12 years ago * dll_init.cc (dll_list::operator[]): Extend comment a bit more to
Corinna Vinschen [Mon, 5 Mar 2012 10:27:44 +0000 (10:27 +0000)]
* dll_init.cc (dll_list::operator[]): Extend comment a bit more to
explain previous patch.

12 years ago * dll_init.cc (dll_list::alloc): Compare linked DLLs by basename only.
Corinna Vinschen [Sun, 4 Mar 2012 16:47:45 +0000 (16:47 +0000)]
* dll_init.cc (dll_list::alloc): Compare linked DLLs by basename only.
Explain why.  Add code to check if a DLL with the same basename but
different path is the same DLL.  Bail out if not.
(in_load_after_fork): New static NO_COPY bool to allow to differ
between linked and loaded DLL at fork.
(dll_list::load_after_fork): Set in_load_after_fork accordingly.
(dll_dllcrt0_1): Don't treat DLL as linked if in_load_after_fork is set.
Drop test for in_forkee.

12 years ago * dll_init.cc: Revert pathname changes from 2012-02-08.
Corinna Vinschen [Sun, 4 Mar 2012 13:50:12 +0000 (13:50 +0000)]
* dll_init.cc: Revert pathname changes from 2012-02-08.
(dll_list::operator[]): Add long comment to explain the misery.
(dll_list::alloc): Skip long pathname prefix potentially returned by
GetModuleFileNameW.
* dll_init.h (dll_list::find_by_modname): Add back declaration.

12 years ago * winver.rc: Bump copyright date.
Corinna Vinschen [Sun, 4 Mar 2012 13:19:21 +0000 (13:19 +0000)]
* winver.rc: Bump copyright date.

12 years ago* fhandler_console.cc (fhandler_console::dup): Only set ctty when we haven't
Christopher Faylor [Sat, 3 Mar 2012 21:35:30 +0000 (21:35 +0000)]
* fhandler_console.cc (fhandler_console::dup): Only set ctty when we haven't
specifically called setsid.
* fhandler_tty.cc (fhandler_pty_slave::dup): Ditto.  Also add comment
documenting research into rxvt problem.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Don't check specifically
for myself->ctty == -1.  Test for > 0 as that is the correct test.
(fhandler_termios::sigflush): Ditto.

12 years ago * flock.cc (allow_others_to_sync): Reorder conditional expression to
Corinna Vinschen [Fri, 2 Mar 2012 17:20:11 +0000 (17:20 +0000)]
* flock.cc (allow_others_to_sync): Reorder conditional expression to
check for DACL presence first, since otherwise dacl pointer value is
undefined.  Add comment.

12 years ago * flock.cc (allow_others_to_sync): Use RtlGetDaclSecurityDescriptor
Corinna Vinschen [Fri, 2 Mar 2012 17:07:17 +0000 (17:07 +0000)]
* flock.cc (allow_others_to_sync): Use RtlGetDaclSecurityDescriptor
rather than accessing the SECURITY_DESCRIPTOR structure directly.
Take no DACL and NULL DACL into account.

12 years ago2012-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 2 Mar 2012 16:02:04 +0000 (16:02 +0000)]
2012-03-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/posix/readdir_r.c: Fix return code when end of
        directory is reached.

12 years ago * configure.in: Accept "arm*" target spec instead of just "arm".
Nick Clifton [Fri, 2 Mar 2012 13:20:08 +0000 (13:20 +0000)]
* configure.in: Accept "arm*" target spec instead of just "arm".
* configure: Regenerated.
* libnosys/configure.in: Likewise.
(libc_symbol_prefix): Renamed to libc_cv_symbol_prefix.
* libnosys/configure: Regenerated (using autoconf v2.68).

12 years agoFix typo in ChangeLog entry
Corinna Vinschen [Fri, 2 Mar 2012 12:01:27 +0000 (12:01 +0000)]
Fix typo in ChangeLog entry

12 years ago * fhandler_console.cc (fhandler_console::input_tcsetattr): Revert
Corinna Vinschen [Fri, 2 Mar 2012 11:56:06 +0000 (11:56 +0000)]
* fhandler_console.cc (fhandler_console::input_tcsetattr): Revert
prevois patch.
(fhandler_console::open_setup): Install Ctrl-C handler here, if this
console is the controlling tty and the process hasn't been started by
a Cygwin process.

12 years ago * fhandler_console.cc (fhandler_console::input_tcsetattr): Set the
Corinna Vinschen [Fri, 2 Mar 2012 10:17:16 +0000 (10:17 +0000)]
* fhandler_console.cc (fhandler_console::input_tcsetattr): Set the
state of the Ctrl-C handler depending on the setting of
ENABLE_PROCESSED_INPUT.

12 years ago* faq-programming.xml (faq.programming.make-execvp): Remove obsolete
Yaakov Selkowitz [Thu, 1 Mar 2012 07:35:02 +0000 (07:35 +0000)]
* faq-programming.xml (faq.programming.make-execvp): Remove obsolete
information about Tcl/Tk.
(faq.programming.dll-relocatable): Ditto.
* faq-using.xml (faq.using.tcl-tk): Rewrite to reflect switch to
X11 Tcl/Tk.

12 years agotcgetsid: fix return type
Eric Blake [Tue, 28 Feb 2012 14:03:03 +0000 (14:03 +0000)]
tcgetsid: fix return type

* include/sys/termios.h (tcgetsid): Fix return type.
* termios.cc (tcgetsid): Likewise.
* fhandler_termios.cc (fhandler_termios::tcgetsid): Likewise.
* fhandler.h (fhandler_base): Likewise.
* fhandler.cc (fhandler_base::tcgetsid): Likewise.

12 years ago * cygtls.cc (well_known_dlls): Add shlwapi.dll.
Corinna Vinschen [Tue, 28 Feb 2012 09:44:14 +0000 (09:44 +0000)]
* cygtls.cc (well_known_dlls): Add shlwapi.dll.

12 years ago* faq-using.xml (faq.using.bloda): Fix missing closing parenthesis.
Yaakov Selkowitz [Mon, 27 Feb 2012 19:45:26 +0000 (19:45 +0000)]
* faq-using.xml (faq.using.bloda): Fix missing closing parenthesis.

12 years ago * cygtls.cc (dll_cmp): New comparison function for bsearch.
Corinna Vinschen [Mon, 27 Feb 2012 11:55:27 +0000 (11:55 +0000)]
* cygtls.cc (dll_cmp): New comparison function for bsearch.
(well_known_dlls): New array containing well-known DLLs.
(_cygtls::call2): Add code for BLODA detection.
* net.cc (fdsock): Ditto.

12 years agogas/
Alan Modra [Mon, 27 Feb 2012 06:37:38 +0000 (06:37 +0000)]
gas/
* config/tc-crx.c: Include bfd_stdint.h.
(getconstant): Remove irrelevant comment.  Don't fail due to
sign-extension of int mask.
(check_range): Rewrite using unsigned arithmetic throughout.
opcodes/
* crx-dis.c (print_arg): Mask constant to 32 bits.
* crx-opc.c (cst4_map): Use int array.
include/opcode/
* crx.h (cst4_map): Update declaration.

12 years agoDrop "potentially" from latest ChangeLog entry.
Corinna Vinschen [Sun, 26 Feb 2012 15:49:31 +0000 (15:49 +0000)]
Drop "potentially" from latest ChangeLog entry.

12 years ago * environ.cc (enum settings): Add setbool. Rename justset to setdword
Corinna Vinschen [Sun, 26 Feb 2012 15:47:43 +0000 (15:47 +0000)]
* environ.cc (enum settings): Add setbool.  Rename justset to setdword
to avoid future problems.
(struct parse_thing): Change all justset to setbool for bool variables.
(parse_options): Add a case for setbool setting for bool variables
since justset (now setdword) always writes a DWORD value, thus
potentially overwriting adjacent memory locations.
* external.cc (cygwin_internal): Drop extern declaration.

12 years ago * environ.cc (dos_file_warning): Drop declaration.
Corinna Vinschen [Sun, 26 Feb 2012 14:01:32 +0000 (14:01 +0000)]
* environ.cc (dos_file_warning): Drop declaration.
(ignore_case_with_glob): Ditto.
(allow_winsymlinks): Ditto.
(reset_com): Move definition to globals.cc.
(struct parse_thing): Add "detect_bloda" option.
* fhandler_serial.cc (fhandler_serial::open): Drop (incorrect)
declaration of reset_com.
* globals.cc (ignore_case_with_glob): Move definition into C++-only
block.
(dos_file_warning): Define.
(allow_winsymlinks): Define.
(reset_com): Define.
(detect_bloda): Define.
* path.cc (dos_file_warning): Drop definition here.
(allow_winsymlinks): Drop definition here.

12 years ago * flock.cc (LOCK_DIR_NAME_FMT): Define.
Corinna Vinschen [Sun, 26 Feb 2012 12:34:17 +0000 (12:34 +0000)]
* flock.cc (LOCK_DIR_NAME_FMT): Define.
(LOCK_DIR_NAME_LEN): Define.
(LOCK_DIR_NAME_DEV_OFF): Define.
(LOCK_DIR_NAME_INO_OFF): Define.
(LOCK_OBJ_NAME_FMT): Define.  Add comment.
(class lockf_t): Use bitsize-explicit types.  Declare from_obj_name,
(class inode_t): Make use, unuse and inuse methods public.  Add a
lock argument to get method declaration.
(inode_t::get): Add lock argument.  Only lock node if lock arg is true.
(inode_t::inode_t): Use LOCK_DIR_NAME_FMT as format string.
(lockf_t::from_obj_name): New method to generate lockf_t content from
lock event object basename.
(inode_t::get_all_locks_list): Just call from_obj_name here and copy
result into final lockf_t.
(create_lock_obj_attr): Use LOCK_OBJ_NAME_FMT as format string.
(create_lock_in_parent): New thread function to create lockf_t
structure in parent process.
(delete_lock_in_parent): New thread function to reap stale BSD locks in
parent process.
(lockf_t::create_lock_obj): Try to duplicate lock object handle into
parent process and call create_lock_in_parent as parent remote thread.
(lockf_t::del_lock_obj): Call delete_lock_in_parent as parent remote
thread.
(fhandler_disk_file::lock): Add lock arg to inode_t::get call.

12 years agoImprove TLS support on TILE-Gx/TILEPro:
Walter Lee [Sat, 25 Feb 2012 22:24:21 +0000 (22:24 +0000)]
Improve TLS support on TILE-Gx/TILEPro:
- Add support for TLS LE references.
- Support linker optimization of TLS references.
- Delete relocations of GOT/tp relative offsets beyond 32-bits.

This brings binutils in line with the support expected in gcc 4.7, for
TILE-Gx/TILEPro.

bfd/
* reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
* elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
relocations.
(tilepro_reloc_map): Ditto.
(tilepro_info_to_howto_rela): Ditto.
(reloc_to_create_func): Ditto.
(tilepro_tls_translate_to_le): New.
(tilepro_tls_translate_to_ie): New.
(tilepro_elf_tls_transition): New.
(tilepro_elf_check_relocs): Handle new tls relocations.
(tilepro_elf_gc_sweep_hook): Ditto.
(allocate_dynrelocs): Ditto.
(tilepro_elf_relocate_section): Ditto.
(tilepro_replace_insn): New.
(insn_mask_X1): New.
(insn_mask_X0_no_dest_no_srca): New
(insn_mask_X1_no_dest_no_srca): New
(insn_mask_Y0_no_dest_no_srca): New
(insn_mask_Y1_no_dest_no_srca): New
(srca_mask_X0): New
(srca_mask_X1): New
(insn_tls_le_move_X1): New
(insn_tls_le_move_zero_X0X1): New
(insn_tls_ie_lw_X1): New
(insn_tls_ie_add_X0X1): New
(insn_tls_ie_add_Y0Y1): New
(insn_tls_gd_add_X0X1): New
(insn_tls_gd_add_Y0Y1): New
* elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
relocations.
(tilegx_reloc_map): Ditto.
(tilegx_info_to_howto_rela): Ditto.
(reloc_to_create_func): Ditto.
(tilegx_elf_link_hash_table): New field disable_le_transition.
(tilegx_tls_translate_to_le): New.
(tilegx_tls_translate_to_ie): New.
(tilegx_elf_tls_transition): New.
(tilegx_elf_check_relocs): Handle new tls relocations.
(tilegx_elf_gc_sweep_hook): Ditto.
(allocate_dynrelocs): Ditto.
(tilegx_elf_relocate_section): Ditto.
(tilegx_copy_bits): New.
(tilegx_replace_insn): New.
(insn_mask_X1): New.
(insn_mask_X0_no_dest_no_srca): New.
(insn_mask_X1_no_dest_no_srca): New.
(insn_mask_Y0_no_dest_no_srca): New.
(insn_mask_Y1_no_dest_no_srca): New.
(insn_mask_X0_no_operand): New.
(insn_mask_X1_no_operand): New.
(insn_mask_Y0_no_operand): New.
(insn_mask_Y1_no_operand): New.
(insn_tls_ie_ld_X1): New.
(insn_tls_ie_ld4s_X1): New.
(insn_tls_ie_add_X0X1): New.
(insn_tls_ie_add_Y0Y1): New.
(insn_tls_ie_addx_X0X1): New.
(insn_tls_ie_addx_Y0Y1): New.
(insn_tls_gd_add_X0X1): New.
(insn_tls_gd_add_Y0Y1): New.
(insn_move_X0X1): New.
(insn_move_Y0Y1): New.
(insn_add_X0X1): New.
(insn_add_Y0Y1): New.
(insn_addx_X0X1): New.
(insn_addx_Y0Y1): New.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.

gas/
* tc-tilepro.c (O_tls_le): Define operator.
(O_tls_le_lo16): Ditto.
(O_tls_le_hi16): Ditto.
(O_tls_le_ha16): Ditto.
(O_tls_gd_call): Ditto.
(O_tls_gd_add): Ditto.
(O_tls_ie_load): Ditto.
(md_begin): Delete old operators; handle new operators.
(emit_tilepro_instruction): Ditto.
(md_apply_fix): Ditto.
* tc-tilegx.c (O_hw1_got): Delete operator.
(O_hw2_got): Ditto.
(O_hw3_got): Ditto.
(O_hw2_last_got): Ditto.
(O_hw1_tls_gd): Ditto.
(O_hw2_tls_gd): Ditto.
(O_hw3_tls_gd): Ditto.
(O_hw2_last_tls_gd): Ditto.
(O_hw1_tls_ie): Ditto.
(O_hw2_tls_ie): Ditto.
(O_hw3_tls_ie): Ditto.
(O_hw2_last_tls_ie): Ditto.
(O_hw0_tls_le): Define operator.
(O_hw0_last_tls_le): Ditto.
(O_hw1_last_tls_le): Ditto.
(O_tls_gd_call): Ditto.
(O_tls_gd_add): Ditto.
(O_tls_ie_load): Ditto.
(O_tls_add): Ditto.
(md_begin): Delete old operators; handle new operators.
(emit_tilegx_instruction): Ditto.
(md_apply_fix): Ditto.
* doc/c-tilegx.texi: Delete old operators; document new operators.
* doc/c-tilepro.texi: Ditto.

include/elf/
* tilegx.h (R_TILEGX_IMM16_X0_HW1_GOT): Delete.
(R_TILEGX_IMM16_X1_HW1_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW2_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW2_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW3_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW3_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW1_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW1_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW2_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW2_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW3_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW3_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW1_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW1_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW2_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW2_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW3_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW3_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW0_TLS_LE): New relocation.
(R_TILEGX_IMM16_X1_HW0_TLS_LE): Ditto.
(R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE): Ditto.
(R_TILEGX_TLS_GD_CALL): Ditto.
(R_TILEGX_IMM8_X0_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_X1_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_Y0_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_Y1_TLS_GD_ADD): Ditto.
(R_TILEGX_TLS_IE_LOAD): Ditto.
(R_TILEGX_IMM8_X0_TLS_ADD): Ditto.
(R_TILEGX_IMM8_X1_TLS_ADD): Ditto.
(R_TILEGX_IMM8_Y0_TLS_ADD): Ditto.
(R_TILEGX_IMM8_Y1_TLS_ADD): Ditto.
* tilepro.h (R_TILEPRO_TLS_GD_CALL): New relocation.
(R_TILEPRO_IMM8_X0_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_X1_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_Y0_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_Y1_TLS_GD_ADD): Ditto.
(R_TILEPRO_TLS_IE_LOAD): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_LO): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_LO): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_HI): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_HI): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_HA): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_HA): Ditto.

include/opcode/
* tilegx.h (tilegx_mnemonic): Add TILEGX_OPC_LD4S_TLS,
TILEGX_OPC_LD_TLS.
* tilepro.h (tilepro_mnemonic): Add TILEPRO_OPC_LW_TLS,
TILEPRO_OPC_LW_TLS_SN.

opcodes/
* tilegx-opc.c: Handle TILEGX_OPC_LD4S_TLS and TILEGX_OPC_LD_TLS.
* tilepro-opc.c: Handle TILEPRO_OPC_LW_TLS and
TILEPRO_OPC_LW_TLS_SN.

12 years ago* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 12.
Christopher Faylor [Sat, 25 Feb 2012 17:32:38 +0000 (17:32 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 12.

12 years ago * new-features.sgml (ov-new1.7.11): Add two more changes to the list.
Corinna Vinschen [Sat, 25 Feb 2012 10:51:32 +0000 (10:51 +0000)]
* new-features.sgml (ov-new1.7.11): Add two more changes to the list.

12 years ago*** empty log message ***
Corinna Vinschen [Sat, 25 Feb 2012 10:48:35 +0000 (10:48 +0000)]
*** empty log message ***

12 years ago* pldd.c: Fix typo in license header.
Yaakov Selkowitz [Fri, 24 Feb 2012 21:53:28 +0000 (21:53 +0000)]
* pldd.c: Fix typo in license header.

12 years ago* pldd.c: Fix formatting.
Yaakov Selkowitz [Fri, 24 Feb 2012 10:38:20 +0000 (10:38 +0000)]
* pldd.c: Fix formatting.

12 years agoDocument pldd.
Yaakov Selkowitz [Fri, 24 Feb 2012 10:21:34 +0000 (10:21 +0000)]
Document pldd.

12 years ago* new-features.sgml (ov-new1.7.11): Document pldd.
Yaakov Selkowitz [Fri, 24 Feb 2012 10:20:00 +0000 (10:20 +0000)]
* new-features.sgml (ov-new1.7.11): Document pldd.

12 years ago* Makefile.in (CYGWIN_BINS): Add pldd.
Yaakov Selkowitz [Fri, 24 Feb 2012 10:19:01 +0000 (10:19 +0000)]
* Makefile.in (CYGWIN_BINS): Add pldd.
(pldd.exe): Add -lpsapi to ALL_LDFLAGS.
* pldd.c: New file.
* utils.sgml (pldd): New section.

12 years agodeal with endian-ness in mach-o non-scattered relocs.
Iain D Sandoe [Thu, 23 Feb 2012 16:29:56 +0000 (16:29 +0000)]
deal with endian-ness in mach-o non-scattered relocs.

BFD:

* mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
(bfd_mach_o_canonicalize_one_reloc):  Swap non-scattered reloc
bit-fields when target and host differ in endian-ness.  When
PAIRs are non-scattered find the 'symbol' from the preceding
reloc.  Add FIXME re. reloc symbols on section boundaries.
(bfd_mach_o_swap_out_non_scattered_reloc): New.
(bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.

include/mach-o:

* external.h: Add comments about relocations fields.  Add macros
for non-scattered relocations.  Move scattered relocation macros to here.
* reloc.h: Remove macros related to external representation of reloc fields.

12 years ago * configure.host: Accept "arm*" host spec instead of just "arm".
Corinna Vinschen [Thu, 23 Feb 2012 09:30:19 +0000 (09:30 +0000)]
* configure.host: Accept "arm*" host spec instead of just "arm".

12 years agoDocument scandirat.
Yaakov Selkowitz [Wed, 22 Feb 2012 02:07:07 +0000 (02:07 +0000)]
Document scandirat.

12 years ago* new-features.sgml (ov-new1.7.11): New section. Document scandirat.
Yaakov Selkowitz [Wed, 22 Feb 2012 02:06:15 +0000 (02:06 +0000)]
* new-features.sgml (ov-new1.7.11): New section. Document scandirat.

12 years ago * cygwin.din (scandirat): Export.
Yaakov Selkowitz [Wed, 22 Feb 2012 01:58:24 +0000 (01:58 +0000)]
* cygwin.din (scandirat): Export.
* posix.sgml (std-gnu): Add scandirat.
* syscalls.cc (scandirat): New function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* include/sys/dirent.h (scandirat): Declare.

12 years ago2012-02-21 Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:40:27 +0000 (22:40 +0000)]
2012-02-21  Joern Rennecke  <joern.rennecke@embecosm.com>

        * COPYING.NEWLIB: Add Adapteva notice.
        * COPYING.LIBGLOSS: Add Adapteva notice.

12 years ago2012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:37:47 +0000 (22:37 +0000)]
2012-02-21  Jeremy Bennett  <jeremy.bennett@embecosm.com>
            Alan Lehotsky  <apl@alum.mit.edu>
            Joern Rennecke  <joern.rennecke@embecosm.com>

        * configure.in: Add Epiphany support.
        * configure: Regenerate.
        * epiphany: New directory.
        * libgloss/README: Add Epiphany entry.

12 years ago2012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:34:31 +0000 (22:34 +0000)]
2012-02-21  Jeremy Bennett  <jeremy.bennett@embecosm.com>
            Alan Lehotsky  <apl@alum.mit.edu>
            Joern Rennecke  <joern.rennecke@embecosm.com>

        * configure.host: Add Epiphany support.
        * libc/include/machine/ieeefp.h: Likewise.
        * libc/include/machine/setjmp.h: Likewise.
        * libc/machine/configure.in, libc/sys/configure.in: Likewise.
        * libc/machine/configure, libc/sys/configure: Regenerate.
        * libc/machine/epiphany, libc/sys/epiphany: New directories.
        * NEWS: Mention addition of Epiphany.

12 years ago * shared.cc (shared_info::init_obcaseinsensitive): Check actual state
Corinna Vinschen [Tue, 21 Feb 2012 17:03:51 +0000 (17:03 +0000)]
* shared.cc (shared_info::init_obcaseinsensitive): Check actual state
of case sensitivity on post-Windows 2000 systems.
* wincap.h (wincaps::kernel_is_always_casesensitive): New element.
* wincap.cc: Implement above element throughout.

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