brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 4a69ec0 Raw
40 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple x86_64-apple-macosx10.9 -filetype=obj \3# RUN:   -o %t/MachO_extra_def_weak.o %S/Inputs/MachO_extra_def_weak.s4# RUN: llvm-mc -triple x86_64-apple-macosx10.9 -filetype=obj \5# RUN:   -o %t/MachO_weak_definitions.o %s6# RUN: llvm-jitlink -noexec -check=%s %t/MachO_weak_definitions.o \7# RUN:   %t/MachO_extra_def_weak.o8#9# Check that objects linked separately agree on the address of weak symbols.10#11# jitlink-check: *{8}ExtraDefAddrInThisFile = *{8}ExtraDefAddrInExtraFile12 13	.section	__TEXT,__text,regular,pure_instructions14	.build_version macos, 10, 14	sdk_version 10, 1415	.globl	_main16	.p2align	4, 0x9017_main:18	retq19 20	.section	__DATA,__data21	.globl	ExtraDef22	.weak_definition	ExtraDef23	.p2align	224ExtraDef:25	.long	126 27	.globl	ExtraDefAddrInThisFile28	.p2align	329ExtraDefAddrInThisFile:30	.quad	ExtraDef31 32# Take the address of ExtraDefAddrInExtraFile to force its materialization33	.globl	extra_file_anchor34	.p2align	335extra_file_anchor:36	.quad	ExtraDefAddrInExtraFile37 38 39.subsections_via_symbols40