[rtems commit] libdl/rap: fix RAP file load error.

Chris Johns chrisj at rtems.org
Wed Jun 12 07:04:08 UTC 2019


Module:    rtems
Branch:    master
Commit:    38b29232fd7f45cd69248727378a5654bd97a035
Changeset: http://git.rtems.org/rtems/commit/?id=38b29232fd7f45cd69248727378a5654bd97a035

Author:    zhengxiaojun <jameszxj at gmail.com>
Date:      Wed Jun 12 13:22:38 2019 +0800

libdl/rap: fix RAP file load error.

---

 cpukit/libdl/rtl-rap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/libdl/rtl-rap.c b/cpukit/libdl/rtl-rap.c
index 937d488..6a07a75 100644
--- a/cpukit/libdl/rtl-rap.c
+++ b/cpukit/libdl/rtl-rap.c
@@ -409,8 +409,8 @@ rtems_rtl_rap_relocate (rtems_rtl_rap* rap, rtems_rtl_obj* obj)
                   r, (int) type, offset,
                   symname, (uintmax_t) symtype, (uintmax_t) symvalue);
 
-        if (!rtems_rtl_elf_relocate_rel (obj, &rel, targetsect,
-                                         symname, symtype, symvalue))
+        if (rtems_rtl_elf_relocate_rel (obj, &rel, targetsect,
+                                         symname, symtype, symvalue) == rtems_rtl_elf_rel_failure)
         {
           free (symname_buffer);
           return false;



More information about the vc mailing list