diff options
author | emaste <emaste@FreeBSD.org> | 2017-06-17 19:00:12 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2017-06-17 19:00:12 +0000 |
commit | e319a3b5f16e8356e1a7946c700054f173f285f1 (patch) | |
tree | 367096bdc6183adc12498847985eb0f4f237780c /contrib/diff/lib/prepargs.c | |
parent | b11d9b120ad76eef1ddd2e6827fee40245381b9b (diff) | |
download | FreeBSD-src-e319a3b5f16e8356e1a7946c700054f173f285f1.zip FreeBSD-src-e319a3b5f16e8356e1a7946c700054f173f285f1.tar.gz |
lld: Fix weak symbols on arm and aarch64
MFC r319955: lld: sort relocations
No functional change; applied to facilitate merge of later LLD commit.
MFC r319956: 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 r298797, r305212
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'contrib/diff/lib/prepargs.c')
0 files changed, 0 insertions, 0 deletions