This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Put libunwind.a in libgcc_s.so: versioning of_Unwind_*() symbols
On Tue, 2004-04-20 at 22:57, H. J. Lu wrote:
> This patch puts libunwind.a in libgcc_s.so.1. The test result is at
> We can do it on ia64 since PIC is default on ia64.
IA-64 code is PIC by default. However, it is not true that static
library code and shared library code are the same. There are
differences because of the IA-64 ABI, for instance, the rules that say
"own" data can be put in the small data section, but what qualifies as
"own" data is different for shared libraries and static libraries. This
stuff is controlled by the -fpic option. You must use -fpic for all
code that goes into a shared library. Note: -fpic has always meant
compile this code for shared libraries, this is even true on systems
like IA-64 where code is PIC by default. There is no guarantee that
code in libunwind.a was compiled with -fpic. I don't see how this can
work.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com