binutils-gdb/include/coff
Alan Modra 6f8f6017a0 PR27567, Linking PE files adds alignment section flags to executables
So don't set those flags for an executable.  In the patch I also test
DYNAMIC even though the PE bfd code doesn't appear to set it for dlls.
I figure it doesn't hurt to include that flag too.

	PR 27567
bfd/
	* coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags.
	(coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT,
	ignore alignment checks when return is false.  Formatting.
include/
	* coff/internal.h (struct internal_scnhdr): Make s_flags unsigned long.
	* coff/pe.h (COFF_ENCODE_ALIGNMENT): Don't set align flags for an
	executable and return false.  Do so for a relocatable object and
	evaluate to true.
	* coff/ti.h (COFF_ENCODE_ALIGNMENT): Add bfd arg and evaluate to true.
	(COFF_DECODE_ALIGNMENT): Formatting.
	* coff/z80.h (COFF_ENCODE_ALIGNMENT): Similarly.
	(COFF_DECODE_ALIGNMENT): Similarly.
2021-04-16 23:21:44 +09:30
..
alpha.h
arm.h
ChangeLog-0415
ChangeLog-9103
ecoff.h Use bool in include 2021-03-31 10:49:23 +10:30
external.h
i386.h Split relocation defines out of coff/internal.h 2021-03-03 17:46:24 +10:30
ia64.h
internal.h PR27567, Linking PE files adds alignment section flags to executables 2021-04-16 23:21:44 +09:30
mcore.h
mips.h
msdos.h
pe.h PR27567, Linking PE files adds alignment section flags to executables 2021-04-16 23:21:44 +09:30
rs6k64.h aix: implement TLS relocation for gas and ld 2021-03-12 22:47:33 +10:30
rs6000.h aix: implement TLS relocation for gas and ld 2021-03-12 22:47:33 +10:30
sh.h
sym.h
symconst.h
ti.h PR27567, Linking PE files adds alignment section flags to executables 2021-04-16 23:21:44 +09:30
tic4x.h
tic30.h
tic54x.h
x86_64.h Split relocation defines out of coff/internal.h 2021-03-03 17:46:24 +10:30
xcoff.h Use bool in include 2021-03-31 10:49:23 +10:30
z8k.h Split relocation defines out of coff/internal.h 2021-03-03 17:46:24 +10:30
z80.h PR27567, Linking PE files adds alignment section flags to executables 2021-04-16 23:21:44 +09:30