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
..
2019-01-28 15:05:10 +00:00
2019-03-12 17:00:25 +00:00
2017-04-03 21:50:04 +00:00
2019-03-21 21:01:31 +00:00
2019-03-12 17:00:25 +00:00
2019-01-28 15:05:10 +00:00
2017-10-03 08:41:59 +00:00
2019-03-12 17:00:25 +00:00
2019-01-15 22:03:08 +00:00
2019-01-15 22:03:08 +00:00
2018-10-04 18:49:21 +00:00
2017-08-20 18:18:44 +00:00
2014-11-04 13:41:33 +00:00
2015-03-02 21:33:18 +00:00
2019-01-15 22:03:08 +00:00
2018-12-19 16:15:05 +00:00
2018-05-09 08:20:14 +00:00
2014-07-08 23:47:31 +00:00
2017-08-20 18:18:44 +00:00
2017-02-22 09:02:27 +00:00
2018-10-10 21:07:02 +00:00
2016-12-09 11:44:57 +00:00
2017-08-20 18:18:44 +00:00
2016-03-31 23:07:50 +00:00
2018-10-05 23:25:39 +00:00
2017-08-20 18:31:30 +00:00
2014-10-31 05:07:00 +00:00
2015-07-06 21:36:23 +00:00
2017-05-14 18:34:56 +00:00
2015-07-06 14:26:07 +00:00
2016-05-26 01:45:12 +00:00
2016-11-16 05:10:28 +00:00
2017-08-15 20:29:24 +00:00
2015-06-24 18:03:39 +00:00
2015-06-11 21:42:18 +00:00
2016-01-16 22:40:09 +00:00
2016-03-21 21:09:38 +00:00
2017-10-05 20:01:32 +00:00
2016-06-27 19:53:53 +00:00
2018-01-12 22:09:19 +00:00
2018-01-12 22:09:19 +00:00
2015-02-27 18:58:23 +00:00
2015-06-24 10:20:30 +00:00
2017-09-13 13:43:01 +00:00
2018-01-19 17:13:12 +00:00
2014-11-04 13:19:29 +00:00
2014-10-10 18:33:51 +00:00
2014-11-04 13:19:29 +00:00
2014-11-04 13:19:29 +00:00
2014-10-10 18:33:51 +00:00
2014-11-04 13:19:29 +00:00
2014-11-04 13:19:29 +00:00
2014-11-03 14:09:47 +00:00
2016-12-13 20:20:17 +00:00
2017-10-10 20:00:07 +00:00
2019-03-21 21:01:31 +00:00
2019-01-24 20:59:44 +00:00
2015-02-17 18:54:22 +00:00
2015-08-06 20:05:27 +00:00
2018-10-05 21:10:03 +00:00
2019-02-01 17:38:08 +00:00
2016-06-20 22:16:18 +00:00
2015-07-21 21:40:33 +00:00
2017-07-14 16:00:16 +00:00
2014-10-10 00:17:57 +00:00
2014-10-10 06:59:05 +00:00
2019-02-22 08:58:23 +00:00
2016-06-27 19:53:53 +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
2017-06-05 21:45:25 +00:00
2014-12-19 02:31:01 +00:00
2019-01-28 14:11:35 +00:00
2014-12-04 07:37:02 +00:00
2016-03-21 20:59:15 +00:00
2019-02-04 17:28:46 +00:00
2019-01-28 14:11:35 +00:00
2018-06-01 05:31:58 +00:00
2018-11-11 18:40:33 +00:00
2015-12-18 16:07:17 +00:00
2015-09-21 19:17:18 +00:00
2019-03-01 17:31:32 +00:00
2016-02-16 15:16:00 +00:00
2014-07-08 23:47:31 +00:00
2014-07-01 17:19:10 +00:00
2016-09-14 20:22:03 +00:00
2019-01-16 01:34:48 +00:00
2018-01-12 02:11:31 +00:00
2018-05-30 03:26:28 +00:00
2018-12-15 00:58:12 +00:00
2017-05-09 17:51:38 +00:00
2017-08-23 21:36:04 +00:00
2019-02-20 02:22:36 +00:00
2018-08-08 16:34:03 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2019-03-12 17:00:25 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2016-06-27 19:53:53 +00:00
2017-09-21 08:25:59 +00:00
2019-01-03 08:08:23 +00:00