Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
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
Service Desk
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
Open Source Software
Zipr Toolchain
Commits
33008495
Commit
33008495
authored
8 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
5087e513
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/elfwrite.cpp
+5
-1
5 additions, 1 deletion
src/elfwrite.cpp
with
5 additions
and
1 deletion
src/elfwrite.cpp
+
5
−
1
View file @
33008495
...
...
@@ -281,7 +281,7 @@ bool ElfWriterImpl<T_Elf_Ehdr,T_Elf_Phdr,T_Elf_Addr,T_Elf_Shdr,T_Elf_Sym, T_Elf_
return
false
;
// this is an uncommon case -- we are typically adding
// segments and so the segment map won't fit on the first page.
// if this assertion hits, email hiser@virginia.edu and attac
k
input pgm,
// if this assertion hits, email hiser@virginia.edu and attac
h your
input pgm,
// then convert this to a return false to avoid assertion until he fixes it;
assert
(
0
);
}
...
...
@@ -351,6 +351,10 @@ bool ElfWriterImpl<T_Elf_Ehdr,T_Elf_Phdr,T_Elf_Addr,T_Elf_Shdr,T_Elf_Sym, T_Elf_
* the auxv array to ld.so. Where ld.so then uses that as an address.
*/
// gap allocate assumes there's space on the first page for the EHdrs. If there's not,
// try pre-allocating.
if
(
page_align
(
min_addr
)
+
sizeof
(
T_Elf_Ehdr
)
>=
min_addr
)
return
false
;
// first, find the first free space that's big enough.
unsigned
int
phdr_size
=
DetermineMaxPhdrSize
();
...
...
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