bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strip doesn't check machine type


From: David Meggy
Subject: strip doesn't check machine type
Date: 17 Sep 2003 12:22:25 -0700

Subject pretty much says it all

If I were to run "strip myprog", instead of "arm-linux-strip myprog" on
an x86 and myprog was an arm program, then the resulting elf header
would change from Machine: arm to Machine: none.

Maybe strip should first check the machine type, and if it doesn't match
the machine type it was built for it would exit without modifying the
file.

David 

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
     David Meggy
     Engineering

Technical Solutions Inc.
Unit #1 7157 Honeyman St
Delta BC Canada, V4G 1E2
     www.techsol.ca

eMail: address@hidden
Tel: 604 946 TECH (8324)
Fax: 604 946 6445
~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]