[PATCH] RTL: Fixed comparison of ELF object names

Mohammed Khoory mkhoory at eiast.ae
Mon Nov 4 02:01:26 UTC 2013


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.

Regards,
Mohammed Khoory


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixed-comparison-of-ELF-object-names.patch
Type: application/octet-stream
Size: 5441 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20131104/dbf6ae23/attachment.obj>


More information about the devel mailing list