This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: Another ARM patch


Those suggest that your linker is too old.  I recommend at least
2.13.2.

I also have some binary compatibility patches which may be hiding the
errors you see.

On Sun, Mar 23, 2003 at 12:18:59AM +0800, Hu, Boris wrote:
> Could you share us your env, configure & compile steps?
> I still met the following problems after applying your 
> two patches. Do I miss sth? thanks.
> 
> arm-linux-gcc -nostdlib -nostartfiles -o /build/glibc-2.3.2/sea/iconv/iconvconfig  -Wl,-dynamic-linker=/tmp/install/lib/ld-linux.so.2   -Wl,-z,combreloc /build/glibc-2.3.2/sea/csu/crt1.o /build/glibc-2.3.2/sea/csu/crti.o `arm-linux-gcc --print-file-name=crtbegin.o` /build/glibc-2.3.2/sea/iconv/iconvconfig.o /build/glibc-2.3.2/sea/iconv/strtab.o /build/glibc-2.3.2/sea/iconv/xmalloc.o  -Wl,-rpath-link=/build/glibc-2.3.2/sea:/build/glibc-2.3.2/sea/math:/build/glibc-2.3.2/sea/elf:/build/glibc-2.3.2/sea/dlfcn:/build/glibc-2.3.2/sea/nss:/build/glibc-2.3.2/sea/nis:/build/glibc-2.3.2/sea/rt:/build/glibc-2.3.2/sea/resolv:/build/glibc-2.3.2/sea/crypt:/build/glibc-2.3.2/sea/linuxthreads /build/glibc-2.3.2/sea/libc.so.6 /build/glibc-2.3.2/sea/libc_nonshared.a -lgcc `arm-linux-gcc --print-file-name=crtend.o` /build/glibc-2.3.2/sea/csu/crtn.o
> /build/glibc-2.3.2/sea/libc.so.6: In function `__data_start':
> /build/glibc-2.3.2/sea/libc.so.6(.data+0x4d4): multiple definition of `__ctype_toupper at GLIBC_2 dot 0'
> /build/glibc-2.3.2/sea/libc.so.6(*IND*+0x0): multiple definition of `_res at GLIBC_2 dot 0'
> /build/glibc-2.3.2/sea/libc.so.6(.bss+0x17c4): first defined here
> /build/glibc-2.3.2/sea/libc.so.6: In function `__stop___libc_freeres_ptrs':
> /build/glibc-2.3.2/sea/libc.so.6(.bss+0xe0): multiple definition of `errno at GLIBC_2 dot 0'
> /build/glibc-2.3.2/sea/libc.so.6(*IND*+0x0): multiple definition of `__ctype32_toupper at GLIBC_2 dot 2'
> /build/glibc-2.3.2/sea/libc.so.6(.data+0x4dc): first defined here
> /build/glibc-2.3.2/sea/libc.so.6: In function `static_buf':
> /build/glibc-2.3.2/sea/libc.so.6(.bss+0x1a08): multiple definition of `h_errno at GLIBC_2 dot 0'
> /build/glibc-2.3.2/sea/libc.so.6: In function `__data_start':
> /build/glibc-2.3.2/sea/libc.so.6(.data+0x4d8): multiple definition of `__ctype32_tolower at GLIBC_2 dot 2'
> /build/glibc-2.3.2/sea/libc.so.6(*IND*+0x0): multiple definition of `_errno at GLIBC_2 dot 0'
> /build/glibc-2.3.2/sea/libc.so.6(.bss+0xe0): first defined here
> /build/glibc-2.3.2/sea/libc.so.6: In function `__data_start':
> /build/glibc-2.3.2/sea/libc.so.6(.data+0x4c8): multiple definition of `__ctype_b at GLIBC_2 dot 0'
> /build/glibc-2.3.2/sea/libc.so.6(*IND*+0x0): multiple definition of `__ctype_tolower at GLIBC_2 dot 0'
> /build/glibc-2.3.2/sea/libc.so.6(.data+0x4d0): first defined here
> /build/glibc-2.3.2/sea/libc.so.6: In function `__data_start':
> /build/glibc-2.3.2/sea/libc.so.6(.data+0x4cc): multiple definition of `__ctype32_b at GLIBC_2 dot 0'
> collect2: ld returned 1 exit status
> make[2]: *** [/build/glibc-2.3.2/sea/iconv/iconvconfig] Error 1
> make[2]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.3.2/iconv'
> make[1]: *** [iconv/others] Error 2
> make[1]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.3.2'
> make: *** [all] Error 2
> 
> 
> > -----Original Message-----
> > From: Daniel Jacobowitz [mailto:drow at mvista dot com]
> > Sent: 2003?3?22? 1:50
> > To: libc-alpha at sources dot redhat dot com
> > Cc: philb at gnu dot org
> > Subject: Another ARM patch
> > 
> > 
> > Turns out I needed another patch too.  socket.S uses 
> > SINGLE_THREAD_P_PIC
> > with reg == r3, instead of the normal reg == lr.  But we added the GOT
> > pointer to LR anyway.  With this fix and the last one, glibc 
> > 2.3.2 appears
> > to work on ARM.
> > 
> > -- 
> > Daniel Jacobowitz
> > MontaVista Software                         Debian GNU/Linux Developer
> > 
> > 2003-03-21  Daniel Jacobowitz  <drow at mvista dot com>
> > 
> > 	* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
> > 	(SINGLE_THREAD_P_PIC): Use "reg" instead of "lr".
> > 
> > --- 
> > libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel
> > .h.orig	2003-03-21 11:17:43.000000000 -0500
> > +++ 
> > libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h	
> > 2003-03-21 11:17:52.000000000 -0500
> > @@ -110,7 +110,7 @@
> >    ldr reg, 2b;						
> > 		\
> >  3:								
> > 	\
> >    add ip, pc, ip;						
> > 	\
> > -  ldr ip, [ip, lr];						
> > 	\
> > +  ldr ip, [ip, reg];						
> > 	\
> >    teq ip, #0;
> >  #   define SINGLE_THREAD_P_INT				
> > 		\
> >    str lr, [sp, $-4]!;					
> > 		\
> > 
> 

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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