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

Fw: Undefined references to __udivsi3 and __umodsi3 (arm-elf)



> A little bit confused here.
> 
> We're trying to avoid the standard system startup
> files and library (libgcc.a), that's why we chooses
> to use "newlib". We flagged gcc with "-nostdlib"
> to avoid linking in of libgcc.a.
> 
> You mean we still need libgcc.a despite of already
> linking in newlib libraries ?
> 
> 
> >
> >
> > Peter Tiang wrote:
> > >
> > > I'm having trouble with undefined references
> > > to __udivsi3 and __umodsi3.
> > >
> > > My target is arm-elf and my linker command line is
> > >
> > > $(LD) --gc-section -Ttext 0x01300000 -o $@ $^ $(LIBC)/crt0.o
> $(LIBC)/libc.a
> > > $(LIBC)/libm.a
> > >
> > > Anything I'm missing here ?
> >
> > libgcc.a?
> >
> > --
> > Joel Sherrill, Ph.D.             Director of Research & Development
> > joel@OARcorp.com                 On-Line Applications Research
> > Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> > Support Available                (256) 722-9985
> >
> 


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