LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

x86_64 software issues part 1

Posted 03-06-2012 at 09:39 AM by Rod3775

This was my first experience with 64 bit software. I did a stock install of Slackware64, and ran into the following issues:
(a) wpa_supplicant could not reauthenticate after a disconnect.
(b) wmctrl did not work correctly (could not return window list)
(a) I tried to patch wpa_cli to monitor wpa_supplicant and restart it, and discovered that when it is compiled with -O2 (as specified in its Makefile), gcc-4.5.2 compiled bad code - the return value of a function returning...
Member
Posted in Uncategorized
Views 1269 Comments 0 Rod3775 is offline
Old

See source code intermixed with assembly

Posted 01-16-2012 at 03:25 AM by hydraMax (Bits and Pixels)

Maybe everybody else already knows this, but I thought it was pretty neat anyway:

If you compile some C code with -g option (to include debugging symbols), you can then use objdump on the binary, with the -S switch, to get source code intermixed with assembly. For example, here is a snippet from one of my binaries:

Code:
int main() {
  401163:       55                      push   %rbp
  401164:       48 89 e5                mov    %rsp,%rbp
  401167:
...
Member
Posted in Uncategorized
Views 1109 Comments 0 hydraMax is offline

  



All times are GMT -5. The time now is 10:05 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration