libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -dlopen self and optimizing away symbols


From: Gary V. Vaughan
Subject: Re: -dlopen self and optimizing away symbols
Date: Thu, 17 Aug 2006 10:41:01 +0100

Hi Albert,

On 16 Aug 2006, at 23:39, Albert Chin wrote:
  cc -z +O2 +Onofltacc +Olit=all +Oentrysched +DD64 +Odataprefetch \
  +Onolimit +We901 -Wl,+b \
-Wl,/opt/TWWfsw/openldap2325lib/hpux64:/opt/TWWfsw/libdb42/lib/ hpux64:/opt/TWWfsw/libsasl21/lib/hpux64:/opt/TWWfsw/libopenssl097/ lib/hpux64 \
  .libs/slapdS.o -o .libs/slapd main.o globals.o bconfig.o config.o \
  daemon.o ...

Unfortunately, the HP-UX 11.23/IA compiler, when generating
.libs/slapd, will optimize _away_ symbols that are not used by any of
the object files being linked

Is this because of the optimisation flags? Or does HP cc strip unused symbols
by default (which would constitute a bug)?

Cheers,
        Gary.
--
Gary V. Vaughan ())_. gary@ {lilith.warpmail.net,gnu.org},address@hidden
Research Scientist   ( '/   http://blog.azazil.net
GNU Hacker           / )=   http://www.gnu.org/software/{libtool,m4}
Technical Author   `(_~)_   http://sources.redhat.com/autobook




Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]