[llvm] 14a06b0 - [test] Improve MC/AArch64/elf-reloc-plt32.s to check defined symbol
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 14 15:50:08 PDT 2023
Author: Fangrui Song
Date: 2023-03-14T15:50:03-07:00
New Revision: 14a06b0dcc0bd5b60f362a8e88cbd0229c09a248
URL: https://github.com/llvm/llvm-project/commit/14a06b0dcc0bd5b60f362a8e88cbd0229c09a248
DIFF: https://github.com/llvm/llvm-project/commit/14a06b0dcc0bd5b60f362a8e88cbd0229c09a248.diff
LOG: [test] Improve MC/AArch64/elf-reloc-plt32.s to check defined symbol
Added:
Modified:
llvm/test/MC/AArch64/elf-reloc-plt32.s
Removed:
################################################################################
diff --git a/llvm/test/MC/AArch64/elf-reloc-plt32.s b/llvm/test/MC/AArch64/elf-reloc-plt32.s
index 5bde72d5f44cb..fdf603ffe3bae 100644
--- a/llvm/test/MC/AArch64/elf-reloc-plt32.s
+++ b/llvm/test/MC/AArch64/elf-reloc-plt32.s
@@ -1,10 +1,14 @@
// RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o - | \
// RUN: llvm-readobj -r - | FileCheck %s
+.globl func
+func:
.section .data
this:
.word extern_func at PLT - this + 4
+ .word func at plt - . + 8
// CHECK: Section ({{.*}}) .rela.data
// CHECK-NEXT: 0x0 R_AARCH64_PLT32 extern_func 0x4
+// CHECK-NEXT: 0x4 R_AARCH64_PLT32 func 0x8
// CHECK-NEXT: }
More information about the llvm-commits
mailing list