Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Haun
firmware
Commits
bb21bcaa
Commit
bb21bcaa
authored
Sep 02, 2019
by
Oli
Browse files
l0der: fix alignment request check
parent
f3ae4128
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/l0der/l0der.c
View file @
bb21bcaa
...
...
@@ -545,7 +545,8 @@ _load_pie(int fd, int size, Elf32_Ehdr *hdr, struct l0dable_info *info)
if
(
phdr
.
p_type
==
PT_LOAD
)
{
// Check alignment request.
if
((
phdr
.
p_vaddr
%
phdr
.
p_align
)
!=
0
)
{
if
((
phdr
.
p_offset
%
phdr
.
p_align
)
!=
(
phdr
.
p_vaddr
%
phdr
.
p_align
))
{
LOG_ERR
(
"l0der"
,
"_load_pie: phdr %d alignment too strict"
,
i
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment