In the ELFWriter when writing aliased (.set) symbols dont blindly
authorRoman Divacky <rdivacky@freebsd.org>
Tue, 7 Jan 2014 20:17:03 +0000 (20:17 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Tue, 7 Jan 2014 20:17:03 +0000 (20:17 +0000)
commit5a1c54999d6e008dd4111701c14721b77838c929
tree7bc5970c6cdcb728d375b966d50ff64f7fd227fb
parent92e28e876d67f8f632dee423eeacde5e9f31227f
In the ELFWriter when writing aliased (.set) symbols dont blindly
take type from the new symbol but merge them so that the type
is never "downgraded".

This is probably quite rare, except for IFUNC symbols which
we used to misassemble, losing the IFUNC type.

Fixes #18372.

llvm-svn: 198706
llvm/lib/MC/ELFObjectWriter.cpp
llvm/test/MC/ELF/type.s