[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
-profile
From: |
Mike Castle |
Subject: |
-profile |
Date: |
Fri, 4 May 2001 15:07:29 -0700 |
User-agent: |
Mutt/1.3.6i |
I've noticed that trying to build an app with -profile fails if you try to
link in a shared library. I'm trying to determine if this is an
unsupported configuration, a bug with binutils, a bug with glibc, or if I
just have a broken system some how.
address@hidden:53pm]~(504) cat a.c
int main (void){ return 0; }
address@hidden:53pm]~(505) gcc -profile -lcrypt a.c <-- this goes into an
endless loop in ld
address@hidden:55pm]~(506) gcc -profile -lcrypt_p a.c
1.300u 2.920s 0:21.90 19.2% 0+0k 0+0io 1195pf+0w
address@hidden:56pm]~(507) gcc -profile -static -lcrypt a.c
1.170u 2.740s 0:15.09 25.9% 0+0k 0+0io 1136pf+0w
Linux 2.4.2
glibc 2.2.2 built against 2.4.2
gcc 2.95.3
binutils 2.11, 010423, 2.11.90.0.{5,6,7}
Any suggestions?
mrc
PS:
Oh bloody hell:
address@hidden:03pm]~(513) cat a.cc
int main (void){ return 0; }
address@hidden:03pm]~(512) g++ -profile a.cc
Attaching to program:
/usr/src/binutils/binutils-2.11.90.0.7/ld/.libs/ld-new, Pid 20516
Reading symbols from /usr/lib/libbfd-2.11.90.0.7.so...done.
Loaded symbols for /usr/lib/libbfd-2.11.90.0.7.so
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0x400349d0 in _bfd_generic_link_add_one_symbol (info=0x8080ba0,
abfd=0x84753c0, name=0x8517094 "__libc_internal_tsd_set", flags=8192,
section=0x4006f5c0, value=0,
string=0x8477b8c "__libc_internal_tsd_set@@GLIBC_2.0", copy=false,
collect=false, hashp=0xbffff2f4) at linker.c:1542
1542 action = link_action[(int) row][(int) h->type];
So I'm guessing probably not a libc issue. But just want to verify...
--
Mike Castle Life is like a clock: You can work constantly
address@hidden and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc
We are all of us living in the shadow of Manhattan. -- Watchmen
- -profile,
Mike Castle <=
- Re: -profile, Andreas Jaeger, 2001/05/05
- Re: -profile, Mike Castle, 2001/05/05
- Re: -profile, Andreas Jaeger, 2001/05/05
- Re: -profile, Mike Castle, 2001/05/05
- Re: -profile, Andreas Jaeger, 2001/05/05
- Re: -profile, Mike Castle, 2001/05/05
- Re: -profile, Andreas Jaeger, 2001/05/06
- Re: -profile, Mike Castle, 2001/05/06