Description: fix lack of alignment in relocations (crashes on mingw) See https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=73af69e74974eaa155eec89867e3ccc77ab39f6d From: Marc Date: Fri, 9 Nov 2018 11:13:50 +0000 Subject: [PATCH] Allow for compilers that do not produce aligned .rdat sections in PE format files. --- a/upstream/ld/scripttempl/pe.sc 2020-05-12 18:45:12.000000000 +0200 +++ b/upstream/ld/scripttempl/pe.sc 2020-05-12 18:47:12.000000000 +0200 @@ -143,6 +143,7 @@ .rdata ${RELOCATING+BLOCK(__section_alignment__)} : { ${R_RDATA} + . = ALIGN(4); ${RELOCATING+__rt_psrelocs_start = .;} ${RELOCATING+KEEP(*(.rdata_runtime_pseudo_reloc))} ${RELOCATING+__rt_psrelocs_end = .;} --- a/upstream/ld/scripttempl/pep.sc 2020-05-12 18:45:19.000000000 +0200 +++ b/upstream/ld/scripttempl/pep.sc 2020-05-12 18:47:18.000000000 +0200 @@ -143,6 +143,7 @@ .rdata ${RELOCATING+BLOCK(__section_alignment__)} : { ${R_RDATA} + . = ALIGN(4); ${RELOCATING+__rt_psrelocs_start = .;} ${RELOCATING+KEEP(*(.rdata_runtime_pseudo_reloc))} ${RELOCATING+__rt_psrelocs_end = .;}