This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Interesting issue
- To: law at cygnus dot com
- Subject: Re: Interesting issue
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 14 Oct 1999 15:37:10 -0400
- CC: binutils at sourceware dot cygnus dot com
- References: <32207.939926651@upchuck.cygnus.com>
Date: Thu, 14 Oct 1999 12:44:11 -0600
From: Jeffrey A Law <law@cygnus.com>
One of the outstanding problems is "static linking" on hpux11 really just
means use .a libraries instead of .sl libraries -- we still need to create
dynamic sections & relocs and all the stuff we do for dynamic links.
The problem (of course) is -static for gld means really do a static link,
no .dynamic section or dynamic relocs, etc etc etc.
Actually, it doesn't. As far as I know, -static really just affects
the search path. If you compile a .o with -fpic, ld typically has to
build a procedure linkage table and so forth.
ld should create a .dynamic section if it needs one. Currently it
thinks it needs one if you linked against a shared library.
Ian