Relax a -r --gc-sections requirement
authorAlan Modra <amodra@gmail.com>
Fri, 19 Oct 2018 13:29:11 +0000 (23:59 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 20 Oct 2018 09:16:43 +0000 (19:46 +1030)
commit91ae256e33f7c068443d877fe3e2b2ffd91cf60b
tree85965f4e1df7829ce26b31475f89ecf6bdca38ad
parentfe19e45ff30986ed0751332b2128c0737efd2838
Relax a -r --gc-sections requirement

A symbol root is not needed if --gc-keep-exported is also given.

* ldlang.c (lang_end): Don't error if no --entry or --undefined
is given with -r -gc-sections if --gc-keep-exported.
ld/ChangeLog
ld/ldlang.c