[rtems commit] libdl/rap: Add the section alloc call after section load was split

Chris Johns chrisj at rtems.org
Mon Feb 18 00:27:58 UTC 2019


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri Feb 15 10:38:41 2019 +1100

libdl/rap: Add the section alloc call after section load was split

Updates #3687

---

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

diff --git a/cpukit/libdl/rtl-rap.c b/cpukit/libdl/rtl-rap.c
index afbc268..937d488 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;
 



More information about the vc mailing list