xref: /llvm-project-15.0.7/lld/test/ELF/linkerscript/ehdr_start.s (revision f2a8bccf)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4# RUN: echo "SECTIONS { }" > %t.script
5# RUN: ld.lld %t.o -script %t.script -o %t
6# RUN: llvm-readobj -symbols %t | FileCheck %s
7# CHECK:    Name: __ehdr_start (1)
8# CHECK-NEXT:    Value: 0x0
9# CHECK-NEXT:    Size: 0
10# CHECK-NEXT:    Binding: Local (0x0)
11# CHECK-NEXT:    Type: None (0x0)
12# CHECK-NEXT:    Other [ (0x2)
13# CHECK-NEXT:      STV_HIDDEN (0x2)
14# CHECK-NEXT:    ]
15# CHECK-NEXT:    Section: .text (0x1)
16
17.text
18.global _start, __ehdr_start
19_start:
20	.quad __ehdr_start
21

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026