summaryrefslogtreecommitdiff
path: root/cpukit/libdl/rtl-rap.c
diff options
context:
space:
mode:
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;