1. 31 10月, 2018 1 次提交
    • M
      linux-user/flatload: fix initial stack pointer alignment · 5c76d652
      Max Filippov 提交于
      Stack pointer alignment code incorrectly adds stack_size to sp instead
      of subtracting it. It also does not take flat_argvp_envp_on_stack() into
      account when calculating stack_size. This results in initial stack
      pointer misalignment with certain set of command line arguments and
      environment variables and correct alignment for the same binary with a
      different set of arguments. This misalignment causes failures in the
      following tests in the testsuite of gcc built for xtensa uclinux:
      
        gcc.dg/torture/vshuf-v64qi.c
        gcc.dg/torture/vshuf-v8sf.c
        gcc.dg/torture/vshuf-v8si.c
      Reviewed-by: NLaurent Vivier <lvivier@redhat.com>
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      5c76d652
  2. 20 10月, 2018 1 次提交
  3. 11 6月, 2018 1 次提交
  4. 21 9月, 2016 1 次提交
  5. 12 7月, 2016 1 次提交
  6. 17 6月, 2016 1 次提交
  7. 11 3月, 2016 1 次提交
    • D
      osdep: add wrappers for socket functions · a2d96af4
      Daniel P. Berrange 提交于
      The windows socket functions look identical to the normal POSIX
      sockets functions, but instead of setting errno, the caller needs
      to call WSAGetLastError(). QEMU has tried to deal with this
      incompatibility by defining a socket_error() method that callers
      must use that abstracts the difference between WSAGetLastError()
      and errno.
      
      This approach is somewhat error prone though - many callers of
      the sockets functions are just using errno directly because it
      is easy to forget the need use a QEMU specific wrapper. It is
      not always immediately obvious that a particular function will
      in fact call into Windows sockets functions, so the dev may not
      even realize they need to use socket_error().
      
      This introduces an alternative approach to portability inspired
      by the way GNULIB fixes portability problems. We use a macro to
      redefine the original socket function names to refer to a QEMU
      wrapper function. The wrapper function calls the original Win32
      sockets method and then sets errno from the WSAGetLastError()
      value.
      
      Thus all code can simply call the normal POSIX sockets APIs are
      have standard errno reporting on error, even on Windows. This
      makes the socket_error() method obsolete.
      
      We also bring closesocket & ioctlsocket into this approach. Even
      though they are non-standard Win32 names, we can't wrap the normal
      close/ioctl methods since there's no reliable way to distinguish
      between a file descriptor and HANDLE in Win32.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      a2d96af4
  8. 29 1月, 2016 1 次提交
  9. 28 9月, 2015 1 次提交
  10. 10 1月, 2014 1 次提交
  11. 29 11月, 2013 1 次提交
  12. 15 8月, 2012 1 次提交
  13. 02 12月, 2011 1 次提交
  14. 22 6月, 2011 2 次提交
  15. 09 2月, 2011 2 次提交
  16. 18 9月, 2010 1 次提交
  17. 16 6月, 2010 1 次提交
    • P
      Usermode exec-stack fix · 97374d38
      Paul Brook 提交于
      When loading a shared library that requires an executable stack,
      glibc uses the mprotext PROT_GROWSDOWN flag to achieve this.
      We don't support PROT_GROWSDOWN.
      Add a special case to handle changing the stack permissions in this way.
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      97374d38
  18. 29 5月, 2010 1 次提交
  19. 17 7月, 2009 1 次提交
  20. 14 5月, 2009 1 次提交
  21. 06 1月, 2009 1 次提交
  22. 26 10月, 2008 1 次提交
  23. 16 7月, 2008 1 次提交
  24. 16 11月, 2007 1 次提交
  25. 11 11月, 2007 1 次提交
  26. 15 10月, 2007 1 次提交
  27. 17 9月, 2007 2 次提交
  28. 15 4月, 2007 1 次提交
  29. 16 3月, 2007 1 次提交
  30. 27 12月, 2006 1 次提交
  31. 18 6月, 2006 1 次提交
  32. 11 6月, 2006 1 次提交