mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
ae828bc6f9
1998-03-02 17:55 Ulrich Drepper <drepper@cygnus.com> * sysdeps/i386/add_n.S: Change to use ENTRY and END macro. * sysdeps/i386/addmul_1.S: Likewise. * sysdeps/i386/lshift.S: Likewise. * sysdeps/i386/mul_1.S: Likewise. * sysdeps/i386/rshift.S: Likewise. * sysdeps/i386/sub_n.S: Likewise. * sysdeps/i386/submul_1.S: Likewise. * sysdeps/i386/i586/add_n.S: Likewise. * sysdeps/i386/i586/addmul_1.S: Likewise. * sysdeps/i386/i586/lshift.S: Likewise. * sysdeps/i386/i586/mul_1.S: Likewise. * sysdeps/i386/i586/rshift.S: Likewise. * sysdeps/i386/i586/sub_n.S: Likewise. * sysdeps/i386/i586/submul_1.S: Likewise. * sysdeps/i386/sysdep.h: Extend last change. * sysdeps/unix/sysv/linux/i386/sysdep.h: Follow Intel's advice to have only one exit point for functions. 1998-03-02 Ulrich Drepper <drepper@cygnus.com> * configure.in: Fix msgfmt test. Fix handling of //s in sysdeps search. 1998-03-02 13:28 Ulrich Drepper <drepper@cygnus.com> * Makerules: Generate libc.so with absolute paths for the used shared objects. * config.make.in: Add MAKEINFO definition. 1998-03-02 Ulrich Drepper <drepper@cygnus.com> * sysdeps/i386/sysdep.h (ASM_SIZE_DIRECTIVE): Add ; at the end. (ENTRY): Use STABS_FUN. (END): Use STABS_FUN_END. (STABS_FUN, STABS_FUN2, STABS_FUN_END): New macro to emit stabs info. * elf/Makefile: Add rules to build sprof program. * elf/sprof.c: New file. 1998-02-28 Andreas Jaeger <aj@arthur.rhein-neckar.de> * misc/syslog.c (openlog_internal): Insert missing closing brace. 1998-02-06 Andreas Jaeger <aj@arthur.rhein-neckar.de> * configure.in: Check for working msgfmt version (from GNU gettext 0.10 or later). 1998-03-02 Ulrich Drepper <drepper@cygnus.com> * configure.in: Avoid //s in sysdirs. Patch by Roland McGrath. * stdlib/a64l.c (a64l): Rewrite by Joe Keane <jgk@jgk.org>. 1998-03-02 07:17 H.J. Lu <hjl@gnu.org> * elf/dl-open.c (_dl_open): Update _dl_global_scope_end when setting _dl_global_scope for RTLD_GLOBAL. 1998-02-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/unix/make-syscalls.sh: Fix last change so that all possible lists of object-suffixes are taken care of. 1998-03-02 10:16 Ulrich Drepper <drepper@cygnus.com> * timezone/private.h: Update from tzcode1998c. * timezone/zic.c: Likewise. * timezone/antarctica: Updated from tzdata1998c. * timezone/asia: Likewise. * timezone/australasia: Likewise. * timezone/europe: Likewise. * timezone/southamerica: Likewise. 1998-03-02 Ulrich Drepper <drepper@cygnus.com> * posix/glob.c (glob_in_dir): Add support for cases insensitive VMS. Patch by John W. Eaton <jwe@bevo.che.wisc.edu>.
140 lines
3.6 KiB
Bash
140 lines
3.6 KiB
Bash
#! /bin/sh
|
|
|
|
# Usage: make-syscalls.sh ../sysdeps/unix/common
|
|
# Expects $sysdirs in environment.
|
|
|
|
thisdir=$1; shift
|
|
|
|
# Get the list of system calls for this directory.
|
|
calls=`sed 's/#.*$//
|
|
/^[ ]*$/d' $thisdir/syscalls.list`
|
|
|
|
# Check each sysdep dir with higher priority than this one,
|
|
# and remove from $calls all the functions found in other dirs.
|
|
for dir in $sysdirs; do
|
|
|
|
# Punt when we reach the directory defining these syscalls.
|
|
test $dir = $thisdir && break
|
|
|
|
# Remove each syscall that is implemented by a file in $dir.
|
|
# If a syscall specified a "caller", then only compile that syscall
|
|
# if the caller function is also implemented in this directory.
|
|
calls=`echo "$calls" | while read file caller rest; do
|
|
test -f $dir/$file.c && continue
|
|
test -f $dir/$file.S && continue
|
|
test -f $dir/$file.s && continue
|
|
if test x$caller != x-; then
|
|
test -f $dir/$caller.c && continue
|
|
test -f $dir/$caller.S && continue
|
|
test -f $dir/$caller.s && continue
|
|
fi
|
|
echo $file $caller $rest
|
|
done`
|
|
|
|
done
|
|
|
|
# Any calls left?
|
|
test -n "$calls" || exit 0
|
|
|
|
files=
|
|
|
|
# Emit rules to compile the syscalls remaining in $calls.
|
|
echo "$calls" | while read file caller syscall nargs strong weak; do
|
|
|
|
# Figure out if $syscall is defined with a number in syscall.h.
|
|
$asm_CPP - << EOF | grep "^@@@ .*$syscall" >/dev/null && continue
|
|
#include <sysdep.h>
|
|
@@@ SYS_ify ($syscall)
|
|
EOF
|
|
|
|
case $weak in
|
|
*@*)
|
|
# The versioned symbols are only in the shared library.
|
|
echo "ifneq (,\$(filter .os,\$(object-suffixes)))"
|
|
;;
|
|
esac
|
|
|
|
# Make sure only the first syscall rule is used, if multiple dirs
|
|
# define the same syscall.
|
|
echo "ifeq (,\$(filter $file,\$(unix-syscalls)))"
|
|
|
|
# Accumulate the list of syscall files for this directory.
|
|
echo "unix-syscalls += $file"
|
|
test x$caller = x- || echo "unix-extra-syscalls += $file"
|
|
|
|
# Emit a compilation rule for this syscall.
|
|
case $weak in
|
|
*@*)
|
|
# The versioned symbols are only in the shared library.
|
|
echo "\
|
|
\$(foreach o,\$(filter-out .os,\$(object-suffixes)),\$(objpfx)$file\$o): \\
|
|
\$(objpfx)$file%: \$(common-objpfx)empty%
|
|
rm -f \$@
|
|
ln \$< \$@
|
|
\$(objpfx)${file}.os: \\"
|
|
;;
|
|
*)
|
|
echo "\
|
|
\$(foreach o,\$(object-suffixes),\$(objpfx)$file\$o): \\"
|
|
;;
|
|
esac
|
|
echo "\$(common-objpfx)s-proto.d
|
|
(echo '#include <sysdep.h>'; \\
|
|
echo 'PSEUDO ($strong, $syscall, $nargs)'; \\
|
|
echo ' ret'; \\
|
|
echo 'PSEUDO_END($strong)'; \\"
|
|
|
|
# Append any weak aliases or versions defined for this syscall function.
|
|
|
|
# A shortcoming in the current gas is that it will only allow one
|
|
# version-alias per symbol. So we create new strong aliases as needed.
|
|
vcount=""
|
|
|
|
for name in $weak; do
|
|
case $name in
|
|
*@@*)
|
|
base=`echo $name | sed 's/@@.*//'`
|
|
ver=`echo $name | sed 's/.*@@//'`
|
|
if test -z "$vcount" ; then
|
|
source=$strong
|
|
vcount=1
|
|
else
|
|
source="${strong}_${vcount}"
|
|
vcount=`expr $vcount + 1`
|
|
echo " echo 'strong_alias ($strong, $source)'; \\"
|
|
fi
|
|
echo " echo 'default_symbol_version($source, $base, $ver)'; \\"
|
|
;;
|
|
*@*)
|
|
base=`echo $name | sed 's/@.*//'`
|
|
ver=`echo $name | sed 's/.*@//'`
|
|
if test -z "$vcount" ; then
|
|
source=$strong
|
|
vcount=1
|
|
else
|
|
source="${strong}_${vcount}"
|
|
vcount=`expr $vcount + 1`
|
|
echo " echo 'strong_alias ($strong, $source)'; \\"
|
|
fi
|
|
echo " echo 'symbol_version($source, $base, $ver)'; \\"
|
|
;;
|
|
*)
|
|
echo " echo 'weak_alias ($strong, $name)'; \\"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
# And finally, pipe this all into the compiler.
|
|
echo ' ) | $(COMPILE.S) -x assembler-with-cpp -o $@ -'
|
|
|
|
echo endif
|
|
|
|
case $weak in
|
|
*@*)
|
|
# The versioned symbols are only in the shared library.
|
|
echo endif
|
|
;;
|
|
esac
|
|
|
|
done
|