blob: f8817e21d15d92ea73716f48d352e2aafd88901c (
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.3 2004/07/15 00:59:02 agriffis 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
source /sbin/functions.sh
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
|