// REQUIRES: x86

// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: ld.lld %t -o %t2
// RUN: llvm-readobj -s -section-data %t2 | FileCheck %s

// CHECK:      Name: foo
// CHECK-NEXT: Type: SHT_PROGBITS
// CHECK-NEXT:    Flags [
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset:
// CHECK-NEXT: Size: 4
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 1
// CHECK-NEXT: EntrySize: 0
// CHECK-NEXT: SectionData (
// CHECK-NEXT:   0000: 00100100
// CHECK-NEXT: )

        .global _start
_start:
        .section foo
        .long _start

Add a test for relocations in non alloc sections.
Add a test for relocations in non alloc sections.

We already got this right, but we were not testing it.

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@265471 91177308-0d34-0410-b5e6-96231b3b80d8
