mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Update.
2003-02-10 Ulrich Drepper <drepper@redhat.com> * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and _BSD_SOURCE to compiler. * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings. Patches by Alan Modra.
This commit is contained in:
parent
d9dd121ebe
commit
e5ffa64a70
@ -1,3 +1,10 @@
|
|||||||
|
2003-02-10 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
|
||||||
|
_BSD_SOURCE to compiler.
|
||||||
|
* elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
|
||||||
|
Patches by Alan Modra.
|
||||||
|
|
||||||
2003-02-08 Ulrich Drepper <drepper@redhat.com>
|
2003-02-08 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* io/ftwtest.c: Get current working directory before and after the
|
* io/ftwtest.c: Get current working directory before and after the
|
||||||
|
@ -601,7 +601,7 @@ $(objpfx)tst-array4.out: $(objpfx)tst-array4 $(objpfx)tst-array2dep.so
|
|||||||
$< > $@
|
$< > $@
|
||||||
cmp $@ tst-array4.exp > /dev/null
|
cmp $@ tst-array4.exp > /dev/null
|
||||||
|
|
||||||
check-textrel-CFLAGS = -O
|
check-textrel-CFLAGS = -O -Wall -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
|
||||||
$(objpfx)check-textrel: check-textrel.c
|
$(objpfx)check-textrel: check-textrel.c
|
||||||
$(native-compile)
|
$(native-compile)
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Check for text relocations in DSOs.
|
/* Check for text relocations in DSOs.
|
||||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contribute by Ulrich Drepper <drepper@redhat.com>. 2002.
|
Contribute by Ulrich Drepper <drepper@redhat.com>. 2002.
|
||||||
|
|
||||||
@ -38,8 +38,10 @@
|
|||||||
# define __E(name, bits) Elf##bits##_##name
|
# define __E(name, bits) Elf##bits##_##name
|
||||||
# define SWAP(val) \
|
# define SWAP(val) \
|
||||||
({ __typeof (val) __res; \
|
({ __typeof (val) __res; \
|
||||||
if ((ehdr.e_ident[EI_DATA] == ELFDATA2MSB && BYTE_ORDER == LITTLE_ENDIAN \
|
if (((ehdr.e_ident[EI_DATA] == ELFDATA2MSB \
|
||||||
|| ehdr.e_ident[EI_DATA] == ELFDATA2LSB && BYTE_ORDER == BIG_ENDIAN)\
|
&& BYTE_ORDER == LITTLE_ENDIAN) \
|
||||||
|
|| (ehdr.e_ident[EI_DATA] == ELFDATA2LSB \
|
||||||
|
&& BYTE_ORDER == BIG_ENDIAN)) \
|
||||||
&& sizeof (val) != 1) \
|
&& sizeof (val) != 1) \
|
||||||
{ \
|
{ \
|
||||||
if (sizeof (val) == 2) \
|
if (sizeof (val) == 2) \
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2003-02-10 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/alpha/vfork.S (__vfork): Check
|
||||||
|
pthread_create existance, not __pthread_fork.
|
||||||
|
* sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/m68k/vfork.S (__vfork): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
|
||||||
|
Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
|
||||||
|
Add .weak pthread_create.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Fix a typo.
|
||||||
|
Check pthread_create existance, not __pthread_fork.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Branch to
|
||||||
|
__fork whenever libpthread.so is loaded.
|
||||||
|
|
||||||
2003-02-09 Andreas Jaeger <aj@suse.de>
|
2003-02-09 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h:
|
* sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h:
|
||||||
|
@ -31,8 +31,8 @@ __LABEL(__vfork)
|
|||||||
ldq t0, __libc_pthread_functions(gp) !gprel
|
ldq t0, __libc_pthread_functions(gp) !gprel
|
||||||
bne t0, HIDDEN_JUMPTARGET (__fork) !samegp
|
bne t0, HIDDEN_JUMPTARGET (__fork) !samegp
|
||||||
#else
|
#else
|
||||||
.weak __pthread_fork
|
.weak pthread_create
|
||||||
ldq t0, __pthread_fork(gp) !literal
|
ldq t0, pthread_create(gp) !literal
|
||||||
bne t0, $do_fork
|
bne t0, $do_fork
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -40,8 +40,8 @@ ENTRY (__vfork)
|
|||||||
addl $_GLOBAL_OFFSET_TABLE_, %ecx
|
addl $_GLOBAL_OFFSET_TABLE_, %ecx
|
||||||
cmpl $0, __libc_pthread_functions@GOTOFF(%ecx)
|
cmpl $0, __libc_pthread_functions@GOTOFF(%ecx)
|
||||||
# else
|
# else
|
||||||
.weak __pthread_fork
|
.weak pthread_create
|
||||||
movl $__pthread_fork, %eax
|
movl $pthread_create, %eax
|
||||||
testl %eax, %eax
|
testl %eax, %eax
|
||||||
# endif
|
# endif
|
||||||
jne HIDDEN_JUMPTARGET (__fork)
|
jne HIDDEN_JUMPTARGET (__fork)
|
||||||
|
@ -33,8 +33,8 @@ ENTRY(__vfork)
|
|||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
addl r14 = @gprel(__libc_pthread_functions#), gp;;
|
addl r14 = @gprel(__libc_pthread_functions#), gp;;
|
||||||
#else
|
#else
|
||||||
.weak __pthread_fork
|
.weak pthread_create
|
||||||
addl r14 = @ltoff(@fptr(__pthread_fork#)), gp;;
|
addl r14 = @ltoff(@fptr(pthread_create#)), gp;;
|
||||||
#endif
|
#endif
|
||||||
ld8 r14 = [r14];;
|
ld8 r14 = [r14];;
|
||||||
cmp.ne p6, p7 = 0, r14
|
cmp.ne p6, p7 = 0, r14
|
||||||
|
@ -32,8 +32,8 @@ ENTRY (__vfork)
|
|||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
tstl (__libc_pthread_functions@GOTPC, %pc)
|
tstl (__libc_pthread_functions@GOTPC, %pc)
|
||||||
#else
|
#else
|
||||||
.weak __pthread_fork
|
.weak pthread_create
|
||||||
movel #__pthread_fork, %d0
|
movel #pthread_create, %d0
|
||||||
#endif
|
#endif
|
||||||
jbne HIDDEN_JUMPTARGET (__fork)
|
jbne HIDDEN_JUMPTARGET (__fork)
|
||||||
|
|
||||||
|
@ -39,9 +39,9 @@ ENTRY (__vfork)
|
|||||||
cmpwi 10,0
|
cmpwi 10,0
|
||||||
bne- HIDDEN_JUMPTARGET(__fork)
|
bne- HIDDEN_JUMPTARGET(__fork)
|
||||||
# else
|
# else
|
||||||
.weak __pthread_fork
|
.weak pthread_create
|
||||||
lis 9,__pthread_fork@ha
|
lis 9,pthread_create@ha
|
||||||
la 9,__pthread_fork@l(9)
|
la 9,pthread_create@l(9)
|
||||||
cmpwi 9,0
|
cmpwi 9,0
|
||||||
bne- .Lhidden_fork
|
bne- .Lhidden_fork
|
||||||
# endif
|
# endif
|
||||||
|
@ -27,8 +27,16 @@
|
|||||||
and the process ID of the new process to the old process. */
|
and the process ID of the new process to the old process. */
|
||||||
|
|
||||||
ENTRY (__vfork)
|
ENTRY (__vfork)
|
||||||
SINGLE_THREAD_P(%r1)
|
basr %r1,0
|
||||||
jne 0f
|
0:
|
||||||
|
#ifdef SHARED
|
||||||
|
al %r1,4f-0b(%r1)
|
||||||
|
l %r1,0(%r1)
|
||||||
|
ltr %r1,%r1
|
||||||
|
#else
|
||||||
|
icm %r1,15,4f-0b(%r1)
|
||||||
|
#endif
|
||||||
|
jne 1f
|
||||||
|
|
||||||
/* Do vfork system call. */
|
/* Do vfork system call. */
|
||||||
svc SYS_ify (vfork)
|
svc SYS_ify (vfork)
|
||||||
@ -40,13 +48,20 @@ ENTRY (__vfork)
|
|||||||
|
|
||||||
/* Normal return. */
|
/* Normal return. */
|
||||||
br %r14
|
br %r14
|
||||||
0:
|
|
||||||
basr %r1,0
|
|
||||||
1:
|
1:
|
||||||
al %r1,2f-1b(%r1)
|
basr %r1,0
|
||||||
br %r1
|
|
||||||
2:
|
2:
|
||||||
.long HIDDEN_JUMPTARGET(__fork)-1b
|
al %r1,3f-2b(%r1)
|
||||||
|
br %r1
|
||||||
|
3:
|
||||||
|
.long HIDDEN_JUMPTARGET(__fork)-2b
|
||||||
|
4:
|
||||||
|
#ifdef SHARED
|
||||||
|
.long __libc_pthread_functions-0b
|
||||||
|
#else
|
||||||
|
.weak pthread_create
|
||||||
|
.long pthread_create
|
||||||
|
#endif
|
||||||
PSEUDO_END(__vfork)
|
PSEUDO_END(__vfork)
|
||||||
|
|
||||||
libc_hidden_def (__vfork)
|
libc_hidden_def (__vfork)
|
||||||
|
@ -31,8 +31,8 @@ ENTRY (__vfork)
|
|||||||
larl %r1,__libc_pthread_functions
|
larl %r1,__libc_pthread_functions
|
||||||
lg %r1,0(%r1)
|
lg %r1,0(%r1)
|
||||||
#else
|
#else
|
||||||
.weak __pthread_fork
|
.weak pthread_create
|
||||||
larl %r1,__pthread_fork
|
larl %r1,pthread_create
|
||||||
#endif
|
#endif
|
||||||
ltgr %r1,%r1
|
ltgr %r1,%r1
|
||||||
jgne HIDDEN_JUMPTARGET(__fork)
|
jgne HIDDEN_JUMPTARGET(__fork)
|
||||||
|
@ -30,7 +30,7 @@ ENTRY (__vfork)
|
|||||||
mov.l .Lpthread_func, r0
|
mov.l .Lpthread_func, r0
|
||||||
mov.l @(r0,r12), r0
|
mov.l @(r0,r12), r0
|
||||||
#else
|
#else
|
||||||
mov.l .Lpthread_fork, r0
|
mov.l .Lpthread_create, r0
|
||||||
#endif
|
#endif
|
||||||
tst r0, r0
|
tst r0, r0
|
||||||
bf .Lhidden_fork
|
bf .Lhidden_fork
|
||||||
@ -53,8 +53,9 @@ ENTRY (__vfork)
|
|||||||
.Lpthread_func:
|
.Lpthread_func:
|
||||||
.long __libc_pthread_functions@GOTOFF
|
.long __libc_pthread_functions@GOTOFF
|
||||||
#else
|
#else
|
||||||
.Lpthread_fork:
|
.Lpthread_create:
|
||||||
.long __pthread_fork
|
.weak pthread_create
|
||||||
|
.long pthread_create
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.Lhidden_fork:
|
.Lhidden_fork:
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
.LLGETPC0:
|
.LLGETPC0:
|
||||||
retl
|
retl
|
||||||
addl %o7, %o0, %o0
|
add %o7, %o0, %o0
|
||||||
#endif
|
#endif
|
||||||
ENTRY(__vfork)
|
ENTRY(__vfork)
|
||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
@ -38,9 +38,9 @@ ENTRY(__vfork)
|
|||||||
ld [%o2], %o2
|
ld [%o2], %o2
|
||||||
cmp %o2, 0
|
cmp %o2, 0
|
||||||
#else
|
#else
|
||||||
.weak __pthread_fork
|
.weak pthread_create
|
||||||
sethi %hi(__pthread_fork), %o0
|
sethi %hi(pthread_create), %o0
|
||||||
orcc %o0, %lo(__pthread_fork), %o0
|
orcc %o0, %lo(pthread_create), %o0
|
||||||
#endif
|
#endif
|
||||||
#if defined SHARED && !defined BROKEN_SPARC_WDISP22
|
#if defined SHARED && !defined BROKEN_SPARC_WDISP22
|
||||||
bne HIDDEN_JUMPTARGET(__fork)
|
bne HIDDEN_JUMPTARGET(__fork)
|
||||||
@ -48,7 +48,7 @@ ENTRY(__vfork)
|
|||||||
bne 1f
|
bne 1f
|
||||||
#endif
|
#endif
|
||||||
mov __NR_vfork, %g1
|
mov __NR_vfork, %g1
|
||||||
ta 0x10;
|
ta 0x10
|
||||||
bcs __syscall_error_handler
|
bcs __syscall_error_handler
|
||||||
nop
|
nop
|
||||||
sub %o1, 1, %o1
|
sub %o1, 1, %o1
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
.LLGETPC0:
|
.LLGETPC0:
|
||||||
retl
|
retl
|
||||||
addl %o7, %o0, %o0
|
add %o7, %o0, %o0
|
||||||
#endif
|
#endif
|
||||||
ENTRY(__vfork)
|
ENTRY(__vfork)
|
||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
@ -38,9 +38,9 @@ ENTRY(__vfork)
|
|||||||
cmp %o2, 0
|
cmp %o2, 0
|
||||||
bne HIDDEN_JUMPTARGET(__fork)
|
bne HIDDEN_JUMPTARGET(__fork)
|
||||||
#else
|
#else
|
||||||
.weak __pthread_fork
|
.weak pthread_create
|
||||||
sethi %hi(__pthread_fork), %o0
|
sethi %hi(pthread_create), %o0
|
||||||
or %o0, %lo(__pthread_fork), %o0
|
or %o0, %lo(pthread_create), %o0
|
||||||
brnz,pn %o0, 1f
|
brnz,pn %o0, 1f
|
||||||
#endif
|
#endif
|
||||||
mov __NR_vfork, %g1
|
mov __NR_vfork, %g1
|
||||||
|
@ -30,8 +30,8 @@ ENTRY (__vfork)
|
|||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
cmpq $0, __libc_pthread_functions(%rip)
|
cmpq $0, __libc_pthread_functions(%rip)
|
||||||
#else
|
#else
|
||||||
.weak __pthread_fork
|
.weak pthread_create
|
||||||
movq $__pthread_fork, %rax
|
movq $pthread_create, %rax
|
||||||
testq %rax, %rax
|
testq %rax, %rax
|
||||||
#endif
|
#endif
|
||||||
jne HIDDEN_JUMPTARGET (__fork)
|
jne HIDDEN_JUMPTARGET (__fork)
|
||||||
|
@ -1 +1 @@
|
|||||||
NPTL 0.20 by Ulrich Drepper
|
NPTL 0.21 by Ulrich Drepper
|
||||||
|
Loading…
Reference in New Issue
Block a user