// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: ld.lld %t.o -o %t -shared
// RUN: llvm-readobj -r  %t | FileCheck %s

        .section        .data.foo,"aw",@progbits
        .quad   foo

        .section        .data.zed,"aw",@progbits
        .quad   foo

// CHECK:      Section ({{.*}}) .rela.dyn {
// CHECK-NEXT:   0x2000 R_X86_64_64 foo 0x0
// CHECK-NEXT:   0x2008 R_X86_64_64 foo 0x0
// CHECK-NEXT: }

Add a test for the offset of dynamic relocations.
Add a test for the offset of dynamic relocations.

I found that a patch I am working on would have broken this and no
existing test found it.

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