mirror of git://sourceware.org/git/glibc.git
* sysdeps/unix/make-syscalls.sh: If the syscall name field is -
then generate a dummy module under the given name, obeying the normal rules for the "caller" field.
This commit is contained in:
parent
a162642d80
commit
7944bd340c
|
|
@ -1,5 +1,9 @@
|
||||||
2002-08-04 Roland McGrath <roland@redhat.com>
|
2002-08-04 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/make-syscalls.sh: If the syscall name field is -
|
||||||
|
then generate a dummy module under the given name, obeying the
|
||||||
|
normal rules for the "caller" field.
|
||||||
|
|
||||||
* sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
|
* sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
|
||||||
actually iterate over the elements. Fix typo p_type -> p_vaddr.
|
actually iterate over the elements. Fix typo p_type -> p_vaddr.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,9 @@ test -n "$calls" || exit 0
|
||||||
echo "$calls" |
|
echo "$calls" |
|
||||||
while read file srcfile caller syscall args strong weak; do
|
while read file srcfile caller syscall args strong weak; do
|
||||||
|
|
||||||
|
case x"$syscall" in
|
||||||
|
x-) callnum=_ ;;
|
||||||
|
*)
|
||||||
# Figure out if $syscall is defined with a number in syscall.h.
|
# Figure out if $syscall is defined with a number in syscall.h.
|
||||||
callnum=-
|
callnum=-
|
||||||
eval `{ echo "#include <sysdep.h>";
|
eval `{ echo "#include <sysdep.h>";
|
||||||
|
|
@ -77,6 +80,8 @@ while read file srcfile caller syscall args strong weak; do
|
||||||
$asm_CPP -D__OPTIMIZE__ - |
|
$asm_CPP -D__OPTIMIZE__ - |
|
||||||
sed -n -e "/^callnum=.*$syscall/d" \
|
sed -n -e "/^callnum=.*$syscall/d" \
|
||||||
-e "/^\(callnum=\)[ ]*\(.*\)/s//\1'\2'/p"`
|
-e "/^\(callnum=\)[ ]*\(.*\)/s//\1'\2'/p"`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Derive the number of arguments from the argument signature
|
# Derive the number of arguments from the argument signature
|
||||||
case $args in
|
case $args in
|
||||||
|
|
@ -126,12 +131,22 @@ shared-only-routines += $file
|
||||||
\$(foreach o,\$(object-suffixes),\$(objpfx)$file\$o): \\"
|
\$(foreach o,\$(object-suffixes),\$(objpfx)$file\$o): \\"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo " \$(common-objpfx)s-proto.d
|
|
||||||
|
echo ' $(common-objpfx)s-proto.d'
|
||||||
|
case x"$callnum" in
|
||||||
|
x_)
|
||||||
|
echo "\
|
||||||
|
(echo '/* Dummy module requested by syscalls.list */'; \\"
|
||||||
|
;;
|
||||||
|
x*)
|
||||||
|
echo "\
|
||||||
(echo '#include <sysdep.h>'; \\
|
(echo '#include <sysdep.h>'; \\
|
||||||
echo 'PSEUDO ($strong, $syscall, $nargs)'; \\
|
echo 'PSEUDO ($strong, $syscall, $nargs)'; \\
|
||||||
echo ' ret'; \\
|
echo ' ret'; \\
|
||||||
echo 'PSEUDO_END($strong)'; \\
|
echo 'PSEUDO_END($strong)'; \\
|
||||||
echo 'libc_hidden_def ($strong)'; \\"
|
echo 'libc_hidden_def ($strong)'; \\"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Append any weak aliases or versions defined for this syscall function.
|
# Append any weak aliases or versions defined for this syscall function.
|
||||||
|
|
||||||
|
|
@ -189,7 +204,7 @@ shared-only-routines += $file
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case x"$callnum",$srcfile,$args in
|
case x"$callnum",$srcfile,$args in
|
||||||
x-,-,* | x*,*.[sS],*V*) ;;
|
x[_-],-,* | x*,*.[sS],*V*) ;;
|
||||||
x*,-,*$ptr* | x*,*.[sS],*$ptr*)
|
x*,-,*$ptr* | x*,*.[sS],*$ptr*)
|
||||||
|
|
||||||
nv_weak=`for name in $weak; do
|
nv_weak=`for name in $weak; do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue