diff options
author | Matthias Kraft <Matthias.Kraft@softwareag.com> | 2018-03-19 13:37:46 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2018-03-20 21:33:50 -0400 |
commit | 4af14b7b018750bf3584587068211948924738fb (patch) | |
tree | 5092bda7cccadaedf680b3a3ad85a748f1910be6 /Configurations/10-main.conf | |
parent | d316cdcf6d8d6934663278145fe0a8191e14a8c5 (diff) |
Add dladdr() for AIX
Although it deviates from the actual prototype of DSO_dsobyaddr(), this
is now ISO C compliant and gcc -Wpedantic accepts the code.
Added DATA segment checking to catch ptrgl virtual addresses. Avoid
memleaks with every AIX/dladdr() call. Removed debug-fprintf()s.
Added test case for DSO_dsobyaddr(), which will eventually call dladdr().
Removed unecessary AIX ifdefs again.
The implementation can only lookup function symbols, no data symbols.
Added PIC-flag to aix*-cc build targets.
As AIX is missing a dladdr() implementation it is currently uncertain our
exit()-handlers can still be called when the application exits. After
dlclose() the whole library might have been unloaded already.
Signed-off-by: Matthias Kraft <makr@gmx.eu>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5668)
Diffstat (limited to 'Configurations/10-main.conf')
-rw-r--r-- | Configurations/10-main.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf index a0a9e175e1..72695d5e77 100644 --- a/Configurations/10-main.conf +++ b/Configurations/10-main.conf @@ -1212,6 +1212,7 @@ my %targets = ( perlasm_scheme => "aix32", dso_scheme => "dlfcn", shared_target => "aix-shared", + shared_cflag => "-qpic", shared_ldflag => "-G", shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)", arflags => "-X32 r", @@ -1232,6 +1233,7 @@ my %targets = ( perlasm_scheme => "aix64", dso_scheme => "dlfcn", shared_target => "aix-shared", + shared_cflag => "-qpic", shared_ldflag => "-G", shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)", arflags => "-X64 r", |