This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: ld/2218: Weak undefined symbol doesn't work properly with PIE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]