This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

Re: __builtin_return_address in dlsym.c


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

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