I’m reading the disassemble code of mit os’s kernel code. I think the kernel code should follow the same rule. I saw the instruction in the kernel that load the Global Descriptor Table is as follows: lgdtl 0x10f018 I know the lgdt takes the length of the GDT (16bit) and the address of the GDT (32b…
Tag: linux
Why a stripped binary file can still have library call information in the disassembled file?
test platform is 32 bit Linux. I compile a c program without strip the symbol information, and use objdump to disassembly the elf executable file. Here is part of the results. If I use: to remove the symbol info and use objdump to disassembly the elf executable file again, I can still see the results like: So…
How to run VLC stream on Linux server using Java code?
I am trying to run vlc stream from my Java code on Debian server. Simple commands as given in the example below works fine both from java code as well as terminal. But I try to run more advanced command with multiple options” This is my main class: and this is class for executing shell commands: Process…
Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
I just manually installed a new plugin on my WordPress site, created a table in MySQL for the plugin’s entries, and when I try to open the page that uses the plugin, I receive this error: This is the MySQL info listed in my config file (which I believe is correct): This is the main contents of the /etc/…
gcc 4.x not supporting x87 FPU math?
I’ve been trying to compile gcc 4.x from the sources using –with-fpmath=387 but I’m getting this error: “Invalid –with-fpmath=387”. I looked in the configs and found that it doesn’t support this option (even though docs still mention it as a possible option): Basicall…
saving build data only in slave node Jenkins
I set up slave node in Jenkins. However when I am running job in slave node, I realized that build data, workspace and log information are still save in master node(Jenkins server). Is there a way to save this data in slave node instead of master node? Answer The job workspace is not saved to the master, unle…
How to create virtual CAN port on linux? (C++)
I want to create program that would emulate CAN port for testing purposes for another big application. Program should send previously recorded data through this virtual CAN. Anyone has any experience with such thing? I’m thinking to establish virtual COM, and send through it data packed in CAN Frames. C…
How can I link to an older version of a shared library
I’m building my program on my computer, on which libtiff.so -> libtiff.so.5. And then pushing the builds on another machine on which libtiff.so -> libtiff.so.4. At runtime, my program exists : « error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or dir…
How do I ‘skip’ minified JavaScript files while searching through a tree of js files?
I search a large js tree frequently for certain Tokens. Consider you were looking for all of the ‘.prototype’ tokens in your js files. I would do something like this: Of coarse this produces a boat-load of hits on minified vendor libs. Obscuring the real results I am after. i.e: results like that …
error: aggregate value used where an integer was expected
I am having following union and I have a function When i compile this code it is giving following error Answer You are failing to access a field of the indexed union array: mydata[0] is a value of type union data, and can’t be cast to uint64_t. You need to access the proper union member: to select the u…