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
6a12d93b
Commit
6a12d93b
authored
May 14, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Handle already relocated .dynamic entries.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49139
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
adb52247
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
loader.c
dlls/ntdll/loader.c
+4
-2
No files found.
dlls/ntdll/loader.c
View file @
6a12d93b
...
...
@@ -1340,12 +1340,14 @@ static void call_constructors( WINE_MODREF *wm )
if
(
dlinfo
(
wm
->
so_handle
,
RTLD_DI_LINKMAP
,
&
map
)
==
-
1
)
return
;
for
(
dyn
=
map
->
l_ld
;
dyn
->
d_tag
;
dyn
++
)
{
#define GET_PTR(base,ptr) ((ptr) > (base) ? (ptr) : (base) + (ptr))
switch
(
dyn
->
d_tag
)
{
case
0x60009990
:
init_array
=
(
void
*
)
((
char
*
)
map
->
l_addr
+
dyn
->
d_un
.
d_val
);
break
;
case
0x60009990
:
init_array
=
(
void
*
)
GET_PTR
(
map
->
l_addr
,
dyn
->
d_un
.
d_ptr
);
break
;
case
0x60009991
:
init_arraysz
=
dyn
->
d_un
.
d_val
;
break
;
case
0x60009992
:
init_func
=
(
void
*
)
((
char
*
)
map
->
l_addr
+
dyn
->
d_un
.
d_val
);
break
;
case
0x60009992
:
init_func
=
(
void
*
)
GET_PTR
(
map
->
l_addr
,
dyn
->
d_un
.
d_ptr
);
break
;
}
#undef GET_PTR
}
TRACE
(
"%s: got init_func %p init_array %p %lu
\n
"
,
debugstr_us
(
&
wm
->
ldr
.
BaseDllName
),
...
...
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