- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Diff between two binary files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2005 08:47 PM
тАО11-21-2005 08:47 PM
Diff between two binary files
I have got 2 binary files, which compiled with the same source file built at different time. If I do diff b/n these two binaries it will show as difference is there. But actually there is no diff. Can I have any command/workaround to get diff if it is there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2005 08:52 PM
тАО11-21-2005 08:52 PM
Re: Diff between two binary files
diff is for text files.
cksum on both files may help.
else, strings binary1 and strings binary2 and then compare.
man strings for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2005 09:22 PM
тАО11-21-2005 09:22 PM
Re: Diff between two binary files
If these are executables, you can check if there is a diff between the 'nm file' output of each
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2005 01:57 AM
тАО11-22-2005 01:57 AM
Re: Diff between two binary files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2005 04:13 PM
тАО11-22-2005 04:13 PM
Re: Diff between two binary files
I agree with your answer, But I still want to remove that time stamp and wanted to get diff. Can you please suggest me how can I go about this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2005 07:34 PM
тАО11-22-2005 07:34 PM
Re: Diff between two binary files
Check it as,
# file
if it is PA-RISC format then,
# odump -all binary > /tmp/binary.odump
# odump -all binary1 > /tmp/binary1.odump
# diff /tmp/binary.odump /tmp/binary1.odump
I am getting difference on compilation time header and binary name difference only.
You can check for,
# strings
# strings
# diff binary.strings binary1.strings
For ELF format files use elfdump utility.
hth.