PATCH: ld/2218: Weak undefined symbol doesn't work properly with PIE
James E Wilson
wilson@specifix.com
Fri Feb 24 13:28:00 GMT 2006
On Mon, 2006-02-20 at 12:09, H. J. Lu wrote:
> I am checking this patch to test weak undefined data. I will
> fix ia64 backend.
> +extern int undef_data (void);
> +int (*ptr_to_data)(void) = undef_data;
Except this testcase doesn't test data. It tests a function. It is
identical to the earlier weakundef.c testcase, with the function name
changed from undef_func to undef_data.
I think you meant to make undef_data a variable instead of a function.
That would make sense.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com
More information about the Binutils
mailing list