Article View: gnu.utils.bug
Article #1539Re: (none)
From: Mike McNally
Date: Wed, 05 Apr 1989 15:14
Date: Wed, 05 Apr 1989 15:14
21 lines
1405 bytes
1405 bytes
In article <8904040510.AA15711@thor.acc.stolaf.edu> mike@THOR.STOLAF.EDU (Mike Haertel) writes:
>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.
I agree. Along similar lines, I was horrified to learn while hacking
"strip" that its error-checking malloc interface returned an int! I
mean, dang! Also, from what I've seen, porting a lot of these things
to a 16-bit int environment would be almost a lost cause (though probably
possible for the dedicated).
Then again, it is free.
--
Mike McNally Lynx Real-Time Systems
uucp: {voder,athsys}!lynx!m5 phone: 408 370 2233
Where equal mind and contest equal, go.
Technical Details
Message-ID:
<5404@lynx.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!apple!vsi1!daver!lynx!m5References:
<8904040510.AA15711@thor.acc.stolaf.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!apple!vsi1!daver!lynx!m5 From: m5@lynx.uucp (Mike McNally) Newsgroups: gnu.utils.bug Subject: Re: (none) Message-ID: <5404@lynx.UUCP> Date: 5 Apr 89 15:14:30 GMT References: <8904040510.AA15711@thor.acc.stolaf.edu> Reply-To: m5@lynx.UUCP (Mike McNally) Distribution: gnu Organization: Lynx Real-Time Systems Inc, Campbell CA Lines: 21