summaryrefslogtreecommitdiffstats
path: root/lld/test/darwin/Inputs/native-and-mach-o.objtxt
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-04-24 15:51:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-04-24 15:51:45 +0000
commitc08ab8e6e4559b6ba5bc16f70c75da86bd278a4f (patch)
tree3c1f6055eb6cdfe718ae69a25ccf9371227ac302 /lld/test/darwin/Inputs/native-and-mach-o.objtxt
parentaf9fdb9dcfec7fd26dd8085a6311035cd7e863ae (diff)
downloadbcm5719-llvm-c08ab8e6e4559b6ba5bc16f70c75da86bd278a4f.tar.gz
bcm5719-llvm-c08ab8e6e4559b6ba5bc16f70c75da86bd278a4f.zip
Delete unnecessary generality in loadFile.
loadFile could load mulitple files just because yaml has a feature for putting multiple documents in one file. Designing a linker around what yaml can do seems like a bad idea to me. This patch changes it to read a single file. There are further improvements to be done to the api and they will follow shortly. llvm-svn: 235724
Diffstat (limited to 'lld/test/darwin/Inputs/native-and-mach-o.objtxt')
-rw-r--r--lld/test/darwin/Inputs/native-and-mach-o.objtxt17
1 files changed, 17 insertions, 0 deletions
diff --git a/lld/test/darwin/Inputs/native-and-mach-o.objtxt b/lld/test/darwin/Inputs/native-and-mach-o.objtxt
new file mode 100644
index 00000000000..58124eb8332
--- /dev/null
+++ b/lld/test/darwin/Inputs/native-and-mach-o.objtxt
@@ -0,0 +1,17 @@
+--- !mach-o
+arch: x86_64
+file-type: MH_OBJECT
+sections:
+ - segment: __TEXT
+ section: __text
+ type: S_REGULAR
+ attributes: [ S_ATTR_PURE_INSTRUCTIONS ]
+ address: 0
+ content: [ 0xC3 ]
+global-symbols:
+ - name: _foo
+ type: N_SECT
+ scope: [ N_EXT ]
+ sect: 1
+ desc: [ ]
+ value: 0
OpenPOWER on IntegriCloud