mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-30 06:38:14 +00:00
Remove the extraneous --defined-only option to nm. This is the default and
some versions of nm don't recognize it (its a gnu option). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22591417f5
commit
444b2cf4c3
@ -44,7 +44,7 @@ my %objdefs;
|
|||||||
# Gather definitions from the libraries
|
# Gather definitions from the libraries
|
||||||
foreach $lib (@libs ) {
|
foreach $lib (@libs ) {
|
||||||
open DEFS,
|
open DEFS,
|
||||||
"nm -g --defined-only $Directory/$lib | grep ' [ABCDGRST] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRST] //' | sort | uniq |";
|
"nm -g $Directory/$lib | grep ' [ABCDGRST] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRST] //' | sort | uniq |";
|
||||||
while (<DEFS>) {
|
while (<DEFS>) {
|
||||||
chomp($_);
|
chomp($_);
|
||||||
$libdefs{$_} = $lib;
|
$libdefs{$_} = $lib;
|
||||||
@ -55,7 +55,7 @@ foreach $lib (@libs ) {
|
|||||||
# Gather definitions from the object files.
|
# Gather definitions from the object files.
|
||||||
foreach $obj (@objs ) {
|
foreach $obj (@objs ) {
|
||||||
open DEFS,
|
open DEFS,
|
||||||
"nm -g --defined-only $Directory/$obj | grep ' [ABCDGRST] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRST] //' | sort | uniq |";
|
"nm -g $Directory/$obj | grep ' [ABCDGRST] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRST] //' | sort | uniq |";
|
||||||
while (<DEFS>) {
|
while (<DEFS>) {
|
||||||
chomp($_);
|
chomp($_);
|
||||||
$objdefs{$_} = $obj;
|
$objdefs{$_} = $obj;
|
||||||
@ -76,7 +76,7 @@ sub gen_one_entry {
|
|||||||
print " <dt><b>$lib</b</dt><dd><ul>\n";
|
print " <dt><b>$lib</b</dt><dd><ul>\n";
|
||||||
}
|
}
|
||||||
open UNDEFS,
|
open UNDEFS,
|
||||||
"nm -u $Directory/$lib | grep ' U ' | sed -e 's/ U //' | sort | uniq |";
|
"nm -g -u $Directory/$lib | grep ' U ' | sed -e 's/ U //' | sort | uniq |";
|
||||||
open DEPENDS,
|
open DEPENDS,
|
||||||
"| sort | uniq > GenLibDeps.out";
|
"| sort | uniq > GenLibDeps.out";
|
||||||
while (<UNDEFS>) {
|
while (<UNDEFS>) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user