xref: /llvm-project-15.0.7/lld/test/ELF/linkerscript/absolute.s (revision 052d95a6)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3# RUN: echo "SECTIONS { foo = ABSOLUTE(.) + 1; };" > %t.script
4# RUN: ld.lld -o %t --script %t.script %t.o
5# RUN: llvm-readobj --symbols %t | FileCheck %s
6
7# CHECK:        Name: foo
8# CHECK-NEXT:   Value:
9# CHECK-NEXT:   Size:
10# CHECK-NEXT:   Binding:
11# CHECK-NEXT:   Type:
12# CHECK-NEXT:   Other:
13# CHECK-NEXT:   Section: Absolute
14# CHECK-NEXT: }
15
16.text
17.globl _start
18_start:
19

served by {OpenGrok

Last Index Update: Tue Oct 21 18:42:31 GMT 2025