On 01/20/2013 07:15 PM, Ian Lance Taylor wrote:
On Sun, Jan 20, 2013 at 3:42 AM, Toon Moene<toon@xxxxxxxxx> wrote:
Would placing them in a table like this cause that problem ?
static funcs_t Func[] = {
/* Compile-time evaluable functions */
"sin", 1, (void *)sin, NULL, 1, 0,
"cos", 1, (void *)cos, NULL, 1, 0,
"tan", 1, (void *)tan, NULL, 1, 0,
Yes, that would count as a reference to an IFUNC function other than
calling it. That code needs to be compiled with -fpie (or -fpic).
Thanks - we will either compile this with -fpi{c|e} or work around the
requirement to build the table.
Thanks for your insight on this issue !
--
Toon Moene - e-mail: toon@xxxxxxxxx - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news