<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
15px; clear: both;">Dear openssl developers,</p>
I modified openssl library to use my own static library which has
global variables.<br>
When I run make then I can see some errors like<span
class="Apple-converted-space"> </span><code style="margin: 0px;
padding: 1px 5px; border: 0px; font-size: 13px; font-family:
Consolas, Menlo, Monaco, "Lucida Console",
"Liberation Mono", "DejaVu Sans Mono",
"Bitstream Vera Sans Mono", "Courier New",
monospace, sans-serif; background-color: rgb(239, 240, 241);
white-space: pre-wrap;">./libcrypto.so: undefined reference to
my_own_function</code><span class="Apple-converted-space"> </span>and
making static libraries is failed, but the shared libraries are
compiled successfully.<br>
Finally, there is no issue to use the compiled shared library in my
another application.<br>
The problem occurs when I link my static library to resolve the
undefined error. The shared libraries and static libraries are
compiled successfully, but when I use the shared libraries in my
application, addresses of the global variables are different.<br>
For example, if the address of global variable 'A' in my application
is 0x1234 then the address of the 'A' in the shared library is
0xABCD.<br>
Why does this situation happen? Thanks for your helps in advance.
</body>
</html>