cmd/link: set alignment of compressed section based on arch
cmd/link: set alignment of compressed section based on arch

The ELF compression header(Chdr) has Addralign field that is set to the
alignment of the uncompressed section which makes section able to have
a different alignment than the decompressed section. However `file` and
other tools require both Chdr.Addralign and Addralign to be equal.

Ref https://sourceware.org/bugzilla/show_bug.cgi?id=23919
Related #42136

Fixes #51769

Change-Id: I3cf99dbd2359932576420a3c0d342c7e91b99227
Reviewed-on: https://go-review.googlesource.com/c/go/+/393916
Trust: mzh <3e6d300a356a3b86bc195677414a9ec5508ca893@golangcn.org>
Reviewed-by: Alessandro Arzilli <e26d9aa77fb315046750e4f7a9c5cd199e338f92@gmail.com>
Reviewed-by: Cherry Mui <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>
Run-TryBot: Cherry Mui <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>
TryBot-Result: Gopher Robot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Fangrui Song <89e54f19065b0b047a91fe0cbcb78b61efd4358f@google.com>

nawawi/go,golang/go,golang/go,nawawi/go,nawawi/go,golang/go,CAFxX/go,CAFxX/go,golang/go,CAFxX/go,nawawi/go,nawawi/go,CAFxX/go,nawawi/go,nawawi/go,CAFxX/go,golang/go,golang/go,CAFxX/go,nawawi/go,CAFxX/go,CAFxX/go,golang/go,golang/go