emaste 51a24fd074 lld: 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>

Obtained from:  LLD commit r305212
Differential Revision:  https://reviews.freebsd.org/D11191

Reviewed by:	dim, Rafael Espíndola
Obtained from:	LLD r305212
MFC after:	3 days
2017-06-14 18:56:33 +00:00
..
2017-05-10 22:45:05 +00:00
2017-05-31 19:37:23 +00:00
2017-05-22 01:10:12 +00:00
2017-03-02 01:14:48 +00:00
2017-05-05 14:33:39 +00:00
2017-02-19 17:37:16 +00:00
2017-06-08 19:40:00 +00:00
2017-06-06 21:50:00 +00:00
2017-02-06 08:49:57 +00:00
2017-03-23 22:06:06 +00:00
2017-03-16 21:32:05 +00:00
2017-05-23 09:29:05 +00:00
2017-05-05 13:31:25 +00:00
2017-01-30 16:32:53 +00:00
2017-02-28 23:42:47 +00:00
2017-03-25 14:14:11 +00:00
2017-06-01 19:21:30 +00:00
2017-05-20 18:02:31 +00:00
2017-02-28 23:42:47 +00:00
2017-03-27 21:00:49 +00:00
2017-06-03 02:42:49 +00:00
2017-01-17 05:55:47 +00:00
2017-05-06 10:26:40 +00:00