Some runtime linker bugs

Serg Kruglov skruglov at nm.ru
Wed Apr 9 07:01:49 UTC 2014


Sorry, I in prev. post mistake 
Correct patch is:
in function rtems_rtl_rap_load_symbols
have:
free (obj->global_table);
obj->global_table = NULL;
obj->global_syms = 0;
obj->global_size = 0;
rtems_rtl_set_error (EINVAL,
                     "duplicate global symbol: %s", rap->strtab + name);

should be:
rtems_rtl_set_error (EINVAL,
                     "duplicate global symbol: %s", rap->strtab + name);

free (obj->global_table);
obj->global_table = NULL;
obj->global_syms = 0;
obj->global_size = 0;

As after free (obj->global_table) value rap->strtab  is incorrected.

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140409/899a9d9a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wlEmoticon-sadsmile[1].png
Type: image/png
Size: 1090 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20140409/899a9d9a/attachment-0001.png>


More information about the users mailing list