This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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] Fix glibc sparc build (dl-*brk stuff)


Jakub Jelinek <jakub@redhat.com> writes:

> Hi!
>
> The following patch fixes build on sparc-linux. Without it, the first
> dl-brk routine found in the hierarchy is unix/sparc/dl-brk.S which will
> source unix/sparc/brk.S, which doesn't work on Linux (it
> is a SunOS syscall).
>
> 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
>
> 	* sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
> 	* sysdeps/unix/sysv/linux/dl-brk.c: ...here.

The two lines above and below are the same - as is in your patch.

> 	* sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
> 	* sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.

Can you send a clean one, please?

thanks,
Andreas

>
> ---libc/sysdeps/unix/sysv/linux/i386/dl-brk.c.jj	Sun Apr  7 17:54:40 2002
> +++libc/sysdeps/unix/sysv/linux/i386/dl-brk.c	Sun Jun  9 21:19:10 2002
> @@ -1,5 +0,0 @@
> -/* We can use the normal code but we also know the __curbrk is not exported
> -   from ld.so.  */
> -extern void *__curbrk attribute_hidden;
> -
> -#include <brk.c>
> ---libc/sysdeps/unix/sysv/linux/i386/dl-sbrk.c.jj	Sun Apr  7 17:54:40 2002
> +++libc/sysdeps/unix/sysv/linux/i386/dl-sbrk.c	Sun Jun  9 21:19:10 2002
> @@ -1,5 +0,0 @@
> -/* We can use the normal code but we also know the __curbrk is not exported
> -   from ld.so.  */
> -extern void *__curbrk attribute_hidden;
> -
> -#include <sbrk.c>
> ---libc/sysdeps/unix/sysv/linux/dl-brk.c.jj	Sun Jun  9 21:19:23 2002
> +++libc/sysdeps/unix/sysv/linux/dl-brk.c	Sun Apr  7 17:54:40 2002
> @@ -0,0 +1,5 @@
> +/* We can use the normal code but we also know the __curbrk is not exported
> +   from ld.so.  */
> +extern void *__curbrk attribute_hidden;
> +
> +#include <brk.c>
> ---libc/sysdeps/unix/sysv/linux/dl-sbrk.c.jj	Sun Jun  9 21:19:23 2002
> +++libc/sysdeps/unix/sysv/linux/dl-sbrk.c	Sun Apr  7 17:54:40 2002
> @@ -0,0 +1,5 @@
> +/* We can use the normal code but we also know the __curbrk is not exported
> +   from ld.so.  */
> +extern void *__curbrk attribute_hidden;
> +
> +#include <sbrk.c>
>
> 	Jakub
>

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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