]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR24567, assertion failure in ldlang.c:6868 when compiling with -flto
authorAlan Modra <amodra@gmail.com>
Fri, 17 May 2019 09:39:42 +0000 (19:09 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 17 May 2019 14:38:14 +0000 (00:08 +0930)
commit8a1285a1a3048f77abc56be3ff2f83a782506a04
treed9135b9c27ad2e63bfeac5a3f07961ccd96ebafb
parentbca6a14c568bd63080c85a6b05c90996e2bd4a34
PR24567, assertion failure in ldlang.c:6868 when compiling with -flto

As the existing comment said: "a common ought to be overridden by a
def in a -flto object".  This patch makes the code actually do that,
rather than allowing a normal object file common to override a -flto
defined symbol.

PR 24567
* plugin.c (plugin_notice): Do not let a common symbol override
a non-common definition in IR.

(cherry picked from commit af4fa23fba220c1b26bb3c8a7996b406dcc181cc)
ld/ChangeLog
ld/plugin.c