Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - objdump problem with GCC 4.8.3 + QNX6.5.0: (1 Item)
   
objdump problem with GCC 4.8.3 + QNX6.5.0  
Using gcc 4.8.3 objdump-2.24 (or any other version I could try ) when used with -S and -d, to look at assembly code is 
giving an output that doesn't make any sense.


Example, output of objdump:
  0:   55                      push   %ebp
 131:   89 e5 57 56 53 83 e4    movl   $0xe,0x4(%esp)
 138:   f0
 139:   81 ec 40 02 00 00 e8    movl   $0x0,(%esp)
 140:   fc ff                   fmulp  %st,%st(1)
 142:   ff ff 85 c0             fstpl  0x18(%esp)
 146:   74 0c c7 04 24          call   147 <main+0x17>
 14b:   00 00 00 00             fldl   0x18(%esp)
 14f:   e8 fc ff                mov    %eax,(%esp)
 152:   ff ff 0f 31             fstpl  0x4(%esp)


And same thing but using -S with gcc
	pushl	%ebp
	.cfi_def_cfa_offset 8
	.cfi_offset 5, -8
	movl	%esp, %ebp
	.cfi_def_cfa_register 5
	pushl	%edi
	pushl	%esi
	pushl	%ebx
	andl	$-16, %esp
	subl	$576, %esp
	.cfi_offset 7, -12
	.cfi_offset 6, -16
	.cfi_offset 3, -20
.LEHB0:
	call	_Z21FindCpuSpeedForPClockv
	testl	%eax, %eax
	je	.L2
	movl	$.LC0, (%esp)
	call	puts