diff options
author | Chris Johns <chrisj@rtems.org> | 2012-05-28 08:23:58 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-05-28 08:23:58 +1000 |
commit | 9f020ad54f678f6f2e271b3cb9153191f407f746 (patch) | |
tree | f05ed68071f077bf45c781cef145426137ee36b4 /rtl-sym.c | |
parent | fb0c9b27451d420175a76a0eef733792317d225f (diff) |
Rework the allocator.
The allocator now supports symbols, externals, objects and various memory
attributes when allocating. Provide a clear on allocation, is calloc.
Make the strings in the object files object allocations and not
indirect pointers. This is due to symbols and symbol strings being
allocated in a single blocks per object file. Only externals will be
indirect allocations.
Some trace output changes adding 'rtl'.
Diffstat (limited to 'rtl-sym.c')
-rw-r--r-- | rtl-sym.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -125,7 +125,8 @@ rtems_rtl_symbol_global_add (rtems_rtl_obj_t* obj, printf ("rtl: global symbol add: %zi\n", count); obj->global_size = count * sizeof (rtems_rtl_obj_sym_t); - obj->global_table = rtems_rtl_alloc_new (RTEMS_RTL_ALLOC_SYMBOL, obj->global_size); + obj->global_table = rtems_rtl_alloc_new (RTEMS_RTL_ALLOC_SYMBOL, + obj->global_size, true); if (!obj->global_table) { obj->global_size = 0; |