[lld] r249719 - [ELF2] Test for i686 relocations updated with comments.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 8 11:58:10 PDT 2015
Author: grimar
Date: Thu Oct 8 13:58:10 2015
New Revision: 249719
URL: http://llvm.org/viewvc/llvm-project?rev=249719&view=rev
Log:
[ELF2] Test for i686 relocations updated with comments.
Reviewed by Rafael.
Modified:
lld/trunk/test/elf2/relocation-i686.s
Modified: lld/trunk/test/elf2/relocation-i686.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/relocation-i686.s?rev=249719&r1=249718&r2=249719&view=diff
==============================================================================
--- lld/trunk/test/elf2/relocation-i686.s (original)
+++ lld/trunk/test/elf2/relocation-i686.s Thu Oct 8 13:58:10 2015
@@ -39,6 +39,15 @@ R_386_PC32_2:
// Create a .got
movl bar at GOT, %eax
+// ADDR: Name: .plt
+// ADDR-NEXT: Type: SHT_PROGBITS
+// ADDR-NEXT: Flags [
+// ADDR-NEXT: SHF_ALLOC
+// ADDR-NEXT: SHF_EXECINSTR
+// ADDR-NEXT: ]
+// ADDR-NEXT: Address: 0x12030
+// ADDR-NEXT: Offset: 0x2030
+// ADDR-NEXT: Size: 8
// ADDR: Name: .got
// ADDR-NEXT: Type: SHT_PROGBITS
@@ -59,10 +68,11 @@ R_386_GOTPC:
// CHECK-NEXT: 12014: {{.*}} movl $4156, %eax
.section .dynamic_reloc, "ax", at progbits
- call bar+4
+ call bar
+// 0x12030 - (0x12019 + 5) = 18
// CHECK: Disassembly of section .dynamic_reloc:
// CHECK-NEXT: .dynamic_reloc:
-// CHECK-NEXT: 12019: e8 16 00 00 00 calll 22
+// CHECK-NEXT: 12019: e8 12 00 00 00 calll 18
.section .R_386_GOT32,"ax", at progbits
.global R_386_GOT32
More information about the llvm-commits
mailing list