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: [patch] mips + gcc-3.4.0 fails due to unit-at-a-time


Dan Kegel <dank@kegel.com> writes:

> Building glibc on mips with gcc-3.4.0 fails with errors like
>   linuxthreads/crtn.o(.text+0x0): linuxthreads/crtn.S:20: multiple definition of `dummy'
>   ...
>   linuxthreads/crti.o(.init+0x28): linuxthreads/crti.S:58: undefined reference to `i_am_not_a_leaf'
>   ...
> unless I apply the following patch:
>
> --- linuxthreads/sysdeps/unix/sysv/linux/mips/Makefile.old  2004-05-30 18:24:41.000000000 -0700
> +++ linuxthreads/sysdeps/unix/sysv/linux/mips/Makefile      2004-05-30 18:28:03.000000000 -0700
> @@ -1,2 +1,6 @@
>   # pull in __syscall_error routine
>   libpthread-routines += sysdep
> +
> +ifeq ($(subdir),linuxthreads)
> +CFLAGS-pt-initfini.s = $(fno-unit-at-a-time)
> +endif
>
> This was stolen directly from the similar patch in CVS for x86_64.
>
> (I'm actually building glibc-2.3.2 with a few updates from CVS,
> but I did check, and it looks like glibc cvs would need this patch, too.)

Thanks, committed,
Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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