X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FMC%2FELF%2Frelocation-386.s;h=2af6addc3d2b29a16263804a1573f4557888276a;hb=f194367792d7c43f0476e11e7c0d171b8bfbc601;hp=1409465b73e45403c57f5a5c6af5fb15cc5ba06f;hpb=224dbf4aec6488e6ac55f2155a238e57086ef473;p=oota-llvm.git diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s index 1409465b73e..2af6addc3d2 100644 --- a/test/MC/ELF/relocation-386.s +++ b/test/MC/ELF/relocation-386.s @@ -4,8 +4,8 @@ // correctly point to the section or the symbol. // CHECK: Relocations [ -// CHECK-NEXT: Section (2) .rel.text { -// CHECK-NEXT: 0x2 R_386_GOTOFF .rodata.str1.16 0x0 +// CHECK-NEXT: Section {{.*}} .rel.text { +// CHECK-NEXT: 0x2 R_386_GOTOFF .Lfoo 0x0 // CHECK-NEXT: 0x{{[^ ]+}} R_386_PLT32 bar2 0x0 // CHECK-NEXT: 0x{{[^ ]+}} R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 0x0 // Relocation 3 (bar3@GOTOFF) is done with symbol 7 (bss) @@ -62,6 +62,12 @@ // CHECK-NEXT: 0x9E R_386_PC16 und_symbol 0x0 // Relocation 28 (und_symbol-bar2) is of type R_386_PC8 // CHECK-NEXT: 0xA0 R_386_PC8 und_symbol 0x0 +// CHECK-NEXT: 0xA3 R_386_GOTOFF und_symbol 0x0 +// Relocation 29 (zed@PLT) is of type R_386_PLT32 and uses the symbol +// CHECK-NEXT: 0xA9 R_386_PLT32 zed 0x0 +// CHECK-NEXT: 0xAF R_386_PC32 tr_start 0x0 +// CHECK-NEXT: 0xB3 R_386_16 foo 0x0 +// CHECK-NEXT: 0xB5 R_386_8 foo 0x0 // CHECK-NEXT: } // CHECK-NEXT: ] @@ -73,7 +79,7 @@ // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: TLS // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: zedsec (0x5) +// CHECK-NEXT: Section: zedsec // CHECK-NEXT: } // Symbol 7 is section 4 // CHECK: Symbol { @@ -83,7 +89,7 @@ // CHECK-NEXT: Binding: Local // CHECK-NEXT: Type: Section // CHECK-NEXT: Other: 0 -// CHECK-NEXT: Section: .bss (0x4) +// CHECK-NEXT: Section: .bss // CHECK-NEXT: } .text @@ -127,6 +133,15 @@ bar2: .word und_symbol-bar2 .byte und_symbol-bar2 + leal 1 + und_symbol@GOTOFF, %edi + movl zed@PLT(%eax), %eax + + .code64 + jmpq *tr_start(%rip) + + .word foo + .byte foo + .section zedsec,"awT",@progbits zed: .long 0