summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-rap.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-02-15 10:38:41 +1100
committerChris Johns <chrisj@rtems.org>2019-02-15 10:38:41 +1100
commit3ecb207d05a585b34e88ac649be0e4f503fdb290 (patch)
tree17afc98ebf0dc154da1994c5b73c261e1bf37b14 /cpukit/libdl/rtl-rap.c
parentlibdl: Allocator does not unlock and lock memory on loading. (diff)
downloadrtems-3ecb207d05a585b34e88ac649be0e4f503fdb290.tar.bz2
libdl/rap: Add the section alloc call after section load was split
Updates #3687
Diffstat (limited to 'cpukit/libdl/rtl-rap.c')
-rw-r--r--cpukit/libdl/rtl-rap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/libdl/rtl-rap.c b/cpukit/libdl/rtl-rap.c
index afbc268be6..937d48895b 100644
--- a/cpukit/libdl/rtl-rap.c
+++ b/cpukit/libdl/rtl-rap.c
@@ -967,6 +967,12 @@ rtems_rtl_rap_file_load (rtems_rtl_obj* obj, int fd)
/** obj->entry = (void*)(uintptr_t) ehdr.e_entry; */
+ /*
+ * Allocate the sections.
+ */
+ if (!rtems_rtl_obj_alloc_sections (obj, fd, NULL, &rap))
+ return false;
+
if (!rtems_rtl_obj_load_sections (obj, fd, rtems_rtl_rap_loader, &rap))
return false;