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


Attachment: 0001-Fixed-comparison-of-ELF-object-names.patch
Description: Binary data

_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to