Custome built dladdr() for AIX.
authorMatthias Kraft <matthias.kraft@softwareag.com>
Wed, 7 Mar 2018 00:48:45 +0000 (01:48 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 14 Apr 2018 12:05:42 +0000 (14:05 +0200)
commite4fa7cc3fb9909c6aee411de15a06f918687b8e2
tree7daed87f6cdd59c3384aee129ef149c75ecd7e4c
parentec46830f8a4ce62c0c8ee7677b1eb8e53ee16df1
Custome built dladdr() for AIX.

Implemented a stripped down dladdr()-implementation using AIX' own
loadquery()-function. Following the SGI example in the same code, the
DL_info only has the dli_fname member. As the scope of
dlfcn_pathbyaddr() is the filename, this implementation does not
consider archive members, which can be dlopen()ed in AIX.
Added DATA segment checking to catch ptrgl virtual addresses.

Added test case for DSO_dsobyaddr(), but only for DSO_DLFCN.
Added PIC-flag to aix*-cc build targets.

Signed-off-by: Matthias Kraft <makr@gmx.eu>
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5626)
Configurations/10-main.conf
crypto/dso/dso_dlfcn.c
crypto/init.c
test/recipes/90-test_shlibload.t
test/shlibloadtest.c