Fix error logic for undefined reference in library
commitbf692af31b93ca14b63211bd508b4b8bf1179b50
authorThomas Preud'homme <robotux@celest.fr>
Sat, 12 Nov 2016 15:16:03 +0000 (12 23:16 +0800)
committerThomas Preud'homme <robotux@celest.fr>
Sat, 3 Dec 2016 17:26:51 +0000 (3 17:26 +0000)
tree06160e9fcabcb8ae573286fb5ecda6a16bedaf20
parentccf9ed7d54910308ac1779d090cb38b5da2ad948
Fix error logic for undefined reference in library

Prior to this patch, an error would only be given when a library has an
unresolved undefined symbol if there is no undefined reference for the
same symbol in the executable itself. This patch changes the logic to
check both that the executable has the symbol in its static symbol table
*and* that it is defined to decide if the error path should be followed.
tccelf.c