f64a6eeaf0
Most importantly, this version of delocate works for ppc64le. It should also work for x86-64, but will need significant testing to make sure that it covers all the cases that the previous delocate.go covered. It's less stringtastic than the old code, however the parser isn't as nice as I would have liked. I thought that the reason we put up with AT&T syntax with Intel is so that assembly syntax could be somewhat consistent across platforms. At least for ppc64le, that does not appear to be the case. Change-Id: Ic7e3c6acc3803d19f2c3ff5620c5e39703d74212 Reviewed-on: https://boringssl-review.googlesource.com/16464 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
15 lines
249 B
ArmAsm
15 lines
249 B
ArmAsm
.text
|
|
foo:
|
|
# TOC references may have offsets.
|
|
addis 3, 2, 5+foo@toc@ha
|
|
addi 3, 3, 10+foo@toc@l
|
|
|
|
addis 3, 2, 15+foo@toc@ha
|
|
addi 3, 3, 20+foo@toc@l
|
|
|
|
addis 4, 2, foo@toc@ha
|
|
addi 4, 4, foo@toc@l
|
|
|
|
addis 5, 2, 5+foo@toc@ha
|
|
ld 5, 10+foo@toc@l(5)
|