Unverified Commit fbdd9484 authored by Lu Weining's avatar Lu Weining Committed by GitHub
Browse files

[LoongArch] Use R_LARCH_ALIGN without symbol as much as possible (#93775)

To support the third parameter of the alignment directive, R_LARCH_ALIGN
relocations need a non-zero symbol index.
In many cases we don't need the third parameter and can set the symbol
index to 0.
This patch will remove a lot of .Lla-relax-align* symbols and mitigate
the size regression due to
https://github.com/llvm/llvm-project/pull/72962

.

Co-authored-by: default avatarJinyang He <hejinyang@loongson.cn>
Co-authored-by: default avatarWeining Lu <luweining@loongson.cn>
parent 8ec1161f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment