binutils-gdb/include/coff
Alan Modra a2c7ca15a5 Use stdint types in coff internal_auxent
long is a poor choice of type to store 32-bit values read from
objects files by H_GET_32.  H_GET_32 doesn't sign extend so tests like
that in gdb/coffread.c for "negative" values won't work if long is
larger than 32 bits.  If long is 32-bit then code needs to be careful
to not accidentally index negative array elements.  (I'd rather see a
segfault on an unmapped 4G array index than silently reading bogus
data.)  long is also a poor choice for x_sect.s_scnlen, which might
have 64-bit values.  It's better to use unsigned exact width types to
avoid surprises.

I decided to change the field names too, which makes most of this
patch simply renaming.  Besides that there are a few places where
casts are no longer needed, and where printf format strings or tests
need adjusting.

include/
	* coff/internal.h (union internal_auxent): Use unsigned stdint
	types.  Rename l fields to u32 and u64 as appropriate.
bfd/
	* coff-bfd.c,
	* coff-rs6000.c,
	* coff64-rs6000.c,
	* coffcode.h,
	* coffgen.c,
	* cofflink.c,
	* coffswap.h,
	* peXXigen.c,
	* xcofflink.c: Adjust to suit internal_auxent changes.
binutils/
	* rdcoff.c: Adjust to suit internal_auxent changes.
gas/
	* config/obj-coff.h,
	* config/tc-ppc.c: Adjust to suit internal_auxent changes.
gdb/
	* coffread.c,
	* xcoffread.c: Adjust to suit internal_auxent changes.
ld/
	* pe-dll.c: Adjust to suit internal_auxent changes.
2023-03-27 21:58:46 +10:30
..
aarch64.h Fix size of external_reloc for pe-aarch64 2023-01-10 23:30:42 +00:00
alpha.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
arm.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ChangeLog-0415 binutils ChangeLog rotation 2016-01-01 22:59:17 +10:30
ChangeLog-9103
ecoff.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
external.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
i386.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ia64.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
internal.h Use stdint types in coff internal_auxent 2023-03-27 21:58:46 +10:30
loongarch64.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mcore.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mips.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
msdos.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pe.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
rs6k64.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
rs6000.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
sh.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
sym.h PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
symconst.h
ti.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
tic4x.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
tic30.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
tic54x.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
x86_64.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xcoff.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
z8k.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
z80.h Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30