llvm-6502/test
Rafael Espindola f165cf7ce8 Prevent alias from pointing to weak aliases.
This adds back r204781.

Original message:

Aliases are just another name for a position in a file. As such, the
regular symbol resolutions are not applied. For example, given

define void @my_func() {
  ret void
}
@my_alias = alias weak void ()* @my_func
@my_alias2 = alias void ()* @my_alias

We produce without this patch:

        .weak   my_alias
my_alias = my_func
        .globl  my_alias2
my_alias2 = my_alias

That is, in the resulting ELF file my_alias, my_func and my_alias are
just 3 names pointing to offset 0 of .text. That is *not* the
semantics of IR linking. For example, linking in a

@my_alias = alias void ()* @other_func

would require the strong my_alias to override the weak one and
my_alias2 would end up pointing to other_func.

There is no way to represent that with aliases being just another
name, so the best solution seems to be to just disallow it, converting
a miscompile into an error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204934 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-27 15:26:56 +00:00
..
Analysis PR15967 Fix in basicaa for faulty returning no alias. 2014-03-26 21:30:19 +00:00
Assembler
Bindings
Bitcode All new elements except the last one initialized to NULL. Ideally, once parsing is complete, all elements should be non-NULL. 2014-03-27 12:08:23 +00:00
BugPoint
CodeGen Prevent alias from pointing to weak aliases. 2014-03-27 15:26:56 +00:00
DebugInfo Add a PR reference 2014-03-27 08:52:14 +00:00
ExecutionEngine
Feature Prevent alias from pointing to weak aliases. 2014-03-27 15:26:56 +00:00
FileCheck
Instrumentation [msan] Relax the test some more. 2014-03-25 14:32:05 +00:00
Integer
JitListener
Linker
LTO
MC [mips] Attempting to use register $32 should be an error instead of an assertion. 2014-03-27 15:00:44 +00:00
Object Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
Other
TableGen
tools llvm-cov: Move XFAIL after the body of the test 2014-03-26 22:51:39 +00:00
Transforms Prevent alias from pointing to weak aliases. 2014-03-27 15:26:56 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh