[PATCH] D95605: [llvm-readobj/elf] - Report "bitcode files are not supported" warning for bitcode files.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 06:28:26 PST 2021


grimar added inline comments.


================
Comment at: llvm/test/tools/llvm-readobj/basic.test:27
+## Note: 'echo -e -n "\x42\x43\xc0\xde" > %t.bc.1' simply doesn't work properly on windows.
+## It has an issue with writing of 2 last bytes and emits a different data instead.
+## echo.exe from GnuWin32 works properly though, but using of python is a more stable way.
----------------
jhenderson wrote:
> I'm guessing the problem is related to the third and fourth bytes being greater than 0x7f and therefore potentially signed?
> I'm guessing the problem is related to the third and fourth bytes being greater than 0x7f and therefore potentially signed?

Hmm, looks like that! 

The output of `echo -e -n "\x7e\x7f\x80\x81"` is `7e 7f c2 80 c2 81`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95605/new/

https://reviews.llvm.org/D95605



More information about the llvm-commits mailing list