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
redox-os
relibc
Merge requests
!268
Ld.so regressions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Ld.so regressions
oddcoder/relibc:ld.so_regressions
into
master
Overview
0
Commits
3
Pipelines
1
Changes
2
Merged
Ahmed Abd El Mawgood
requested to merge
oddcoder/relibc:ld.so_regressions
into
master
4 years ago
Overview
0
Commits
3
Pipelines
1
Changes
2
Expand
This patch fixes bunch of (non related) issues I faced with ld.so while trying to run binutils.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
850dfd97
3 commits,
4 years ago
2 files
+
74
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/ld_so/debug.rs
+
14
−
1
Options
@@ -52,6 +52,16 @@ impl RTLDDebug {
}
return
;
}
pub
fn
insert_first
(
&
mut
self
,
l_addr
:
usize
,
name
:
&
str
,
l_ld
:
usize
)
{
if
self
.r_map
.is_null
()
{
self
.r_map
=
LinkMap
::
new_with_args
(
l_addr
,
name
,
l_ld
);
}
else
{
let
tmp
=
self
.r_map
;
self
.r_map
=
LinkMap
::
new_with_args
(
l_addr
,
name
,
l_ld
);
unsafe
{
(
*
self
.r_map
)
.link
(
&
mut
*
tmp
)
};
}
return
;
}
}
#[repr(C)]
@@ -80,7 +90,10 @@ impl LinkMap {
});
Box
::
into_raw
(
map
)
}
fn
link
(
&
mut
self
,
map
:
&
mut
LinkMap
)
{
map
.l_prev
=
self
as
*
mut
LinkMap
;
self
.l_next
=
map
as
*
mut
LinkMap
;
}
fn
new_with_args
(
l_addr
:
usize
,
name
:
&
str
,
l_ld
:
usize
)
->
*
mut
Self
{
let
map
=
LinkMap
::
new
();
unsafe
{
Loading