Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fleur
firmware
Commits
39411101
Commit
39411101
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
chore(l0der): Fix sign-compare warnings
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
638ee993
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
epicardium/l0der/l0der.c
+4
-4
4 additions, 4 deletions
epicardium/l0der/l0der.c
with
4 additions
and
4 deletions
epicardium/l0der/l0der.c
+
4
−
4
View file @
39411101
...
...
@@ -119,7 +119,7 @@ static int _seek_and_read(int fd, uint32_t address, void *data, size_t count)
return
res
;
}
if
((
res
=
epic_file_read
(
fd
,
data
,
count
))
!=
count
)
{
if
((
size_t
)(
res
=
epic_file_read
(
fd
,
data
,
count
))
!=
count
)
{
LOG_ERR
(
"l0der"
,
"_seek_and_read: could not read: %d"
,
res
);
return
res
;
}
...
...
@@ -366,7 +366,7 @@ static int _parse_dynamic_symbols(
return
res
;
}
for
(
int
j
=
0
;
j
<
sym_count
;
j
++
)
{
for
(
u
int
32_t
j
=
0
;
j
<
sym_count
;
j
++
)
{
if
((
res
=
epic_file_read
(
fd
,
&
sym
,
sizeof
(
Elf32_Sym
)))
!=
sizeof
(
Elf32_Sym
))
{
...
...
@@ -447,7 +447,7 @@ static int _run_relocations(
return
res
;
}
for
(
int
j
=
0
;
j
<
reloc_count
;
j
++
)
{
for
(
u
int
32_t
j
=
0
;
j
<
reloc_count
;
j
++
)
{
if
((
res
=
epic_file_read
(
fd
,
&
rel
,
sizeof
(
Elf32_Rel
)))
!=
sizeof
(
Elf32_Rel
))
{
...
...
@@ -464,7 +464,7 @@ static int _run_relocations(
// (ie., do not resolve relocation - they default to a safe NULL)
uint8_t
skip
=
0
;
if
(
sym
!=
0
)
{
for
(
int
k
=
0
;
k
<
li
->
weak_symbol_count
;
for
(
u
int
32_t
k
=
0
;
k
<
li
->
weak_symbol_count
;
k
++
)
{
if
(
li
->
weak_symbols
[
k
]
==
sym
)
{
skip
=
1
;
...
...
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