Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
steam-runtime-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
steamrt
steam-runtime-tools
Commits
8625845c
Commit
8625845c
authored
7 years ago
by
Vivek Das Mohapatra
Browse files
Options
Downloads
Patches
Plain Diff
per-library dlopen wrapper implementations now possible
parent
15f9355a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!311
Build capsule-capture-libs from a bundled copy of libcapsule
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generate-stublib.sh
+19
-0
19 additions, 0 deletions
generate-stublib.sh
with
19 additions
and
0 deletions
generate-stublib.sh
+
19
−
0
View file @
8625845c
...
...
@@ -30,6 +30,7 @@ proxy_extra=$1; shift;
proxy_src
=
$1
;
shift
;
symbol_file
=
${
proxy_src
%.c
}
.symbols
;
map_file
=
${
proxy_src
%.c
}
.map
;
dlopen_file
=
${
proxy_src
}
.dlopen
;
echo
-n
>
$symbol_file
;
echo
-n
>
$map_file
;
...
...
@@ -76,7 +77,19 @@ do
done
<
$proxy_excluded
;
cat
-
<<
EOF
NULL };
EOF
if
[
-f
${
dlopen_file
}
]
;
then
echo
"// -------------------------------------------------------------"
;
echo
"// start of
${
proxy_src
%.c
}
dlopen wrapper"
;
cat
$dlopen_file
;
echo
"// end of
${
proxy_src
%.c
}
dlopen wrapper"
;
echo
"// -------------------------------------------------------------"
;
else
cat
-
<<
EOF
// -------------------------------------------------------------------------
// start of default capsule dlopen wrapper function section
static void *_dlopen (const char *filename, int flag)
{
if( flag & RTLD_GLOBAL )
...
...
@@ -88,6 +101,12 @@ static void *_dlopen (const char *filename, int flag)
}
return capsule_shim_dlopen( symbol_ns, prefix, exclude, filename, flag );
}
// end of default capsule dlopen wrapper function section
// -------------------------------------------------------------------------
EOF
fi
cat
-
<<
EOF
static void __attribute__ ((constructor)) _capsule_init (void)
{
...
...
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