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
96785572
Commit
96785572
authored
7 years ago
by
Vivek Das Mohapatra
Browse files
Options
Downloads
Patches
Plain Diff
capsule-dlmopen.c: explain what some of the ELF parameters mean
parent
47a3b768
No related branches found
No related tags found
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
capsule/capsule-dlmopen.c
+4
-0
4 additions, 0 deletions
capsule/capsule-dlmopen.c
with
4 additions
and
0 deletions
capsule/capsule-dlmopen.c
+
4
−
0
View file @
96785572
...
@@ -1320,6 +1320,10 @@ wrap (const char *name,
...
@@ -1320,6 +1320,10 @@ wrap (const char *name,
// well formed entries into the mmap()ed DSO region.
// well formed entries into the mmap()ed DSO region.
// (tbf if the linker is putting duff entries here we're boned anyway)
// (tbf if the linker is putting duff entries here we're boned anyway)
//
//
// dyn is the address of the dynamic section
// base is the start of the program header in memory
// start should be the offset from the program header to its dyn section
//
// the utility functions expect an upper bound though so set that to
// the utility functions expect an upper bound though so set that to
// something suitably large:
// something suitably large:
size_t
size
=
SIZE_MAX
-
base
-
(
ElfW
(
Addr
))
dyn
;
size_t
size
=
SIZE_MAX
-
base
-
(
ElfW
(
Addr
))
dyn
;
...
...
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