mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Both really want to be SEC_DATA, even if _bfd_XXi_swap_scnhdr_out() makes sure that IMAGE_SCN_CNT_INITIALIZED_DATA is set in the final section header. Otoh, .reloc - being IMAGE_SCN_MEM_DISCARDABLE at least by default - shouldn't have SEC_ALLOC set. In an early form of the patch I also dropped SEC_ALLOC for .reloc. While I've undone that, I think the then necessary testsuite adjustments still want retaining: 1) I can't explain why the removal of _both_ SEC_ALLOC and SEC_LOAD for .reloc causes ld-scripts/provide-8 to XPASS on PE targets. Placing a symbol outside of the image isn't well-defined in PE anyway though, so convert the xfail-s to notarget-s. 2) The ld-pe/pe-aarch64 fragility is now dealt with in a separate patch.