This is the mail archive of the binutils@sources.redhat.com 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]

Re: libc divdi3 and libgcc


On Fri, May 02, 2003 at 07:39:00AM -0700, H. J. Lu wrote:
> On Fri, May 02, 2003 at 07:42:24PM +0930, Alan Modra wrote:
> > HJ,
> >   I think your 2003-04-27 change broke ld.
> > 
> > Configuring gcc with
> > /src/gcc-3.3/configure --prefix=/usr/local --build=i686-linux \
> >  --host=i686-linux --target=i686-linux --disable-nls --enable-shared \
> >  --enable-languages=c,c++
> > 
> > I see
> > 
> > stage1/xgcc -Bstage1/ -B/usr/local/i686-linux/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H  -o cc1 \
> >         c-parse.o c-lang.o c-pretty-print.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-objc-common.o c-dump.o libcpp.a  main.o libbackend.a   ../libiberty/libiberty.a
> > /lib/libc.so.6(*IND*+0x0): multiple definition of `__divdi3'
> > stage1/libgcc.a(_divdi3.oS)(.text+0x0):/src/gcc-3.3/gcc/libgcc2.c:737: first defined here
> > 
> > __divdi3 in libc is FUNC GLOBAL DEFAULT,
> > in _divdi3.oS it is FUNC GLOBAL HIDDEN
> > 
> 
> I am using the current binutils on gcc gcc-3_2-rhl8-branch and gcc
> mainline. I have no problems. I will check out gcc 3.3.
> 
> 
> H.J.

I have no problem with gcc 3.3 either. But I do have one patch

http://sources.redhat.com/ml/binutils/2003-04/msg00568.html

in my binutils. If you still have this problem, please create a small
testcase. I will look into it.


H.J.


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