diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-12 18:05:01 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-12 18:05:01 +0000 |
commit | f846ce259af07ab522badaaee32f83b296830302 (patch) | |
tree | 797af53e6a25446266008366d9a51f8ca8c1744d /lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp | |
parent | 11150c009a4099f5248141655d6fe834daf02279 (diff) | |
download | bcm5719-llvm-f846ce259af07ab522badaaee32f83b296830302.tar.gz bcm5719-llvm-f846ce259af07ab522badaaee32f83b296830302.zip |
Fix weak symbols on arm and aarch64.
Given
.weak target
.global _start
_start:
b target
The intention is that the branch goes to the instruction after the
branch, effectively turning it on a nop. The branch adds the runtime
PC, but we were adding it statically too.
I noticed the oddity by inspection, but llvm-objdump seems to agree,
since it now prints things like:
b #-4 <_start+0x4>
llvm-svn: 305212
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/macros/main.cpp')
0 files changed, 0 insertions, 0 deletions