brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 2eb5282 Raw
42 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: ld.lld %t.o -o %t5# RUN: llvm-readobj --symbols %t | FileCheck %s6# CHECK:    Name: __ehdr_start (1)7# CHECK-NEXT:    Value: [[ADDR:.*]]8# CHECK-NEXT:    Size: 09# CHECK-NEXT:    Binding: Local (0x0)10# CHECK-NEXT:    Type: None (0x0)11# CHECK-NEXT:    Other [ (0x2)12# CHECK-NEXT:      STV_HIDDEN (0x2)13# CHECK-NEXT:    ]14# CHECK-NEXT:    Section: .text (0x1)15 16# CHECK:    Name: __executable_start17# CHECK-NEXT:    Value: [[ADDR]]18# CHECK-NEXT:    Size: 019# CHECK-NEXT:    Binding: Local20# CHECK-NEXT:    Type: None21# CHECK-NEXT:    Other [22# CHECK-NEXT:      STV_HIDDEN23# CHECK-NEXT:    ]24# CHECK-NEXT:    Section: .text25 26.text27.global __ehdr_start, _start28_start:29  .quad __ehdr_start30  .quad __executable_start31 32# RUN: ld.lld -r %t.o -o %t.r33# RUN: llvm-readobj --symbols %t.r | FileCheck %s --check-prefix=RELOCATABLE34 35# RELOCATABLE:    Name: __ehdr_start (1)36# RELOCATABLE-NEXT:    Value: 0x037# RELOCATABLE-NEXT:    Size: 038# RELOCATABLE-NEXT:    Binding: Global (0x1)39# RELOCATABLE-NEXT:    Type: None (0x0)40# RELOCATABLE-NEXT:    Other: 041# RELOCATABLE-NEXT:    Section: Undefined (0x0)42