blob: 5b6d9440bc9213548b626252f303c205f7f10d0f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Adjust for FreeBSD readelf(1) output.
https://sourceforge.net/p/elftoolchain/tickets/544/
--- runtime/tools/check-depends.pl.orig 2019-01-19 10:56:40 UTC
+++ runtime/tools/check-depends.pl
@@ -131,7 +131,7 @@ sub get_deps_readelf($) {
# Parse body.
while ( $i < @bulk ) {
my $line = $bulk[ $i ];
- if ( $line !~ m{^\s*0x[0-9a-f]+\s+\(([_A-Z0-9]+)\)\s+(.*)\s*$}i ) {
+ if ( $line !~ m{^\s*0x[0-9a-f]+\s+\(?([_A-Z0-9]+)\)?\s+(.*)\s*$}i ) {
parse_error( $tool, @bulk, $i );
}; # if
my ( $type, $value ) = ( $1, $2 );
|