Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
38d45cbc
Commit
38d45cbc
authored
Jul 25, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Mark function that are only called from assembly as hidden.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c5f72a72
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
12 deletions
+14
-12
relay.c
dlls/ntdll/relay.c
+6
-5
resource.c
dlls/ntdll/resource.c
+1
-1
rtl.c
dlls/ntdll/rtl.c
+1
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+5
-4
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+1
-1
No files found.
dlls/ntdll/relay.c
View file @
38d45cbc
...
@@ -330,7 +330,8 @@ static void print_timestamp(void)
...
@@ -330,7 +330,8 @@ static void print_timestamp(void)
*
*
* stack points to the return address, i.e. the first argument is stack[1].
* stack points to the return address, i.e. the first argument is stack[1].
*/
*/
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
INT_PTR
*
stack
)
DECLSPEC_HIDDEN
void
*
WINAPI
relay_trace_entry
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
INT_PTR
*
stack
)
{
{
WORD
ordinal
=
LOWORD
(
idx
);
WORD
ordinal
=
LOWORD
(
idx
);
BYTE
nb_args
=
LOBYTE
(
HIWORD
(
idx
));
BYTE
nb_args
=
LOBYTE
(
HIWORD
(
idx
));
...
@@ -357,7 +358,7 @@ void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx, co
...
@@ -357,7 +358,7 @@ void * WINAPI relay_trace_entry( struct relay_descr *descr, unsigned int idx, co
/***********************************************************************
/***********************************************************************
* relay_trace_exit
* relay_trace_exit
*/
*/
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
DECLSPEC_HIDDEN
void
WINAPI
relay_trace_exit
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
INT_PTR
*
stack
,
LONGLONG
retval
)
const
INT_PTR
*
stack
,
LONGLONG
retval
)
{
{
WORD
ordinal
=
LOWORD
(
idx
);
WORD
ordinal
=
LOWORD
(
idx
);
...
@@ -480,7 +481,7 @@ __ASM_GLOBAL_FUNC( relay_call,
...
@@ -480,7 +481,7 @@ __ASM_GLOBAL_FUNC( relay_call,
__ASM_CFI
(
".cfi_same_value %ebp
\n\t
"
)
__ASM_CFI
(
".cfi_same_value %ebp
\n\t
"
)
"ret $12"
)
"ret $12"
)
void
WINAPI
__regs_relay_call_regs
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
void
WINAPI
DECLSPEC_HIDDEN
__regs_relay_call_regs
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
unsigned
int
orig_eax
,
unsigned
int
ret_addr
,
unsigned
int
orig_eax
,
unsigned
int
ret_addr
,
CONTEXT
*
context
)
CONTEXT
*
context
)
{
{
...
@@ -1063,7 +1064,7 @@ static void SNOOP_PrintArg(DWORD x)
...
@@ -1063,7 +1064,7 @@ static void SNOOP_PrintArg(DWORD x)
__ENDTRY
__ENDTRY
}
}
void
WINAPI
__regs_SNOOP_Entry
(
void
**
stack
)
void
WINAPI
DECLSPEC_HIDDEN
__regs_SNOOP_Entry
(
void
**
stack
)
{
{
SNOOP_DLL
*
dll
;
SNOOP_DLL
*
dll
;
SNOOP_FUN
*
fun
=
(
SNOOP_FUN
*
)((
char
*
)
stack
[
0
]
-
5
);
SNOOP_FUN
*
fun
=
(
SNOOP_FUN
*
)((
char
*
)
stack
[
0
]
-
5
);
...
@@ -1149,7 +1150,7 @@ void WINAPI __regs_SNOOP_Entry( void **stack )
...
@@ -1149,7 +1150,7 @@ void WINAPI __regs_SNOOP_Entry( void **stack )
DPRINTF
(
") ret=%08x
\n
"
,(
DWORD
)
ret
->
origreturn
);
DPRINTF
(
") ret=%08x
\n
"
,(
DWORD
)
ret
->
origreturn
);
}
}
void
WINAPI
__regs_SNOOP_Return
(
void
**
stack
)
void
WINAPI
DECLSPEC_HIDDEN
__regs_SNOOP_Return
(
void
**
stack
)
{
{
SNOOP_RETURNENTRY
*
ret
=
(
SNOOP_RETURNENTRY
*
)((
char
*
)
stack
[
0
]
-
5
);
SNOOP_RETURNENTRY
*
ret
=
(
SNOOP_RETURNENTRY
*
)((
char
*
)
stack
[
0
]
-
5
);
SNOOP_FUN
*
fun
=
&
ret
->
dll
->
funs
[
ret
->
ordinal
];
SNOOP_FUN
*
fun
=
&
ret
->
dll
->
funs
[
ret
->
ordinal
];
...
...
dlls/ntdll/resource.c
View file @
38d45cbc
...
@@ -314,7 +314,7 @@ NTSTATUS WINAPI LdrFindResource_U( HMODULE hmod, const LDR_RESOURCE_INFO *info,
...
@@ -314,7 +314,7 @@ NTSTATUS WINAPI LdrFindResource_U( HMODULE hmod, const LDR_RESOURCE_INFO *info,
/* don't penalize other platforms stuff needed on i386 for compatibility */
/* don't penalize other platforms stuff needed on i386 for compatibility */
#ifdef __i386__
#ifdef __i386__
NTSTATUS
WINAPI
access_resource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
NTSTATUS
WINAPI
DECLSPEC_HIDDEN
access_resource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
void
**
ptr
,
ULONG
*
size
)
void
**
ptr
,
ULONG
*
size
)
#else
#else
static
inline
NTSTATUS
access_resource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
static
inline
NTSTATUS
access_resource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
...
...
dlls/ntdll/rtl.c
View file @
38d45cbc
...
@@ -1238,7 +1238,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedPushListSListEx(PSLIST_HEADER list, PSLIST_ENT
...
@@ -1238,7 +1238,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedPushListSListEx(PSLIST_HEADER list, PSLIST_ENT
*/
*/
#ifdef DEFINE_FASTCALL4_ENTRYPOINT
#ifdef DEFINE_FASTCALL4_ENTRYPOINT
DEFINE_FASTCALL4_ENTRYPOINT
(
RtlInterlockedPushListSList
)
DEFINE_FASTCALL4_ENTRYPOINT
(
RtlInterlockedPushListSList
)
PSLIST_ENTRY
WINAPI
__regs_RtlInterlockedPushListSList
(
PSLIST_HEADER
list
,
PSLIST_ENTRY
first
,
PSLIST_ENTRY
WINAPI
DECLSPEC_HIDDEN
__regs_RtlInterlockedPushListSList
(
PSLIST_HEADER
list
,
PSLIST_ENTRY
first
,
PSLIST_ENTRY
last
,
ULONG
count
)
PSLIST_ENTRY
last
,
ULONG
count
)
#else
#else
PSLIST_ENTRY
WINAPI
RtlInterlockedPushListSList
(
PSLIST_HEADER
list
,
PSLIST_ENTRY
first
,
PSLIST_ENTRY
WINAPI
RtlInterlockedPushListSList
(
PSLIST_HEADER
list
,
PSLIST_ENTRY
first
,
...
...
dlls/ntdll/signal_i386.c
View file @
38d45cbc
...
@@ -1467,8 +1467,9 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
...
@@ -1467,8 +1467,9 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
* Note: we use a small assembly wrapper to save the necessary registers
* Note: we use a small assembly wrapper to save the necessary registers
* in case we are fetching the context of the current thread.
* in case we are fetching the context of the current thread.
*/
*/
NTSTATUS
CDECL
__regs_NtGetContextThread
(
DWORD
edi
,
DWORD
esi
,
DWORD
ebx
,
DWORD
eflags
,
NTSTATUS
CDECL
DECLSPEC_HIDDEN
__regs_NtGetContextThread
(
DWORD
edi
,
DWORD
esi
,
DWORD
ebx
,
DWORD
eflags
,
DWORD
ebp
,
DWORD
retaddr
,
HANDLE
handle
,
CONTEXT
*
context
)
DWORD
ebp
,
DWORD
retaddr
,
HANDLE
handle
,
CONTEXT
*
context
)
{
{
NTSTATUS
ret
;
NTSTATUS
ret
;
DWORD
needed_flags
=
context
->
ContextFlags
&
~
CONTEXT_i386
;
DWORD
needed_flags
=
context
->
ContextFlags
&
~
CONTEXT_i386
;
...
@@ -2644,7 +2645,7 @@ void __wine_enter_vm86( CONTEXT *context )
...
@@ -2644,7 +2645,7 @@ void __wine_enter_vm86( CONTEXT *context )
/*******************************************************************
/*******************************************************************
* RtlUnwind (NTDLL.@)
* RtlUnwind (NTDLL.@)
*/
*/
void
WINAPI
__regs_RtlUnwind
(
EXCEPTION_REGISTRATION_RECORD
*
pEndFrame
,
PVOID
targetIp
,
void
WINAPI
DECLSPEC_HIDDEN
__regs_RtlUnwind
(
EXCEPTION_REGISTRATION_RECORD
*
pEndFrame
,
PVOID
targetIp
,
PEXCEPTION_RECORD
pRecord
,
PVOID
retval
,
CONTEXT
*
context
)
PEXCEPTION_RECORD
pRecord
,
PVOID
retval
,
CONTEXT
*
context
)
{
{
EXCEPTION_RECORD
record
;
EXCEPTION_RECORD
record
;
...
@@ -2850,7 +2851,7 @@ __ASM_GLOBAL_FUNC(call_thread_func_wrapper,
...
@@ -2850,7 +2851,7 @@ __ASM_GLOBAL_FUNC(call_thread_func_wrapper,
/***********************************************************************
/***********************************************************************
* call_thread_func
* call_thread_func
*/
*/
void
call_thread_func
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
void
*
frame
)
void
DECLSPEC_HIDDEN
call_thread_func
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
void
*
frame
)
{
{
x86_thread_data
()
->
exit_frame
=
frame
;
x86_thread_data
()
->
exit_frame
=
frame
;
__TRY
__TRY
...
...
dlls/ntdll/signal_x86_64.c
View file @
38d45cbc
...
@@ -4061,7 +4061,7 @@ USHORT WINAPI RtlCaptureStackBackTrace( ULONG skip, ULONG count, PVOID *buffer,
...
@@ -4061,7 +4061,7 @@ USHORT WINAPI RtlCaptureStackBackTrace( ULONG skip, ULONG count, PVOID *buffer,
/***********************************************************************
/***********************************************************************
* call_thread_func
* call_thread_func
*/
*/
void
call_thread_func
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
void
*
frame
)
void
DECLSPEC_HIDDEN
call_thread_func
(
LPTHREAD_START_ROUTINE
entry
,
void
*
arg
,
void
*
frame
)
{
{
amd64_thread_data
()
->
exit_frame
=
frame
;
amd64_thread_data
()
->
exit_frame
=
frame
;
__TRY
__TRY
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment