aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/linkerscript/phdr-check.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/linkerscript/phdr-check.s')
-rw-r--r--test/ELF/linkerscript/phdr-check.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ELF/linkerscript/phdr-check.s b/test/ELF/linkerscript/phdr-check.s
index c7229ed3312c..b35256be6b71 100644
--- a/test/ELF/linkerscript/phdr-check.s
+++ b/test/ELF/linkerscript/phdr-check.s
@@ -1,14 +1,14 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: echo "SECTIONS { . = 0x10000000; .text : {*(.text.*)} }" > %t.script
+# RUN: echo "SECTIONS { . = 0x10000000 + SIZEOF_HEADERS; .text : {*(.text.*)} }" > %t.script
# RUN: ld.lld -o %t1 --script %t.script %t
# RUN: llvm-readobj -program-headers %t1 | FileCheck %s
# CHECK: ProgramHeaders [
# CHECK-NEXT: ProgramHeader {
# CHECK-NEXT: Type: PT_PHDR (0x6)
# CHECK-NEXT: Offset: 0x40
-# CHECK-NEXT: VirtualAddress: 0xFFFF040
+# CHECK-NEXT: VirtualAddress: 0x10000040
.global _start
_start: