glibc-2.2.5 patch for sparc

Matthew Burgess ca9mbu at eos.sunderland.ac.uk
Wed Oct 2 14:24:38 PDT 2002


""IvanK."" <chepati at yahoo.com> wrote

> Hi guys,
>
> I've been meaning to post this for a long time, but with the upcoming 4.0
I
> figure now's a good time.
>
> If you compile lfs on a sparc, you'll need this patch.  If you don't use
it,
> you'll get plenty of assembler errors.  I don't think too many people
(heck,
> beside me and one more chap) are building lfs on sparcs, so I guess the
> importance of this patch is rather limited.  However, it's absolutely
needed
> for sparc.
>
> How do you guys handle non-x86 patches?  Is there a repository or some
such?
>
> Last I used it was when compiling cvs from Sep 12 with gcc-3.2,
glibc-2.2.5
> and binutils-2.13.
>
> Thanks,
> IvanK.
>
> here's the patch:
>
> diff -Naur glibc-2.2.5/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
> glibc-2.2.5/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
> --- glibc-2.2.5/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h      Thu
Aug 23
> 18:51:33 2001
> +++ glibc-2.2.5/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h Thu Apr 11
> 22:30:51 2002
> @@ -1,4 +1,4 @@
> -/* Copyright (C) 1997 Free Software Foundation, Inc.
> +/* Copyright (C) 1997, 2002 Free Software Foundation, Inc.
>     This file is part of the GNU C Library.
>     Contributed by Miguel de Icaza <miguel at gnu.ai.mit.edu>, January 1997.
>
> @@ -48,7 +48,7 @@
>  #define END(name) \
>         .size name, . - name
>
> -#define LOC(name)  . ## L ## name
> +#define LOC(name)  .L##name
>
>  #ifdef PIC
>  #define SYSCALL_ERROR_HANDLER
>

Well, it only seems to affect sparc specific files so I can't see it
affecting us x86 guys at all if it were to be included in the book.  However
the best bet would probably be to include such stuff in the
how-to-compile-for-sparc hint (does this exist yet?  If not then you may
want to consider writing one!).

Just my 2 pence worth,

Matt


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list