www.digitalmars.com         C & C++   DMDScript  

c++.announce - Re: Modify OBJ?

reply "Nic Tiger" <nictiger pt.comcor.ru> writes:
Hi everybody,

Does anybody knows some kind of utility which could change identifier's name
in OBJ file?

E.g., I have OBJ file and want to change '_some_name' to '_another_name'
(public).

Looking forward for an answer,
            Nic Tiger.
Jun 11 2002
parent reply "Walter" <walter digitalmars.com> writes:
Try \dm\bin\patchobj.exe


"Nic Tiger" <nictiger pt.comcor.ru> wrote in message
news:ae5bd2$2u81$1 digitaldaemon.com...
 Hi everybody,

 Does anybody knows some kind of utility which could change identifier's

 in OBJ file?

 E.g., I have OBJ file and want to change '_some_name' to '_another_name'
 (public).

 Looking forward for an answer,
             Nic Tiger.

Jun 11 2002
parent "Nic Tiger" <nictiger pt.comcor.ru> writes:
Thanks!

But I had 2 problems using it:
1) My OBJ is COFF, not OMF. I translated it via coff2omf, but after applying
patchobj I cannot translate it back into COFF.
2) I tried to patch mangled names (like ?defaultmem  3PAUMemAlloc A), but it
seems that OBJ is not changed.

I solved my problem via changing names in OBJ with FAR text editor, but I
had the restriction on identifier name length, so I changed defaultmem ->
defaultme_ and so.

Thanks again for your reply.

Nic Tiger.

"Walter" <walter digitalmars.com> wrote in message
news:ae64i6$mhn$2 digitaldaemon.com...
 Try \dm\bin\patchobj.exe


 "Nic Tiger" <nictiger pt.comcor.ru> wrote in message
 news:ae5bd2$2u81$1 digitaldaemon.com...
 Hi everybody,

 Does anybody knows some kind of utility which could change identifier's

 in OBJ file?

 E.g., I have OBJ file and want to change '_some_name' to '_another_name'
 (public).

 Looking forward for an answer,
             Nic Tiger.


Jun 11 2002