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
9a1fab59
Commit
9a1fab59
authored
Mar 27, 2015
by
André Hentschel
Committed by
Alexandre Julliard
Mar 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: Run checks also on ARM Linux.
parent
07630a9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
main.c
loader/main.c
+12
-2
No files found.
loader/main.c
View file @
9a1fab59
...
@@ -109,8 +109,9 @@ static void check_command_line( int argc, char *argv[] )
...
@@ -109,8 +109,9 @@ static void check_command_line( int argc, char *argv[] )
}
}
#if defined(__linux__) &&
defined(__i386__
)
#if defined(__linux__) &&
(defined(__i386__) || defined(__arm__)
)
#ifdef __i386__
/* separate thread to check for NPTL and TLS features */
/* separate thread to check for NPTL and TLS features */
static
void
*
needs_pthread
(
void
*
arg
)
static
void
*
needs_pthread
(
void
*
arg
)
{
{
...
@@ -140,6 +141,11 @@ static void check_threading(void)
...
@@ -140,6 +141,11 @@ static void check_threading(void)
pthread_join
(
id
,
&
ret
);
pthread_join
(
id
,
&
ret
);
if
(
!
ret
)
exit
(
1
);
if
(
!
ret
)
exit
(
1
);
}
}
#else
static
void
check_threading
(
void
)
{
}
#endif
static
void
check_vmsplit
(
void
*
stack
)
static
void
check_vmsplit
(
void
*
stack
)
{
{
...
@@ -171,7 +177,11 @@ static int pre_exec(void)
...
@@ -171,7 +177,11 @@ static int pre_exec(void)
check_threading
();
check_threading
();
check_vmsplit
(
&
temp
);
check_vmsplit
(
&
temp
);
set_max_limit
(
RLIMIT_AS
);
set_max_limit
(
RLIMIT_AS
);
return
1
;
#ifdef __i386__
return
1
;
/* we have a preloader on x86 */
#else
return
0
;
#endif
}
}
#elif defined(__linux__) && defined(__x86_64__)
#elif defined(__linux__) && defined(__x86_64__)
...
...
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