This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] HPPA/IA64 : Don't use broken DL_AUTO_FUNCTION_ADDRESS()
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org, Guy Martin <gmsoft at tuxicoman dot be>
- Date: Sat, 19 Oct 2013 10:37:03 +0200
- Subject: Re: [PATCH] HPPA/IA64 : Don't use broken DL_AUTO_FUNCTION_ADDRESS()
- Authentication-results: sourceware.org; auth=none
- References: <20131017214754 dot 00555bf3 at dellete> <871u3ina5t dot fsf at igel dot home> <b42704e5527fa00f6e69cacd0d62c19d at tuxicoman dot be> <201310190206 dot 07506 dot vapier at gentoo dot org>
Mike Frysinger <vapier@gentoo.org> writes:
> how about returning a struct fdesc instead ? sizeof(Elf(Addr)) ==
> sizeof(unsigned long), and typeof(d_ptr) is already Elf(Addr).
I think the correct fix is to replace DL_DT_{INIT,FINI}_ADDRESS by
macros that make the call themselves.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."