brintos

brintos / llvm-project-archived public Read only

0
0
Text · 751 B · cb47cb6 Raw
28 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3// RUN: ld.lld --hash-style=sysv %t.o %S/Inputs/segment-start.script -shared -o %t.so4// RUN: llvm-readobj --dyn-symbols %t.so | FileCheck %s5 6// CHECK:      Name: foobar17// CHECK-NEXT: Value: 0x80018 9// CHECK:      Name: foobar210// CHECK-NEXT: Value: 0x800211 12// CHECK:      Name: foobar313// CHECK-NEXT: Value: 0x800314 15// CHECK:      Name: foobar416// CHECK-NEXT: Value: 0x800417 18.data19.quad foobar120.quad foobar221.quad foobar322.quad foobar423 24// RUN: echo "SECTIONS { . = SEGMENT_START(\"foobar\", foo); }" > %t.script25// RUN: not ld.lld %t.o %t.script -shared -o /dev/null 2>&1 \26// RUN: | FileCheck --check-prefix=ERR %s27// ERR: {{.*}}.script:1: symbol not found: foo28