Files
archived-llvm-mirror/test/Object
Steven Wu 81b4af3e73 [Object] Fix reading objects created with -fembed-bitcode-marker
Currently, this fails with many tools, e.g.

$ clang -fembed-bitcode-marker -c -o test.o test.c
$ nm test.o
nm: test.o The file was not recognized as a valid object file

-fembed-bitcode-marker creates a LLVM,bitcode section consisting of a single
byte. When reading the object file, IRObjectFile::findBitcodeInObject succeeds,
causing SymbolicFile::createSymbolicFile to try to read the "bitcode" rather
than using the outer Mach-O data - when then fails.

Fix this by making findBitcodeInObject return an error if the section size <= 1.

Patched by: Nicholas Allegra

Differential Revision: https://reviews.llvm.org/D44373

llvm-svn: 356718
2019-03-21 21:01:31 +00:00
..
2017-08-15 20:29:24 +00:00
2015-08-06 20:05:27 +00:00
2019-02-22 08:58:23 +00:00
2017-06-05 21:45:25 +00:00
2017-06-05 21:45:25 +00:00
2016-02-16 15:16:00 +00:00