llvm-objcoy creating binary file with mode 32768

26 views
Skip to first unread message

Mats Larsson

unread,
Nov 8, 2023, 10:08:35 AM11/8/23
to emscripten-discuss
Hello,

I am using objcopy in emscription to create a binary file:
llvm-objcopy -O binary test.elf test.bin

When i try to read test.bin I get EACCESS and the reson seem to be that test.bin has mode=32768 (octal 100000), see screenshot below:

Other files, for example the output of clang has mode=100666 or 100777 (octal), so 100000 does not seem to be correct.
Any ideas?

Skärmklipp.PNG


Mats Larsson

unread,
Nov 8, 2023, 1:55:42 PM11/8/23
to emscripten-discuss

Sorry, just realized that I posted this to an Emscripten group when the topic was about Emception.
Anyway, I was able to make a workaround fix by calling FS.chmod.

/Mats

Reply all
Reply to author
Forward
0 new messages