Consider the base pointer for setting the symbol type.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 17 Mar 2014 04:29:51 +0000 (04:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 17 Mar 2014 04:29:51 +0000 (04:29 +0000)
commit9fdf9d2a1e4caffd6178cc35800d63fbb8c45d73
treec2dcc88826efa9dd3f5039ea54e2993678cd6f05
parentfd69cf9ba4b4a3f29523e2367a569bd84e0fdad8
Consider the base pointer for setting the symbol type.

This is really a consistency fix. Since given

a = b

we propagate the information, we should propagate it too given

a = b + (1 - 1)

Fixes pr19145.

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