From: Colin B. on
hadi motamedi <motamedi24(a)gmail.com> wrote:

> I tried to install the gcc on my Solaris 8 , as the followings :
> %gunzip gcc-3.2.2-sol8-sparc-local.gz |tar xvf ?
> %pkgadd ?d gcc-3.2.2-sol8-sparc-local.pkg
> But at the end , my Solaris 8 server returned as 'gcc command not
> found' . Can you please let me know how can I make use of it ?
> Thank you

It sounds like you need to pick up a good 'intro to Unix' book.
Also, start reading here:
http://docs.sun.com/app/docs/prod/solaris.8?l=en&a=view

From: hadi motamedi on
On Feb 10, 9:55 am, Doug McIntyre <mer...(a)geeks.org> wrote:
> hadi motamedi <motamed...(a)gmail.com> writes:
> >Thanks for your reply . I found the 'dis' is very helpful . But how
> >can I extract the assembly language code by using it ?
>
> The output of dis *is* the assembly language code. Thats as human
> readable as you are going to get.

Thanks for your reply . But the output of my 'dis mss.o' is like the
followings :
"38a8: 41 86 00 24 ???
38ac: 3d 20 00 00 ???
38b0: 39 69 00 00 ???
38b4: 80 6b 00 00 ???
38b8: 48 00 00 01 ???
38bc: 3d 20 00 00 ???
38c0: 39 69 00 00 ???
38c4: 38 00 ff ff ???
38c8: 90 0b 00 00 ???
38cc: 3d 20 00 00 ???
38d0: 39 69 00 00 ???
38d4: 80 0b 00 00 ???
38d8: 39 20 ff ff ???
38dc: 7c 80 48 00 ???
38e0: 41 86 00 24 ???
38e4: 3d 20 00 00 ???
38e8: 39 69 00 00 ???
38ec: 80 6b 00 00 ???
38f0: 48 00 00 01 ???
38f4: 3d 20 00 00 ???
38f8: 39 69 00 00 ???
38fc: 38 00 ff ff ???"
Can you please let me know why this is not readable in my case ?
From: Doug McIntyre on
hadi motamedi <motamedi24(a)gmail.com> writes:
>On Feb 10, 9:55=A0am, Doug McIntyre <mer...(a)geeks.org> wrote:
>> hadi motamedi <motamed...(a)gmail.com> writes:
>> >Thanks for your reply . I found the 'dis' is very helpful . But how
>> >can I extract the assembly language code by using it ?
>>
>> The output of dis *is* the assembly language code. Thats as human
>> readable as you are going to get.

>Thanks for your reply . But the output of my 'dis mss.o' is like the
>followings :
>"38a8: 41 86 00 24 ???
>38ac: 3d 20 00 00 ???
>38b0: 39 69 00 00 ???
>38b4: 80 6b 00 00 ???
>38b8: 48 00 00 01 ???
>38bc: 3d 20 00 00 ???
>38c0: 39 69 00 00 ???
>38c4: 38 00 ff ff ???
>38c8: 90 0b 00 00 ???
>38cc: 3d 20 00 00 ???
>38d0: 39 69 00 00 ???
>38d4: 80 0b 00 00 ???
>38d8: 39 20 ff ff ???
>38dc: 7c 80 48 00 ???
>38e0: 41 86 00 24 ???
>38e4: 3d 20 00 00 ???
>38e8: 39 69 00 00 ???
>38ec: 80 6b 00 00 ???
>38f0: 48 00 00 01 ???
>38f4: 3d 20 00 00 ???
>38f8: 39 69 00 00 ???
>38fc: 38 00 ff ff ???"
>Can you please let me know why this is not readable in my case ?

This part of the file looks like it is just raw data. Could be
constants needed for operation, could be static pointers. Could static
ints, could be anything. .o files have both code and data in them.

Without reverse engineering the whole code, you'll never know. All the
structured information about it is gone by the time its an .o file. By
that level, the assembly language earlier on in the listing will be
referencing the data by raw data location.

It also could be that the .o file you have is for a different
architecture than what you are running on now. Ie. i386 code is
slightly different than x64, which is alot different than SPARC code,
is alot different than PPC code, is alot different than HP/PA code.

If you do have a PPC based .o file on an i386 box, there are other
tools to disassemble it, it could just be raw data as well that makes
no sense in any context.
From: hume.spamfilter on
hadi motamedi <motamedi24(a)gmail.com> wrote:
> Thanks for your reply . But the output of my 'dis mss.o' is like the
> followings :
> "38a8: 41 86 00 24 ???

Again, what are you trying to do? Where did you get this file? People
would be able to help you better if they could be sure this wasn't some
random file you accidentally downloaded.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
From: hadi motamedi on
On Feb 15, 2:10 am, hume.spamfil...(a)bofh.ca wrote:
> hadi motamedi <motamed...(a)gmail.com> wrote:
> > Thanks for your reply . But the output of my 'dis mss.o' is like the
> > followings :
> > "38a8:  41 86 00 24         ???
>
> Again, what are you trying to do?  Where did you get this file?  People
> would be able to help you better if they could be sure this wasn't some
> random file you accidentally downloaded.
>
> --
> Brandon Hume    - hume -> BOFH.Ca,http://WWW.BOFH.Ca/

Thank you for your reply . I have an SPARC Sun Solaris 8 platform that
will load the mss.o object file on an VxWork 5.2 target . According to
the 'nm mss.o' output , it contains the SS7 function that I want to
slightly modify it to accomodate with the new third party network
element received . To this end , I tried for 'dis mss.o' but as you
see the output is not readable . Can you please correct me ?