This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[GOLD] [PATCH] Casting plugin onload entry point
- From: Viktor Kutuzov <vkutuzov at accesssoftek dot com>
- To: <binutils at sourceware dot org>
- Date: Wed, 9 Dec 2009 17:58:06 -0800
- Subject: [GOLD] [PATCH] Casting plugin onload entry point
- References: <6AE1604EE3EC5F4296C096518C6B77EEE56FBF79@mail.accesssoftek.com> <6AE1604EE3EC5F4296C096518C6B77EEE56FBF7F@mail.accesssoftek.com> <6AE1604EE3EC5F4296C096518C6B77EEED7DBE12@mail.accesssoftek.com> <6AE1604EE3EC5F4296C096518C6B77EEED7DBE18@mail.accesssoftek.com>
Hello everyone,
Depending on the version of the compiler, the way how plugin onload entry point is casted may give a compilation error: "ISO C++
forbids casting between pointer-to-function and pointer-to-object".
The attached patch fixes this issue by using the workaround introduced by the POSIX.1-2003.
Thanks,
Viktor
Attachment:
binutils-gold-plugin-onload-cast.diff
Description: Binary data