Commit Graph

11 Commits

Author SHA1 Message Date
christos 12968661bf get rid of the cheesy BAD macros 2012-03-22 14:18:34 +00:00
he 4efbcb2b62 Make this lint-free (only built for real for the __sh__ ports):
* Mark some code after goto as /* NOTREACHED */
 * Add a cast for file size (off_t) to size_t to avoid warning about
   possibly losing bits.
 * Avoid a "pointer casts may be troublesome" warning from lint
   by doing a cast via "void *" instead of directly to "struct
   coff_filehdr *".
2012-03-22 13:42:36 +00:00
christos 2fab93ccbb c89 definitions 2012-03-21 15:32:26 +00:00
he 6218a6dafa Introduce a new accessor macro N_NAME() to access the n_name field
in struct nlist, since it's accessed differently depending on
whether we do a.out or not.  Use this macro as appropriate in the
nlist* functions.
Also replace some includes of <a.out.h> with <nlist.h>, to fix build
problem for mips.
2009-08-21 08:42:02 +00:00
lukem be48221f4f A variation on the sign-compare fix for these. 2009-02-16 10:40:45 +00:00
uwe 87cd2874b2 G/c check() macro, b/c it's used only twice and the off < 0 test is
useless in the first case (off is 0), and causes error with new gcc
(comparison of unsigned expression < 0 is always false) in the
second.

While here fix a typo in a comment and use less indent to make BAD and
BADUNMAP definitions fit 80 columns.

XXX: The second check should probably be more elaborate to protect
against bogus/malicious COFF files.
2006-10-25 20:43:49 +00:00
salo 99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
cgd db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00
cgd d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
simonb 695f4e86f5 Remove a bit of lint. 2000-06-09 16:22:54 +00:00
msaitoh 40732a4308 nlist for COFF 2000-01-03 02:13:32 +00:00