1 # Tests the functionality of archive libraries reading
3 # Note: The binary files would not be required once we have support to generate
4 # binary archives from textual(yaml) input
6 # Tests generated using the source files below
24 # gcc -c main.c fn.c fn1.c
26 RUN: lld -flavor gnu -target x86_64-linux -e main %p/Inputs/mainobj.x86_64 \
27 RUN: --whole-archive %p/Inputs/libfnarchive.a --no-whole-archive --output-filetype=yaml \
28 RUN: | FileCheck -check-prefix FORCELOAD %s
30 FORCELOAD: defined-atoms:
31 FORCELOAD: - name: fn1
32 FORCELOAD: scope: global
33 FORCELOAD: content: [ 55, 48, 89, E5, B8, 00, 00, 00, 00, 5D, C3 ]
35 FORCELOAD: scope: global
36 FORCELOAD: content: [ 55, 48, 89, E5, B8, 00, 00, 00, 00, 5D, C3 ]
37 FORCELOAD: absolute-atoms:
38 FORCELOAD: - name: main.c
40 FORCELOAD: - name: fn1.c
42 FORCELOAD: - name: fn.c