From a5ff979c114a658c69fddd065d702a13c40f6ae1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 18 Dec 2010 01:16:59 +0000 Subject: [PATCH] Test for push being relaxed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122124 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ELF/relocation-386.s | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s index a442d4298d9..f106f89b708 100644 --- a/test/MC/ELF/relocation-386.s +++ b/test/MC/ELF/relocation-386.s @@ -174,6 +174,12 @@ // CHECK-NEXT: ('r_sym', 0x00000004) // CHECK-NEXT: ('r_type', 0x00000020) // CHECK-NEXT: ), +// Relocation 23 ($bar) is of type R_386_32 and uses the section +// CHECK-NEXT: Relocation 0x00000017 +// CHECK-NEXT: (('r_offset', +// CHECK-NEXT: ('r_sym', +// CHECK-NEXT: ('r_type', 0x00000001) +// CHECK-NEXT: ), .text bar: @@ -209,6 +215,7 @@ bar2: movl zed@TLSLDM(%eax), %eax movl zed@TPOFF(%eax), %eax movl zed@DTPOFF(%eax), %eax + pushl $bar .section zedsec,"awT",@progbits zed: -- 2.11.0