Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
4a4e641b
Verified
Commit
4a4e641b
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Update pthreads-emb
parent
756a0d2e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pthreads-emb
+1
-1
1 addition, 1 deletion
pthreads-emb
src/start.rs
+0
-10
0 additions, 10 deletions
src/start.rs
with
1 addition
and
11 deletions
pthreads-emb
@
4b87ab0d
Compare
6720dfdc
...
4b87ab0d
Subproject commit
6720dfdc95246f85aeb1e867e0105d4eb43ad759
Subproject commit
4b87ab0dcdbc58910b9683e3ce561fccea05386d
This diff is collapsed.
Click to expand it.
src/start.rs
+
0
−
10
View file @
4a4e641b
...
@@ -44,13 +44,6 @@ unsafe fn copy_string_array(array: *const *const c_char, len: usize) -> Vec<*mut
...
@@ -44,13 +44,6 @@ unsafe fn copy_string_array(array: *const *const c_char, len: usize) -> Vec<*mut
vec
vec
}
}
// In the case that pthread is not linked, pthread_init can be replaced
#[linkage
=
"weak"
]
#[no_mangle]
extern
"C"
fn
pthread_init
()
->
c_int
{
0
}
#[inline(never)]
#[inline(never)]
#[no_mangle]
#[no_mangle]
pub
unsafe
extern
"C"
fn
relibc_start
(
sp
:
&
'static
Stack
)
->
!
{
pub
unsafe
extern
"C"
fn
relibc_start
(
sp
:
&
'static
Stack
)
->
!
{
...
@@ -85,9 +78,6 @@ pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! {
...
@@ -85,9 +78,6 @@ pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! {
stdio
::
stdout
=
stdio
::
default_stdout
.get
();
stdio
::
stdout
=
stdio
::
default_stdout
.get
();
stdio
::
stderr
=
stdio
::
default_stderr
.get
();
stdio
::
stderr
=
stdio
::
default_stderr
.get
();
// Initialize pthreads
pthread_init
();
// Call init section
// Call init section
_init
();
_init
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment