Skip to content
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

[LoongArch] Insert nops and emit align reloc when handle alignment directive #72962

Merged
merged 3 commits into from
Jan 24, 2024

Commits on Jan 11, 2024

  1. [LoongArch] Insert nops and emit align reloc when handle alignment di…

    …rective
    
    Refer to RISCV, we will fix up the alignment if linker relaxation changes
    code size and breaks alignment. Insert enough Nops and emit R_LARCH_ALIGN
    relocation type so that linker could satisfy the alignment by removing Nops.
    It does so only in sections with the SHF_EXECINSTR flag.
    
    In LoongArch psABI v2.30, R_LARCH_ALIGN requires symbol index. The
    lowest 8 bits of addend represent alignment and the other bits of
    addend represent the maximum number of bytes to emit.
    MQ-mengqing committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    4985669 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. Configuration menu
    Copy the full SHA
    eb4b05e View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2024

  1. Configuration menu
    Copy the full SHA
    0c61a0b View commit details
    Browse the repository at this point in the history