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
70a8fca3
Commit
70a8fca3
authored
2 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Use target binutils for renamesyms
parent
de29da40
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
renamesyms.sh
+2
-2
2 additions, 2 deletions
renamesyms.sh
with
2 additions
and
2 deletions
renamesyms.sh
+
2
−
2
View file @
70a8fca3
...
@@ -11,7 +11,7 @@ symbols_file=`mktemp`
...
@@ -11,7 +11,7 @@ symbols_file=`mktemp`
special_syms
=
"__rg_alloc __rg_dealloc __rg_realloc __rg_alloc_zeroed __rg_oom"
special_syms
=
"__rg_alloc __rg_dealloc __rg_realloc __rg_alloc_zeroed __rg_oom"
for
dep
in
`
find
$deps_dir
-type
f
-name
"*.rlib"
`
;
do
for
dep
in
`
find
$deps_dir
-type
f
-name
"*.rlib"
`
;
do
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
"
${
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
done
for
special_sym
in
$special_syms
;
do
for
special_sym
in
$special_syms
;
do
...
@@ -22,6 +22,6 @@ sorted_file=`mktemp`
...
@@ -22,6 +22,6 @@ sorted_file=`mktemp`
sort
-u
"
$symbols_file
"
>
"
$sorted_file
"
sort
-u
"
$symbols_file
"
>
"
$sorted_file
"
rm
-f
"
$symbols_file
"
rm
-f
"
$symbols_file
"
objcopy
--redefine-syms
=
"
$sorted_file
"
"
$target
"
"
${
TARGET
}
-
objcopy
"
--redefine-syms
=
"
$sorted_file
"
"
$target
"
rm
-f
"
$sorted_file
"
rm
-f
"
$sorted_file
"
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