blob: 35119e5d93f78d4e12b492b31c9e6e152a11d3d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/bash
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Author: Martin Schlemmer <azarah@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/scan_libgcc_linked_ssp.sh,v 1.4 2007/05/05 05:13:15 vapier Exp $
usage() {
cat << "USAGE_END"
Usage: can_libgcc_linked_ssp.sh
This scans the system for files that contains the __guard symbol, that was
linked against libgcc.
USAGE_END
exit 1
}
if [ "$#" -ne 0 ]
then
usage
fi
source /etc/profile || exit 1
source /etc/init.d/functions.sh || exit 1
AWKDIR="$(portageq envvar PORTDIR)/sys-devel/gcc/files/awk"
if [ ! -r "${AWKDIR}/scanforssp.awk" ]
then
eerror "${0##*/}: ${AWKDIR}/scanforssp.awk does not exist!"
exit 1
fi
einfo "Scanning system for __guard@GCC symbols..."
/bin/gawk -f "${AWKDIR}/scanforssp.awk"
exit $?
# vim:ts=4
|