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
Commits
a9042abd
Verified
Commit
a9042abd
authored
1 year ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Rename both __rg and __rust allocator symbols
parent
134b89b2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#12902
failed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
renamesyms.sh
+13
-3
13 additions, 3 deletions
renamesyms.sh
with
13 additions
and
3 deletions
renamesyms.sh
+
13
−
3
View file @
a9042abd
#!/bin/sh
#!/bin/
ba
sh
target
=
$1
deps_dir
=
$2
...
...
@@ -8,13 +8,23 @@ if [ -z "$target" ] || [ -z "$deps_dir" ]; then
fi
symbols_file
=
`
mktemp
`
special_syms
=
"__rg_alloc __rg_dealloc __rg_realloc __rg_alloc_zeroed __rg_oom"
special_syms
=(
__rg_alloc
__rg_alloc_zeroed
__rg_dealloc
__rg_oom
__rg_realloc
__rust_alloc
__rust_alloc_zeroed
__rust_dealloc
__rust_realloc
)
for
dep
in
`
find
$deps_dir
-type
f
-name
"*.rlib"
`
;
do
"
${
TARGET
}
-nm"
--format
=
posix
-g
"
$dep
"
2>/dev/null |
sed
's/.*:.*//g'
|
awk
'{if ($2 == "T") print $1}'
|
sed
's/^\(.*\)$/\1 __relibc_\1/g'
>>
$symbols_file
done
for
special_sym
in
$
special_syms
;
do
for
special_sym
in
"
${
special_syms
[@]
}
"
;
do
echo
"
$special_sym
__relibc_
$special_sym
"
>>
$symbols_file
done
...
...
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