From 38b29232fd7f45cd69248727378a5654bd97a035 Mon Sep 17 00:00:00 2001 From: zhengxiaojun Date: Wed, 12 Jun 2019 13:22:38 +0800 Subject: libdl/rap: fix RAP file load error. --- cpukit/libdl/rtl-rap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libdl') diff --git a/cpukit/libdl/rtl-rap.c b/cpukit/libdl/rtl-rap.c index 937d48895b..6a07a7519a 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; -- cgit v1.2.3