Skip to content

[Backport][LoongArch] Add the support for relax feature #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

Ami-zhang
Copy link
Contributor

Backport from llvm upstream 18 version. The corresponding merge link of the patch on GitHub is as follows:
[1]: [lld][LoongArch] Support the R_LARCH_{ADD,SUB}6 relocation type (#72190)
llvm/llvm-project#72190
[2]: [LoongArch] Add relax feature and keep relocations (#72191)
llvm/llvm-project#72191
[3]: [LoongArch] Allow delayed decision for ADD/SUB relocations (#72960)
llvm/llvm-project#72960
[4]: [LoongArch] Emit R_LARCH_RELAX when expanding some LoadAddress (#72961)
llvm/llvm-project#72961
[5]: [MC][LoongArch] Add AlignFragment size if layout is available and not need insert nops (#76552)
llvm/llvm-project#76552
[6]: [LoongArch][RISCV] Support R_LARCH_{ADD,SUB}ULEB128/R_RISCV{SET,SUB}ULEB128 for .uleb128 directives
llvm/llvm-project#76433
https://reviews.llvm.org/D157657
llvm/llvm-project@d7398a3
[7]: [LoongArch] Add relaxDwarfLineAddr and relaxDwarfCFA to handle the mutable label diff in dwarfinfo (#77728)
llvm/llvm-project#77728
[8]: [LoongArch] Insert nops and emit align reloc when handle alignment directive (#72962)
llvm/llvm-project#72962
[9]: [ELF][RISCV] Implement --emit-relocs with relaxation
https://reviews.llvm.org/D159082
[10]: [lld][ELF] Support relax R_LARCH_ALIGN (#78692)
llvm/llvm-project#78692
[11]: [test] Update dwarf-loongarch-relocs.ll
sailfishos-mirror/llvm-project@baba7e4
[12]: [lld][LoongArch] Support the R_LARCH{ADD,SUB}_ULEB128 relocation types (#81133)
llvm/llvm-project#81133
[13]: [MC][test] Change ELF/uleb-ehtable.s Mach-O to use private symbols in .uleb128 for label differences
llvm/llvm-project@0a89bda
[14]: [Mips][MC] AttemptToFoldSymbolOffsetDifference: revert isMicroMips special case
https://reviews.llvm.org/D157655

@deepin-ci-robot
Copy link

Hi @Ami-zhang. Thanks for your PR. 😃

Copy link

github-actions bot commented Aug 22, 2024

TAG Bot

TAG: 1%17.0.6-5deepin2
EXISTED: no
DISTRIBUTION: unstable

@Ami-zhang Ami-zhang changed the title [Backport][LoongArch] Add the support for relax feature on LoongArch [Backport][LoongArch] Add the support for relax feature Aug 22, 2024
@deepin-ci-robot
Copy link

Hi @Ami-zhang. Thanks for your PR.

I'm waiting for a deepin-community member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign yukarichiba for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@MingcongBai
Copy link
Contributor

/integrate

Copy link

AutoIntegrationPr Bot
auto integrate with pr url: deepin-community/Repository-Integration#1915
PrNumber: 1915
PrBranch: auto-integration-10504471394

@Ami-zhang
Copy link
Contributor Author

@SixWeining

@Ami-zhang Ami-zhang force-pushed the relax branch 2 times, most recently from 1cecf8c to bc2bd8b Compare August 26, 2024 07:21
@MingcongBai
Copy link
Contributor

/integrate

-mlsx is enabled globally but is not yet available in LLVM 17. Loongson will submit a backport later and we can enable this then.
@MingcongBai
Copy link
Contributor

/integrate

@Zeno-sole Zeno-sole merged commit 9a42cad into deepin-community:master Aug 28, 2024
1 of 2 checks passed
@Ami-zhang Ami-zhang deleted the relax branch August 29, 2024 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants