This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Excessive link time with 2.16.1


I'm trying to upgrade from binutils 2.15.94.0.2.2 to 2.16.1.  However,
my link time goes up from 12 seconds to 15 minutes!  The link time
increase seems to be peculiar to one application - other link times
don't seem unusual at all.

I'm building a Linux cross compiler.  I'm using gcc-4.1.1.

For the build machine:
[dmlee@hermes ~]$ uname -a
Linux hermes.commstor.crossroads.com 2.6.16-1.2115_FC4smp #1 SMP Mon Jun
5 15:01:20 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

I configure both versions the same way:
CFLAGS="-O2" $(BINUTILS_PATH)/configure \
        --target=i686-linux \
        --prefix=$(INSTALL_PATH) \
        --libdir=$(INSTALL_PATH)/host-lib \
        --enable-64-bit-bfd \
        --disable-nls \
        --disable-multilib    

I configure gcc using:
CFLAGS="-O2" CXXFLAGS="-O2" $(GCC_PATH)/configure \
                --target=i686-linux \
                --prefix=$(INSTALL_PATH) \
                --with-headers=$(INSTALL_PATH)/i686-linux/include \
                --disable-nls \
                --enable-symvers=gnu \
                --enable-threads=posix \
                --enable-__cxa_atexit \
                --enable-languages=c,c++ \
                --enable-clocale=gnu \
                --with-local-prefix=$(INSTALL_PATH)/i686-linux \
                --disable-multilib \
                --enable-debug \
                --enable-debug-flags='-pg'

The app in question is C++ compiled with CXXFLAGS="-O3 -ggdb".

I did a quick run with Oprofile - most of the time is spent in mempcpy.
I've not been able to get much more information through profiling.

Help!
dave
<><

CONFIDENTIAL: This email, including its contents and attachments, if any, are confidential. If the reader of this e-mail is not an intended recipient, you have received this e-mail in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately by return e-mail at [emailaddress@crossroads.com] and permanently delete the copy you received. Copyright and other intellectual property rights in its contents are the sole property of Crossroads Systems, Inc. Email transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of the message which arise as a result of email  transmission.  Although we routinely screen for viruses, addressees should check this email and any attachments for viruses. We make no representation or warranty as to the absence of viruses in this email or any attachments.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]