tools/netbsd-base-system-import.sh: Suppress unwanted expansion of $NetBSD$.
Before this change, instances of the literal string '$NetBSD$' within
this script were expanded by NetBSD's CVS if this script was imported
into NetBSD's sources and then checked out. When subsequently used,
the script would then copy the expanded string into the locations
in the files being imported where the literal string '$NetBSD$'
was desired.
Although harmless (as CVS would eventually use the correct expansion
when the imported files were checked out later), the use of the
expanded value for '$NetBSD$' caused confusing diffs prior to check-in.
With this change, the literal string '$NetBSD$' should be placed in
the desired locations as-is.
elfdefinitions: Refactor the ELF{32,64}_M_*() macros.
This change reduces code duplication, and makes
a set of ELF-class-agnostic macros (ELF_M_*())
available for code that is ELF-class agnostic.
elfdefinitions: Use a more precise C type in a few ELF structures.
An 'unsigned char' is not guaranteed to be 8 bits wide on all
architectures. Use C types that are explicitly 8-bit wide for
8-bit wide fields in the file format.