Make compCtors strict weak ordering.
authorRui Ueyama <ruiu@google.com>
Fri, 12 Feb 2016 00:38:46 +0000 (00:38 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 12 Feb 2016 00:38:46 +0000 (00:38 +0000)
commit24b794e8aa149517f212e2e46118b6b5262dd7a2
treeb1fe835ac5d15c9d07d233b0a5d7a82ceafefac1
parentba6ca87ffb280bc274229bac588cfc87242ccd94
Make compCtors strict weak ordering.

Previously, if both A and B are ".ctors", both compCtors(A, B) and
compCtors(B, A) are true, which is a violation of the strict weak
ordering because such function is not antisymmetric.

llvm-svn: 260633
lld/ELF/OutputSections.cpp
lld/test/ELF/ctors_dtors_priority.s