[all-commits] [llvm/llvm-project] 366d34: [AVR][MC] Add ELF flag 'EF_AVR_LINKRELAX_PREPARED'...

Ben Shi via All-commits all-commits at lists.llvm.org
Thu Feb 23 19:17:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 366d34b39e432abff724f644adbff8d627d6f27c
      https://github.com/llvm/llvm-project/commit/366d34b39e432abff724f644adbff8d627d6f27c
  Author: Ben Shi <powerman1st at 163.com>
  Date:   2023-02-24 (Fri, 24 Feb 2023)

  Changed paths:
    M lld/test/ELF/avr-flags.s
    M lld/test/ELF/linkerscript/avr5.test
    M llvm/lib/Target/AVR/MCTargetDesc/AVRELFStreamer.cpp
    A llvm/test/MC/AVR/elf_header.s

  Log Message:
  -----------
  [AVR][MC] Add ELF flag 'EF_AVR_LINKRELAX_PREPARED' to OBJ files

This is in accordance with avr-gcc, even '-mno-relax' is specified
to avr-gcc, this flag will also be added to the output relocatables.

With this flag set, the GNU ld will perform long call -> short call
optimization for AVR, otherwise not.

Fixes https://github.com/llvm/llvm-project/issues/54508

Reviewed By: MaskRay, jacquesguan, aykevl

Differential Revision: https://reviews.llvm.org/D144617




More information about the All-commits mailing list