Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!THOR.STOLAF.EDU!mike From: mike@THOR.STOLAF.EDU (Mike Haertel) Newsgroups: gnu.utils.bug Subject: (none) Message-ID: <8904040510.AA15711@thor.acc.stolaf.edu> Date: 4 Apr 89 05:10:37 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 5 In the various binutil programs, reading just an int from the beginning of a file to get its magic number is idiotic. What if the magic number isn't an int, or isn't right at the beginning? If the programs were properly written they would read a struct exec, rather than making a kludgy assumption about its internal format.