Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon McVittie
libcapsule
Commits
ad9e4c47
Commit
ad9e4c47
authored
Dec 18, 2017
by
Simon McVittie
Browse files
process_phdr: Make scopes clearer
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
29f2e0a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
capsule/capsule-relocate.c
View file @
ad9e4c47
...
...
@@ -60,13 +60,17 @@ process_phdr (struct dl_phdr_info *info,
int
ret
=
0
;
for
(
int
j
=
0
;
!
ret
&&
(
j
<
info
->
dlpi_phnum
);
j
++
)
{
if
(
info
->
dlpi_phdr
[
j
].
p_type
==
PT_DYNAMIC
)
{
ret
=
process_pt_dynamic
(
info
->
dlpi_phdr
[
j
].
p_vaddr
,
info
->
dlpi_phdr
[
j
].
p_memsz
,
(
void
*
)
info
->
dlpi_addr
,
process_dt_rela
,
process_dt_rel
,
rdata
);
}
}
if
(
ret
==
0
&&
rdata
->
seen
!=
NULL
)
ptr_list_push_addr
(
rdata
->
seen
,
info
->
dlpi_addr
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment