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