From 4e58b3ebfc87740365dacb4eda170ebebce72a7f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 10 Dec 1993 05:51:25 +0000 Subject: [PATCH] * nlmconv.c (main): Warn about imported symbols that are not in the IMPORT list even if the IMPORT keyword is not used. Fixes PR 4006. --- binutils/ChangeLog | 3 +++ binutils/nlmconv.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index c878242e82c..df1af194cc2 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,8 @@ Thu Dec 9 17:47:19 1993 Ian Lance Taylor (ian@deneb.cygnus.com) + * nlmconv.c (main): Warn about imported symbols that are not in + the IMPORT list even if the IMPORT keyword is not used. + * nlmconv.c (debug, unlink_on_exit): New static variables. (long_options): Add "debug" and "linker". (main): Handle -d and -l arguments. Make command line input and diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c index b9b84e6b7a5..7fa4c2a6353 100644 --- a/binutils/nlmconv.c +++ b/binutils/nlmconv.c @@ -514,8 +514,7 @@ main (argc, argv) /* If it's an undefined symbol, see if it's on the import list. Change the prefix if necessary. */ - if (bfd_get_section (sym) == &bfd_und_section - && import_symbols != NULL) + if (bfd_get_section (sym) == &bfd_und_section) { register struct string_list *l;