__builtin_return_address in dlsym.c

Andreas Schwab schwab@suse.de
Mon Jul 17 08:23:00 GMT 2000


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


More information about the Libc-alpha mailing list