tokenizer.so for x86_64
bjanesko
Posts: 2
Hello. I am new to the BASIC Stamp. I'm attempting to run the bstamp tools on an x86_64 Linux box. Both bstamp, and the example program provided by Parallax with the "BASIC Stamp Tokenizer", give error message
./tokenizer.so: wrong ELF class: ELFCLASS32: Success
First, I assume that this is because tokenizer.so is compiled for i386 32-bit architecture. Is this correct? Second, is there anything that I can do to fix this, short of "run it on a different computer"?
./tokenizer.so: wrong ELF class: ELFCLASS32: Success
First, I assume that this is because tokenizer.so is compiled for i386 32-bit architecture. Is this correct? Second, is there anything that I can do to fix this, short of "run it on a different computer"?
Comments
bjanesko, any news on your end? figure anything out?
maybe if we could get the source code and compile it ourselves on a 64-bit OS
Also, any way to reverse engineer the windows tokenizer.dll (and re-compile it in linux) seems to work on 64-bit windows just fine?
-Tor
As far as the ia32-libs, I double checked and sure enough it is already installed. I ran the sample program again and it failed when calling the tokenizer with the same ELFCLASS32 problem.
I have gotten the windows DLL file de-compiled, now I just need to convert it to 64-bit assembly... and recompile it... and I should be good to go? right? If anyone has any experience converting/translating 32 to 64 bit asm, let me know, give me some tips.
If I get it done, I'll be sure to post it on SourceForge so no one else has to go through the same hassle.
Or if anyone has any suggestions about getting the 32-bit file to work on amd64... please share
-Cor
All OS's have pros and cons, just trying to find the one that fits best for the situation.
But this isn't a bug...
@chaugen1 - Did you try recompiling the source from here...http://sourceforge.net/projects/bstamp/files/
I compiled it on Scientific Linux x64, and running ldd against the binary shows it linked against lib64. It runs... but doesn't find a BS2 because I need a usb/serial for my HW board...
So give it a try and let us know how you fare.
As far as the de-compiled DLL file goes, I had to scratch it. it wasn't what I thought it would be. Instead I went ahead a did "objdump -D" on the .so file so i will be trying to convert that to 64-bit assembly and then compiling that.
does anyone know of a 32 to 64-bit converter? If it does not exist, it might be a good project for Github. It wouldn't do everything for you but simply scripting the register changes would be nice, eventually building up to a full-blown converter.
-Cor
Code free and prosper
I may have to download these tools myself just to get a look, but whatever the cause of the original problem it's just wrong to try going via 64-bit Windows DLLs and de-reassembly.
-Tor