[all-commits] [llvm/llvm-project] a921aa: [MC][ARM] make Thumb function also if type attribu...

Stefan Agner via All-commits all-commits at lists.llvm.org
Wed Feb 24 14:09:39 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a921aaf789912d981cbb2036bdc91ad7289e1523
      https://github.com/llvm/llvm-project/commit/a921aaf789912d981cbb2036bdc91ad7289e1523
  Author: Stefan Agner <stefan at agner.ch>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
    A llvm/test/MC/ARM/thumb-function-address.s

  Log Message:
  -----------
  [MC][ARM] make Thumb function also if type attribute is set

Make sure to set the bottom bit of the symbol even when the type
attribute of a label is set after the label.

GNU as sets the thumb state according to the thumb state of the label.
If a .type directive is placed after the label, set the symbol's thumb
state according to the thumb state of the .type directive. This matches
GNU as in most cases.

From: Stefan Agner <stefan at agner.ch>

This fixes:
https://bugs.llvm.org/show_bug.cgi?id=44860
https://github.com/ClangBuiltLinux/linux/issues/866

Reviewed By: MaskRay

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




More information about the All-commits mailing list