[PATCH] RTL: Fixed comparison of ELF object names

Chris Johns chrisj at rtems.org
Sun Aug 31 23:55:04 UTC 2014


On 4/11/2013 1:01 pm, Mohammed Khoory wrote:
> Hi,
>
> While using RTL with ELF files, I noticed that if I load 2 ELF files via
> dlopen(), the first one loads correctly, but the second load call returns
> the same pointer to the first ELF handle. After looking a bit further I
> noticed that the ELF names weren't being compared properly when checking
> whether a particular ELF is already loaded or not. This patch fixes it by
> allowing the program to parse the filename properly before comparing it.
>
> There are many different approaches to fixing this, but with this patch I
> wanted to minimize code redundancy by reusing existing code.  If I should
> take another approach please let me know.
>

I have finally merged this change with a few minor changes.

Chris


More information about the devel mailing list