winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
June 2023
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
1 participants
633 discussions
Start a n
N
ew thread
Alex Henrie : advpack: Check the return value of adv_install in DoInfInstallW (scan-build).
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: 29d543d12a2085be8513859369291bbcc35694db URL:
https://gitlab.winehq.org/wine/wine/-/commit/29d543d12a2085be8513859369291b…
Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Fri Jun 16 21:56:14 2023 -0600 advpack: Check the return value of adv_install in DoInfInstallW (scan-build). --- dlls/advpack/install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/advpack/install.c b/dlls/advpack/install.c index deaa82d6d98..f7768cf7852 100644 --- a/dlls/advpack/install.c +++ b/dlls/advpack/install.c @@ -533,7 +533,7 @@ static HRESULT DoInfInstallW(const SETUPCOMMAND_PARAMSW *setup) done: install_release(&info); - return S_OK; + return hr; } /***********************************************************************
1
0
0
0
Alex Henrie : conhost: Use correct pointer type in edit_line_transpose_words (scan-build).
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: 2455229549914f8075b3ece0eb7d771ec84b2966 URL:
https://gitlab.winehq.org/wine/wine/-/commit/2455229549914f8075b3ece0eb7d77…
Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Fri Jun 16 22:02:19 2023 -0600 conhost: Use correct pointer type in edit_line_transpose_words (scan-build). --- programs/conhost/conhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index c2d48d082c6..21fc8838502 100644 --- a/programs/conhost/conhost.c +++ b/programs/conhost/conhost.c @@ -865,7 +865,7 @@ static void edit_line_transpose_words( struct console *console ) { unsigned int len_r = right_offset - ctx->cursor; unsigned int len_l = ctx->cursor - left_offset; - char *tmp = malloc( len_r * sizeof(WCHAR) ); + WCHAR *tmp = malloc( len_r * sizeof(WCHAR) ); if (!tmp) { ctx->status = STATUS_NO_MEMORY;
1
0
0
0
Olivier F. R. Dierick : ntoskrnl.exe: Add Ke386QueryIoAccessMap stub.
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: 58e81212fc426d8022d93f40490abb8de532c289 URL:
https://gitlab.winehq.org/wine/wine/-/commit/58e81212fc426d8022d93f40490abb…
Author: Olivier F. R. Dierick <o.dierick(a)piezo-forte.be> Date: Sun Jun 18 15:48:09 2023 +0200 ntoskrnl.exe: Add Ke386QueryIoAccessMap stub. Simply print a FIXME, instead of triggering the display of a terminal window to show 'call to unimplemented function' debugging info. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54380
--- dlls/ntoskrnl.exe/ntoskrnl.c | 9 +++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 407e7c4f5e9..7e3ad603549 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -3527,6 +3527,15 @@ BOOLEAN WINAPI Ke386IoSetAccessProcess(PEPROCESS *process, ULONG flag) return FALSE; } +/***************************************************** + * Ke386QueryIoAccessMap (NTOSKRNL.EXE.@) + */ +BOOLEAN WINAPI Ke386QueryIoAccessMap(ULONG flag, PVOID buffer) +{ + FIXME("(%ld %p) stub\n", flag, buffer); + return FALSE; +} + /***************************************************** * Ke386SetIoAccessMap (NTOSKRNL.EXE.@) */ diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index 0b694b08de0..068806e52bc 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -526,7 +526,7 @@ @ stdcall KdRefreshDebuggerNotPresent() @ stub Ke386CallBios @ stdcall Ke386IoSetAccessProcess(ptr long) -@ stub Ke386QueryIoAccessMap +@ stdcall Ke386QueryIoAccessMap(long ptr) @ stdcall Ke386SetIoAccessMap(long ptr) @ stub KeAcquireInterruptSpinLock @ stdcall KeAcquireSpinLockAtDpcLevel(ptr)
1
0
0
0
Alexandre Julliard : loader: Build the preloader as PIE on 64-bit.
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: ac1761d1dae8bf114a05e28ed6886deba6c2c860 URL:
https://gitlab.winehq.org/wine/wine/-/commit/ac1761d1dae8bf114a05e28ed6886d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jun 19 17:32:01 2023 +0200 loader: Build the preloader as PIE on 64-bit. --- configure | 38 +++++++++++++++++++++++++++++++++++++- configure.ac | 11 ++++++++++- loader/preloader.c | 7 ++++--- 3 files changed, 51 insertions(+), 5 deletions(-) diff --git a/configure b/configure index e2f60383fa0..f41b9cd687f 100755 --- a/configure +++ b/configure @@ -10245,11 +10245,47 @@ if test "x$ac_cv_cflags__Wl___export_dynamic" = xyes then : WINELOADER_LDFLAGS="-Wl,--export-dynamic" fi + WINEPRELOADER_LDFLAGS="-nostartfiles -nodefaultlibs" case $host_os in linux*) as_fn_append WINELOADER_LDFLAGS " -pie" - WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000" + case $HOST_ARCH in + i386|arm) + as_fn_append WINEPRELOADER_LDFLAGS " -static -Wl,-Ttext=0x7d400000" ;; + *) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -static-pie" >&5 +printf %s "checking whether the compiler supports -static-pie... " >&6; } +if test ${ac_cv_cflags__static_pie+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_wine_try_cflags_saved=$CFLAGS +CFLAGS="$CFLAGS -static-pie" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int main(int argc, char **argv) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_cflags__static_pie=yes +else $as_nop + ac_cv_cflags__static_pie=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +CFLAGS=$ac_wine_try_cflags_saved +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__static_pie" >&5 +printf "%s\n" "$ac_cv_cflags__static_pie" >&6; } +if test "x$ac_cv_cflags__static_pie" = xyes +then : + as_fn_append WINEPRELOADER_LDFLAGS " -static-pie" +else $as_nop + as_fn_append WINEPRELOADER_LDFLAGS " -static -Wl,-Ttext=0x7d7d00000000" +fi + ;; + esac ;; *) case $HOST_ARCH in diff --git a/configure.ac b/configure.ac index 562d50209a6..bed7b2dec28 100644 --- a/configure.ac +++ b/configure.ac @@ -769,11 +769,20 @@ case $host_os in WINE_TRY_CFLAGS([-Wl,-z,defs],[UNIXLDFLAGS="$UNIXLDFLAGS -Wl,-z,defs"]) WINE_TRY_CFLAGS([-Wl,--export-dynamic],[WINELOADER_LDFLAGS="-Wl,--export-dynamic"]) + WINEPRELOADER_LDFLAGS="-nostartfiles -nodefaultlibs" case $host_os in linux*) AS_VAR_APPEND([WINELOADER_LDFLAGS],[" -pie"]) - WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000" + case $HOST_ARCH in + i386|arm) + AS_VAR_APPEND([WINEPRELOADER_LDFLAGS],[" -static -Wl,-Ttext=0x7d400000"]) ;; + *) + WINE_TRY_CFLAGS([-static-pie], + [AS_VAR_APPEND([WINEPRELOADER_LDFLAGS],[" -static-pie"])], + [AS_VAR_APPEND([WINEPRELOADER_LDFLAGS],[" -static -Wl,-Ttext=0x7d7d00000000"])]) + ;; + esac ;; *) case $HOST_ARCH in diff --git a/loader/preloader.c b/loader/preloader.c index 3fbee0877d4..4045db64822 100644 --- a/loader/preloader.c +++ b/loader/preloader.c @@ -351,7 +351,7 @@ __ASM_GLOBAL_FUNC(_start, "movq %rsp,%rax\n\t" "leaq -144(%rsp),%rsp\n\t" /* allocate some space for extra aux values */ "movq %rax,(%rsp)\n\t" /* orig stack pointer */ - "movq $thread_data,%rsi\n\t" + "movq thread_data(%rip),%rsi\n\t" "movq $0x1002,%rdi\n\t" /* ARCH_SET_FS */ "movq $158,%rax\n\t" /* SYS_arch_prctl */ "syscall\n\t" @@ -439,7 +439,8 @@ __ASM_GLOBAL_FUNC(_start, "mov x0, SP\n\t" "sub SP, SP, #144\n\t" /* allocate some space for extra aux values */ "str x0, [SP]\n\t" /* orig stack pointer */ - "ldr x0, =thread_data\n\t" + "adrp x0, thread_data\n\t" + "add x0, x0, :lo12:thread_data\n\t" "msr tpidr_el0, x0\n\t" "mov x0, SP\n\t" /* ptr to orig stack pointer */ "bl wld_start\n\t" @@ -1398,7 +1399,7 @@ void* wld_start( void **stack ) page_size = get_auxiliary( av, AT_PAGESZ, 4096 ); page_mask = page_size - 1; - preloader_start = (char *)_start - ((unsigned long)_start & page_mask); + preloader_start = (char *)((unsigned long)_start & ~page_mask); preloader_end = (char *)((unsigned long)(_end + page_mask) & ~page_mask); #ifdef DUMP_AUX_INFO
1
0
0
0
Alexandre Julliard : loader: Always build the main loader as PIE if we have a preloader.
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: c55578f3a54c63084657e7d79c043b22b10df989 URL:
https://gitlab.winehq.org/wine/wine/-/commit/c55578f3a54c63084657e7d79c043b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jun 19 16:35:02 2023 +0200 loader: Always build the main loader as PIE if we have a preloader. --- configure | 93 +++++++++++++++++++++--------------------------------------- configure.ac | 31 ++++++++++---------- 2 files changed, 48 insertions(+), 76 deletions(-) diff --git a/configure b/configure index 98481fd6a49..e2f60383fa0 100755 --- a/configure +++ b/configure @@ -10245,104 +10245,77 @@ if test "x$ac_cv_cflags__Wl___export_dynamic" = xyes then : WINELOADER_LDFLAGS="-Wl,--export-dynamic" fi - WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000" - case $host_cpu in - *i[3456789]86* | arm*) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-Ttext-segment=0x7bc00000" >&5 -printf %s "checking whether the compiler supports -Wl,-Ttext-segment=0x7bc00000... " >&6; } -if test ${ac_cv_cflags__Wl__Ttext_segment_0x7bc00000+y} + case $host_os in + linux*) + as_fn_append WINELOADER_LDFLAGS " -pie" + WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000" + ;; + *) + case $HOST_ARCH in + i386|arm) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-Ttext-segment=0x60000000" >&5 +printf %s "checking whether the compiler supports -Wl,-Ttext-segment=0x60000000... " >&6; } +if test ${ac_cv_cflags__Wl__Ttext_segment_0x60000000+y} then : printf %s "(cached) " >&6 else $as_nop ac_wine_try_cflags_saved=$CFLAGS -CFLAGS="$CFLAGS -Wl,-Ttext-segment=0x7bc00000" +CFLAGS="$CFLAGS -Wl,-Ttext-segment=0x60000000" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(int argc, char **argv) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : - ac_cv_cflags__Wl__Ttext_segment_0x7bc00000=yes + ac_cv_cflags__Wl__Ttext_segment_0x60000000=yes else $as_nop - ac_cv_cflags__Wl__Ttext_segment_0x7bc00000=no + ac_cv_cflags__Wl__Ttext_segment_0x60000000=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS=$ac_wine_try_cflags_saved fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl__Ttext_segment_0x7bc00000" >&5 -printf "%s\n" "$ac_cv_cflags__Wl__Ttext_segment_0x7bc00000" >&6; } -if test "x$ac_cv_cflags__Wl__Ttext_segment_0x7bc00000" = xyes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl__Ttext_segment_0x60000000" >&5 +printf "%s\n" "$ac_cv_cflags__Wl__Ttext_segment_0x60000000" >&6; } +if test "x$ac_cv_cflags__Wl__Ttext_segment_0x60000000" = xyes then : - case $host_os in - freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x60000000" ;; - *) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x7d000000" ;; - esac + as_fn_append WINELOADER_LDFLAGS " -Wl,-Ttext-segment=0x60000000" else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7d000400" >&5 -printf %s "checking whether the compiler supports -Wl,--section-start,.interp=0x7d000400... " >&6; } -if test ${ac_cv_cflags__Wl___section_start__interp_0x7d000400+y} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x60000400" >&5 +printf %s "checking whether the compiler supports -Wl,--section-start,.interp=0x60000400... " >&6; } +if test ${ac_cv_cflags__Wl___section_start__interp_0x60000400+y} then : printf %s "(cached) " >&6 else $as_nop ac_wine_try_cflags_saved=$CFLAGS -CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7d000400" +CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x60000400" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(int argc, char **argv) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : - ac_cv_cflags__Wl___section_start__interp_0x7d000400=yes + ac_cv_cflags__Wl___section_start__interp_0x60000400=yes else $as_nop - ac_cv_cflags__Wl___section_start__interp_0x7d000400=no + ac_cv_cflags__Wl___section_start__interp_0x60000400=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS=$ac_wine_try_cflags_saved fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7d000400" >&5 -printf "%s\n" "$ac_cv_cflags__Wl___section_start__interp_0x7d000400" >&6; } -if test "x$ac_cv_cflags__Wl___section_start__interp_0x7d000400" = xyes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x60000400" >&5 +printf "%s\n" "$ac_cv_cflags__Wl___section_start__interp_0x60000400" >&6; } +if test "x$ac_cv_cflags__Wl___section_start__interp_0x60000400" = xyes then : - case $host_os in - freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x60000400" ;; - *) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x7d000400" ;; - esac + as_fn_append WINELOADER_LDFLAGS " -Wl,--section-start,.interp=0x60000400" fi fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-z,max-page-size=0x1000" >&5 -printf %s "checking whether the compiler supports -Wl,-z,max-page-size=0x1000... " >&6; } -if test ${ac_cv_cflags__Wl__z_max_page_size_0x1000+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_wine_try_cflags_saved=$CFLAGS -CFLAGS="$CFLAGS -Wl,-z,max-page-size=0x1000" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int main(int argc, char **argv) { return 0; } -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_cflags__Wl__z_max_page_size_0x1000=yes -else $as_nop - ac_cv_cflags__Wl__z_max_page_size_0x1000=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -CFLAGS=$ac_wine_try_cflags_saved -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl__z_max_page_size_0x1000" >&5 -printf "%s\n" "$ac_cv_cflags__Wl__z_max_page_size_0x1000" >&6; } -if test "x$ac_cv_cflags__Wl__z_max_page_size_0x1000" = xyes -then : - WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000" -fi - ;; - *) - WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -pie" + ;; + *) + as_fn_append WINELOADER_LDFLAGS " -pie" + ;; + esac ;; esac ;; diff --git a/configure.ac b/configure.ac index 9c98646a344..562d50209a6 100644 --- a/configure.ac +++ b/configure.ac @@ -769,25 +769,24 @@ case $host_os in WINE_TRY_CFLAGS([-Wl,-z,defs],[UNIXLDFLAGS="$UNIXLDFLAGS -Wl,-z,defs"]) WINE_TRY_CFLAGS([-Wl,--export-dynamic],[WINELOADER_LDFLAGS="-Wl,--export-dynamic"]) - WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000" - case $host_cpu in - *i[[3456789]]86* | arm*) - WINE_TRY_CFLAGS([-Wl,-Ttext-segment=0x7bc00000], - [case $host_os in - freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x60000000" ;; - *) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x7d000000" ;; - esac], - [WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7d000400], - [case $host_os in - freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x60000400" ;; - *) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x7d000400" ;; - esac])]) - WINE_TRY_CFLAGS([-Wl,-z,max-page-size=0x1000], - [WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000"]) + case $host_os in + linux*) + AS_VAR_APPEND([WINELOADER_LDFLAGS],[" -pie"]) + WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000" ;; *) - WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -pie" + case $HOST_ARCH in + i386|arm) + WINE_TRY_CFLAGS([-Wl,-Ttext-segment=0x60000000], + [AS_VAR_APPEND([WINELOADER_LDFLAGS],[" -Wl,-Ttext-segment=0x60000000"])], + [WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x60000400], + [AS_VAR_APPEND([WINELOADER_LDFLAGS],[" -Wl,--section-start,.interp=0x60000400"])])]) + ;; + *) + AS_VAR_APPEND([WINELOADER_LDFLAGS],[" -pie"]) + ;; + esac ;; esac ;;
1
0
0
0
Alexandre Julliard : loader: Force building the main loader as PIE on 64-bit.
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: 78ed343842dcd8ffb95c416420953e121959d40d URL:
https://gitlab.winehq.org/wine/wine/-/commit/78ed343842dcd8ffb95c416420953e…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jun 19 16:32:37 2023 +0200 loader: Force building the main loader as PIE on 64-bit. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55050
--- configure | 29 +---------------------------- configure.ac | 3 +-- loader/Makefile.in | 1 + 3 files changed, 3 insertions(+), 30 deletions(-) diff --git a/configure b/configure index 93cdaa0a365..98481fd6a49 100755 --- a/configure +++ b/configure @@ -10342,34 +10342,7 @@ then : fi ;; *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-pie" >&5 -printf %s "checking whether the compiler supports -Wl,-pie... " >&6; } -if test ${ac_cv_cflags__Wl__pie+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_wine_try_cflags_saved=$CFLAGS -CFLAGS="$CFLAGS -Wl,-pie" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int main(int argc, char **argv) { return 0; } -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_cflags__Wl__pie=yes -else $as_nop - ac_cv_cflags__Wl__pie=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -CFLAGS=$ac_wine_try_cflags_saved -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl__pie" >&5 -printf "%s\n" "$ac_cv_cflags__Wl__pie" >&6; } -if test "x$ac_cv_cflags__Wl__pie" = xyes -then : - WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-pie" -fi + WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -pie" ;; esac ;; diff --git a/configure.ac b/configure.ac index dd8520f6f48..9c98646a344 100644 --- a/configure.ac +++ b/configure.ac @@ -787,8 +787,7 @@ case $host_os in [WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000"]) ;; *) - WINE_TRY_CFLAGS([-Wl,-pie], - [WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-pie"]) + WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -pie" ;; esac ;; diff --git a/loader/Makefile.in b/loader/Makefile.in index 7302c231915..30413fc8677 100644 --- a/loader/Makefile.in +++ b/loader/Makefile.in @@ -12,6 +12,7 @@ SOURCES = \ PROGRAMS = $(WINELOADER_PROGRAMS) INSTALL_LIB = $(WINELOADER_PROGRAMS) +UNIX_CFLAGS = -fPIE preloader_EXTRADEFS = -fno-builtin
1
0
0
0
Alexandre Julliard : include: Disallow fastcall functions in Unix libraries.
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: 718068c42ca1f70ac8f94027f898354b5d4c94e7 URL:
https://gitlab.winehq.org/wine/wine/-/commit/718068c42ca1f70ac8f94027f89835…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jun 19 13:43:42 2023 +0200 include: Disallow fastcall functions in Unix libraries. --- include/ddk/wdm.h | 29 +++++++++++++++++------------ include/windef.h | 2 +- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h index bf240f4fe53..0e54d59a7f6 100644 --- a/include/ddk/wdm.h +++ b/include/ddk/wdm.h @@ -1665,6 +1665,8 @@ static inline void IoCopyCurrentIrpStackLocationToNext(IRP *irp) #define SYMBOLIC_LINK_QUERY 0x0001 #define SYMBOLIC_LINK_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | 0x1) +#ifndef WINE_UNIX_LIB + NTSTATUS WINAPI DbgQueryDebugFilterState(ULONG, ULONG); void FASTCALL ExAcquireFastMutex(FAST_MUTEX*); @@ -1775,10 +1777,6 @@ void WINAPI KeInitializeDpc(KDPC*,PKDEFERRED_ROUTINE,void*); void WINAPI KeInitializeEvent(PRKEVENT,EVENT_TYPE,BOOLEAN); void WINAPI KeInitializeMutex(PRKMUTEX,ULONG); void WINAPI KeInitializeSemaphore(PRKSEMAPHORE,LONG,LONG); -static FORCEINLINE void WINAPI KeInitializeSpinLock( KSPIN_LOCK *lock ) -{ - *lock = 0; -} void WINAPI KeInitializeTimerEx(PKTIMER,TIMER_TYPE); void WINAPI KeInitializeTimer(KTIMER*); BOOLEAN WINAPI KeInsertDeviceQueue(KDEVICE_QUEUE*,KDEVICE_QUEUE_ENTRY*); @@ -1821,14 +1819,6 @@ MM_SYSTEMSIZE WINAPI MmQuerySystemSize(void); void WINAPI MmProbeAndLockPages(PMDLX, KPROCESSOR_MODE, LOCK_OPERATION); void WINAPI MmUnmapLockedPages(void*, PMDL); -static inline void *MmGetSystemAddressForMdlSafe(MDL *mdl, ULONG priority) -{ - if (mdl->MdlFlags & (MDL_MAPPED_TO_SYSTEM_VA | MDL_SOURCE_IS_NONPAGED_POOL)) - return mdl->MappedSystemVa; - else - return MmMapLockedPagesSpecifyCache(mdl, KernelMode, MmCached, NULL, FALSE, priority); -} - void FASTCALL ObfReferenceObject(void*); void WINAPI ObDereferenceObject(void*); USHORT WINAPI ObGetFilterVersion(void); @@ -1972,4 +1962,19 @@ static inline void ExInitializeFastMutex( FAST_MUTEX *mutex ) KeInitializeEvent( &mutex->Event, SynchronizationEvent, FALSE ); } +static FORCEINLINE void WINAPI KeInitializeSpinLock( KSPIN_LOCK *lock ) +{ + *lock = 0; +} + +static inline void *MmGetSystemAddressForMdlSafe(MDL *mdl, ULONG priority) +{ + if (mdl->MdlFlags & (MDL_MAPPED_TO_SYSTEM_VA | MDL_SOURCE_IS_NONPAGED_POOL)) + return mdl->MappedSystemVa; + else + return MmMapLockedPagesSpecifyCache(mdl, KernelMode, MmCached, NULL, FALSE, priority); +} + +#endif /* WINE_UNIX_LIB */ + #endif diff --git a/include/windef.h b/include/windef.h index b5f8f3d0b4c..366a195febd 100644 --- a/include/windef.h +++ b/include/windef.h @@ -59,7 +59,7 @@ extern "C" { #ifdef WINE_UNIX_LIB # define __stdcall # define __cdecl -# define __fastcall +# undef __fastcall #else # undef __stdcall # ifdef __i386__
1
0
0
0
Alex Henrie : wininet: Don't overallocate in urlcache_encode_url_alloc (scan-build).
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: 0a07f5984ef2366a20bf5ad896c23321f3c838b1 URL:
https://gitlab.winehq.org/wine/wine/-/commit/0a07f5984ef2366a20bf5ad896c233…
Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Fri Jun 16 22:09:35 2023 -0600 wininet: Don't overallocate in urlcache_encode_url_alloc (scan-build). The URL is encoded in UTF-8, not UTF-16. --- dlls/wininet/urlcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index 8118bae50dc..cad4c39046b 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -1926,7 +1926,7 @@ static BOOL urlcache_encode_url_alloc(const WCHAR *url, char **encoded_url) if(!encoded_len) return FALSE; - ret = malloc(encoded_len * sizeof(WCHAR)); + ret = malloc(encoded_len); if(!ret) return FALSE;
1
0
0
0
Alex Henrie : urlmon: Don't export urlmon_instance.
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: b97b2fbf0005b4348d71c8b5da50f1884d9c2118 URL:
https://gitlab.winehq.org/wine/wine/-/commit/b97b2fbf0005b4348d71c8b5da50f1…
Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Fri Jun 16 22:14:06 2023 -0600 urlmon: Don't export urlmon_instance. --- dlls/urlmon/urlmon_main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/urlmon/urlmon_main.h b/dlls/urlmon/urlmon_main.h index 10e5d8447fa..b1a255a125c 100644 --- a/dlls/urlmon/urlmon_main.h +++ b/dlls/urlmon/urlmon_main.h @@ -61,7 +61,7 @@ extern LONG URLMON_refCount DECLSPEC_HIDDEN; static inline void URLMON_LockModule(void) { InterlockedIncrement( &URLMON_refCount ); } static inline void URLMON_UnlockModule(void) { InterlockedDecrement( &URLMON_refCount ); } -extern HINSTANCE urlmon_instance; +extern HINSTANCE urlmon_instance DECLSPEC_HIDDEN; IInternetProtocolInfo *get_protocol_info(LPCWSTR) DECLSPEC_HIDDEN; HRESULT get_protocol_handler(IUri*,CLSID*,IClassFactory**) DECLSPEC_HIDDEN;
1
0
0
0
Davide Beatrici : wineoss: Use mmdevapi's stream_release.
by Alexandre Julliard
19 Jun '23
19 Jun '23
Module: wine Branch: master Commit: cafed10a111db30ba17e56aa09a6c1da60ae1d8b URL:
https://gitlab.winehq.org/wine/wine/-/commit/cafed10a111db30ba17e56aa09a6c1…
Author: Davide Beatrici <git(a)davidebeatrici.dev> Date: Sat Jun 17 09:44:10 2023 +0200 wineoss: Use mmdevapi's stream_release. --- dlls/wineoss.drv/mmdevdrv.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c index c1d9cc6d1a9..950b711bad0 100644 --- a/dlls/wineoss.drv/mmdevdrv.c +++ b/dlls/wineoss.drv/mmdevdrv.c @@ -87,6 +87,8 @@ extern HRESULT main_loop_start(void) DECLSPEC_HIDDEN; extern struct audio_session_wrapper *session_wrapper_create( struct audio_client *client) DECLSPEC_HIDDEN; +extern HRESULT stream_release(stream_handle stream, HANDLE timer_thread); + extern WCHAR *get_application_name(void); void DECLSPEC_HIDDEN sessions_lock(void) @@ -141,17 +143,6 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved) return TRUE; } -static HRESULT stream_release(stream_handle stream, HANDLE timer_thread) -{ - struct release_stream_params params; - - params.stream = stream; - params.timer_thread = timer_thread; - OSS_CALL(release_stream, ¶ms); - - return params.result; -} - static void set_device_guid(EDataFlow flow, HKEY drv_key, const WCHAR *key_name, GUID *guid) {
1
0
0
0
← Newer
1
...
28
29
30
31
32
33
34
...
64
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Results per page:
10
25
50
100
200