From 73130cae6071638370bf04d965f1e076c9710548 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 10 Dec 2005 00:17:59 +0000 Subject: Do hidden pipe, please check the change in mips (.end __pipe?) --- libc/sysdeps/linux/mips/pipe.S | 13 ++++++++----- libc/sysdeps/linux/mips/pipe.c | 3 ++- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'libc/sysdeps/linux/mips') diff --git a/libc/sysdeps/linux/mips/pipe.S b/libc/sysdeps/linux/mips/pipe.S index c3afae550..1936d7626 100644 --- a/libc/sysdeps/linux/mips/pipe.S +++ b/libc/sysdeps/linux/mips/pipe.S @@ -7,9 +7,12 @@ #include #include - .globl pipe - .ent pipe, 0 -pipe: + .globl pipe + .set pipe,__pipe + .globl __pipe + .hidden __pipe + .ent __pipe, 0 +__pipe: addiu sp,sp,-24 sw a0,16(sp) li v0,__NR_pipe @@ -27,5 +30,5 @@ pipe: 2: addiu sp,sp,24 j ra - .end pipe - .size pipe,.-pipe + .end __pipe + .size __pipe,.-__pipe diff --git a/libc/sysdeps/linux/mips/pipe.c b/libc/sysdeps/linux/mips/pipe.c index 65e335964..fbc73b489 100644 --- a/libc/sysdeps/linux/mips/pipe.c +++ b/libc/sysdeps/linux/mips/pipe.c @@ -6,7 +6,7 @@ #include #include -int pipe(int *fd) +int attribute_hidden __pipe(int *fd) { register long int res __asm__ ("$2"); // v0 register long int res2 __asm__ ("$3"); // v1 @@ -21,3 +21,4 @@ int pipe(int *fd) fd[1] = res2; return(0); } +strong_alias(__pipe,pipe) -- cgit v1.2.3