illegal text-relocation of function pointer using gfortran on OS X 10.8
Iain Sandoe
iain@codesourcery.com
Mon Jan 20 15:26:00 GMT 2014
On 20 Jan 2014, at 14:04, Dominique Dhumieres wrote:
> AFACT it is another instance where the code emitted by gcc makes the recent
> darwin kinkers unhappy. I have opened pr59888 to track the problem.
>
> According my limited tests you can either ignore the warning or
> silence it with -Wl,-no_pie.
well, it seems actually to be a complaint about putting a location in the .const section.
If I move it to the .const_data section, ld is happy (and a program using the module is happy).
This might be a code-gen issue - I'm cc'd on the bugzilla PR, so it's on my list to look at.
cheers
Iain
More information about the Fortran
mailing list