This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: __builtin_return_address in dlsym.c
- To: schwidefsky at de dot ibm dot com
- Subject: Re: __builtin_return_address in dlsym.c
- From: Andreas Schwab <schwab at suse dot de>
- Date: Mon, 17 Jul 2000 17:23:53 +0200
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <C125691F.0047ECEF.00@d12mta07.de.ibm.com>
schwidefsky@de.ibm.com writes:
|> What I did to fix the dlsym bug for S/390 was to replace every call to
|> __builtin_return_address(?) by
|> __builtin_extract_return_addr(__builtin_return_address(?)).
|>
|> Now the question: is this safe to do for all architectures ?
On targets that define neither RETURN_ADDR_OFFSET nor MASK_RETURN_ADDR
this is a no-op. From reading the implementation that seems to be exactly
the right thing to do. Could you please send a patch?
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg