• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o
3# RUN: ld.lld %t.o -o %t -pie
4# RUN: llvm-readelf -r -S %t | FileCheck %s
5
6# Unlike bfd and gold we accept this.
7
8# CHECK: .foobar           PROGBITS        00002180
9# CHECK: .got              PROGBITS        [[GOT:[0-9a-z]*]]
10# CHECK-DAG: 00002182  00000008 R_386_RELATIVE
11# CHECK-DAG: [[GOT]]   00000008 R_386_RELATIVE
12foo:
13
14.section .foobar, "awx"
15.global _start
16_start:
17 movl foo@GOT, %ebx
18