Some runtime linker bugs
Chris Johns
chrisj at rtems.org
Thu Jul 24 07:12:28 UTC 2014
On 9/04/2014 5:01 pm, Serg Kruglov wrote:
> 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.
>
Fixed. Thanks.
Chris
More information about the users
mailing list