lld-link
ignores section alignments greater than /ALIGN
#137043
Labels
lld-link
ignores section alignments greater than /ALIGN
#137043
The COFF object format supports section alignments up to 8192, whereas the default value of the
/ALIGN
command line argument (used as the alignment of all sections in the PE output) is 4096. If a section in a COFF object file has an alignment greater than the value of/ALIGN
(such as in this Rust example), MSVClink.exe
will exit with an LNK1164 linker error, whereas LLVMlld-link
will ignore it and continue to use the smaller value of/ALIGN
as the alignment of the sections in the PE output.The text was updated successfully, but these errors were encountered: