On Thu, Apr 22, 2010 at 5:08 PM, Jack Howarth <howa...@bromo.med.uc.edu> wrote:
> On Thu, Apr 22, 2010 at 07:38:04AM -0700, Ian Lance Taylor wrote:
>> Jack Howarth <howa...@bromo.med.uc.edu> writes:
>>
>> >    Looking at the results of the tests executed
>> > by plugin.exp on x86_64 Fedora 10, I don't see
>> > any evidence that -rdynamic is ever used.
>>
>> On GNU/Linux, in order to use plugins, it's necessary to use -rdynamic
>> when linking cc1.  Otherwise plugins will not be able to access many
>> functions and variables in cc1.
>>
>> Darwin has a somewhat different model; I don't know if anything
>> similar is required there.
>>
>> Ian
>
> Ian,
>   Since the proposed patch on darwin (using 'nm -g') reports
> to configure that -rdynamic is unnecessary on darwin and the
> resulting gcc build generates code via dragon-egg, I believe
> we can infer that this isn't an issue on darwin. So I guess
> my current patch should be best...
>
> http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01345.html
>
> Of course, it should be adjusted later for Solaris and
> Irix once they sort out which set of devtools and utilities
> will be the baseline requirement of compiling plugin support
> (since the system compilers may not provide -rdynamic and
> objdump may not be present).

If plugins work on Solaris and Irix currently then we shouldn't
regress for them.

Richard.

>          Jack
>
>
>

Reply via email to