20 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3# RUN: echo "foo = 0x22;" > %t.script4 5## This testcase checks that we apply -defsym and linker script6## in the same order are they specified in a command line. 7 8## Check that linker script can override -defsym assignments.9# RUN: ld.lld %t.o -defsym=foo=0x11 -script %t.script -o %t10# RUN: llvm-readobj --symbols %t | FileCheck %s11# CHECK: Name: foo12# CHECK-NEXT: Value: 0x2213 14## Check that -defsym can override linker script. Check that multiple15## -defsym commands for the same symbol are allowed.16# RUN: ld.lld %t.o -script %t.script -defsym=foo=0x11 -defsym=foo=0x33 -o %t17# RUN: llvm-readobj --symbols %t | FileCheck %s --check-prefix=REORDER18# REORDER: Name: foo19# REORDER-NEXT: Value: 0x3320