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)
commit7e889af76814df67ef912b95ada7ac0b1ebfb7e4
tree93eb590d9a0adb2f73423831d2ff11005e2f02d5
parent67cc1dc99595b8807d8c18ab4f3854bee3203982
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198706 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
test/MC/ELF/type.s