libc-2.3.5.so C runtime library's .dynsym table to get the --start- and
--stop-addresses objdump needs to allow me to look at the assembly code
libc provides for the standard C library functions.
This is bad.
(And what idiot committee decided to put the start-addresses in hex and
the lengths of the snippets in decimal? twisted mofoes.)
For example, here's the libc-2.3.5.so .dynsym line for the standard C
string function strcpy(), which copies a string into a new location:
00066a8c 35 FUNC GLOBAL DEFAULT 11 strcpy@@GLIBC_2.0
here's the resulting objdump command (I was in the /lib directory):
objdump -d --no-show-raw-insn --start-address=0x00066a8c --stop-address=0x00066aaf libc-2.3.5.so
and here's the output of that command:
libc-2.3.5.so: file format elf32-i386
Disassembly of section .plt:
Disassembly of section .text:
00066a8c
66a8c: push %ebp
66a8d: mov %esp,%ebp
66a8f: push %esi
66a90: mov 0x8(%ebp),%esi
66a93: mov 0xc(%ebp),%edx
66a96: mov %esi,%eax
66a98: sub %edx,%eax
66a9a: lea 0xffffffff(%eax),%ecx
66a9d: movzbl (%edx),%eax
66aa0: add $0x1,%edx
66aa3: test %al,%al
66aa5: mov %al,(%edx,%ecx,1)
66aa8: jne 66a9d
66aaa: mov %esi,%eax
66aac: pop %esi
66aad: pop %ebp
66aae: ret
My eyes started watering last night and haven't stopped . . . .
--
tinmimus99@hotmail.com
smeeter 11 or maybe 12
mp 10
mhm 29x13
Where am I, Dove?
< _The Einstein Intersection_

















