llvm-capstone/lld/test/archive-tentdef-search.objtxt
Nick Kledzik c314b46e71 This is my Driver refactoring patch.
The major changes are:
1) LinkerOptions has been merged into TargetInfo
2) LinkerInvocation has been merged into Driver
3) Drivers no longer convert arguments into an intermediate (core) argument 
   list, but instead create a TargetInfo object and call setter methods on 
   it. This is only how in-process linking would work. That is, you can 
   programmatically set up a TargetInfo object which controls the linking.
4) Lots of tweaks to test suite to work with driver changes
5) Add the DarwinDriver
6) I heavily doxygen commented TargetInfo.h

Things to do after this patch is committed:
a) Consider renaming TargetInfo, given its new roll. 
b) Consider pulling the list of input files out of TargetInfo. This will 
   enable in-process clients to create one TargetInfo the re-use it with 
   different input file lists.
c) Work out a way for Drivers to format the warnings and error done in 
   core linking.

llvm-svn: 178776
2013-04-04 18:59:24 +00:00

44 lines
1.0 KiB
Plaintext

# RUN: lld -core %s | FileCheck -check-prefix=CHK1 %s
# RUN: lld -core --commons-search-archives %s | FileCheck -check-prefix=CHK2 %s
#
# Tests that -commons-search-archives cause core linker to look for overrides
# of tentative definition in archives, and that not using that option
# does not search.
#
---
defined-atoms:
- name: foo
type: code
- name: bar
scope: global
type: zero-fill
merge: as-tentative
---
kind: archive
members:
- name: bar.o
content:
defined-atoms:
- name: bar
scope: global
type: data
- name: bar2
type: data
...
# CHK1: name: foo
# CHK1: name: bar
# CHK1: merge: as-tentative
# CHK1: ...
# CHK2: name: foo
# CHK2: name: bar
# CHK2-NOT: merge: as-tentative
# CHK2: name: bar2
# CHK2: ...