[Bug target/59888] Darwin linker error "illegal text-relocation" with -shared
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Thu Oct 16 20:02:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59888
--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> do we have a revision # that triggered this behaviour?
> (or has it "always" been there?)
Up to r189986 (2012-07-30) compiling the second code in comment 6 gives the
error
pr59888_3.f90:5.22:
call gee(c_funloc(gee))
1
Error: Parameter 'gee' to 'c_funloc' at (1) must be BIND(C)
After r190090 (2012-08-02) compiling the same code gives
ld: illegal text-relocation to '___foo_MOD_gee' in
/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//ccutec2S.o from 'anon' in
/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//ccutec2S.o for architecture
x86_64
collect2: error: ld returned 1 exit status
Probably
2012-07-31 Tobias Burnus <burnus@net-b.de>
* interface.c (gfc_procedure_use): Return gfc_try instead of void.
* gfortran.h (gfc_procedure_use): Update prototype.
* resolve.c (gfc_iso_c_func_interface): Allow noninteroperable
procedures for c_funloc for TS29113.
* (gfc_iso_c_sub_interface): Ditto for c_f_procpointer. Add
diagnostic for c_ptr vs. c_funptr for c_f_(proc)pointer.
More information about the Gcc-bugs
mailing list