[PATCH] D100229: [lld-macho] Make load relaxation work for arm64_32

Greg McGary via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 11 20:04:46 PDT 2021


gkm accepted this revision.
gkm added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: lld/test/MachO/arm64-32-reloc-got-load.s:1
+# REQUIRES: aarch64
+
----------------
Super nitty: this and the original `arm64-reloc-got-load.s` have some tabs, and even some whitespace only differences between them.

For that matter, these 16 test files have some tabs:
```
./x86-64-reloc-got-load.s
./why-load.s
./arm64-relocs.s
./arm64-reloc-pointer-to-got.s
./weak-reference.s
./objc.s
./invalid/bad-got-to-dylib-tlv-reference.s
./invalid/bad-tlv-def.s
./invalid/bad-tlv-opcode.s
./weak-binding.s
./indirect-symtab.s
./tlv-dylib.s
./arm64-32-reloc-got-load.s
./mattrs.ll
./arm64-reloc-got-load.s
./tlv.s
```


================
Comment at: lld/test/MachO/arm64-32-reloc-got-load.s:27
+# DYLIB-NEXT:  adrp	x8, [[#]] ; 0x[[#%x,GOT:]]
+# DYLIB-NEXT:  ldr	w8, [x8, #4]
+# DYLIB-NEXT:  adrp	x8, [[#]] ; 0x[[#GOT]]
----------------
The original `arm64-reloc-got-load.s` had this comment appended to the line: `; literal pool symbol address: _foo`


================
Comment at: lld/test/MachO/arm64-32-reloc-got-load.s:29
+# DYLIB-NEXT:  adrp	x8, [[#]] ; 0x[[#GOT]]
+# DYLIB-NEXT:  ldr	w8, [x8]
+# DYLIB-NEXT:  ret
----------------
The original arm64-reloc-got-load.s had this comment appended to the line: `; literal pool symbol address: _bar`




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100229/new/

https://reviews.llvm.org/D100229



More information about the llvm-commits mailing list