Add option --weak-unresolved-symbols to treat unresolved symbols as weak ref.
authorSriraman Tallam <tmsriram@google.com>
Thu, 23 Apr 2015 20:56:40 +0000 (13:56 -0700)
committerSriraman Tallam <tmsriram@google.com>
Thu, 23 Apr 2015 20:56:40 +0000 (13:56 -0700)
commita100d66fb42044153dc0e93c96d7944dab0cc674
tree7ab7ef6c6911cde3a440fed3c688e6b533d973f4
parent65eb8c79be0c71f9b52d14563c0817fc5ca33c0d
Add option --weak-unresolved-symbols to treat unresolved symbols as weak ref.

This patch adds option --weak-unresolved-symbols to treat unresolved symbols as
weak references.  This is helpful when we want the link to succeed with unresolved
symbols and the dynamic loader to not complain at run-time.  Option
--warn-unresolved-symbols lets the link succeed but could fail at run-time with
unresolved symbol warnings especially when the unresolved symbols have GOT entries
and dynamic relocations against them, like when -fPIE is used.
gold/ChangeLog
gold/options.h
gold/symtab.cc
gold/symtab.h
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in