mirror of
https://github.com/apache/nuttx.git
synced 2026-09-02 15:12:59 +00:00
Update libs/libc/modlib/modlib_bind.c
u are right Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
15142a8b10
commit
c7badac601
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ static int modlib_relocate(FAR struct module_s *modp,
|
|||
/* Calculate the relocation address. */
|
||||
|
||||
if (rel->r_offset ||
|
||||
rel->r_offset > dstsec->sh_size - sizeof(uint32_t))
|
||||
rel->r_offset + sizeof(uint32_t) > dstsec->sh_size)
|
||||
{
|
||||
berr("ERROR: Section %d reloc %d: "
|
||||
"Relocation address out of range, "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue