I have a very strange problem. I build two libraries from one software source: static (using ar) and dynamic (using gcc). After I link my test application with the dynamic library it works ok. But a test application linked with the static library exists with either "segmentation fault" or with "Unhandled fault: alignment exception ... illegal instruction".
Why? I know that there is a bug in my software code, but is there any difference in the memory alignment if a static library used?