[all-commits] [llvm/llvm-project] c01c62: [MC][ELF] Fix accepting abbreviated form with Type...

Tobias Burnus via All-commits all-commits at lists.llvm.org
Tue Nov 30 06:47:00 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c01c62c76c60a5a5da0496e41faae907944c92dd
      https://github.com/llvm/llvm-project/commit/c01c62c76c60a5a5da0496e41faae907944c92dd
  Author: Tobias Burnus <tobias at codesourcery.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp
    M llvm/test/MC/ELF/section-omitted-attributes.s

  Log Message:
  -----------
  [MC][ELF] Fix accepting abbreviated form with Type change

Follow up to D92052 and D94072, exposed due to D107707

Many assemblers to permit that only the first .section contains all
the attributes like '.lds_bss,"w", at nobits' and later section only
use the name ('.lds_bss') inheriting those attributes from the first
section.  I turned out that the case that Type changed was missed
when implementing it - and D107707 make it much more likely to hit
that issue. That's fixed by this commit.

Reviewed By: MaskRay

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




More information about the All-commits mailing list