[all-commits] [llvm/llvm-project] bf6095: [MC][X86] Allow SHT_PROGBITS for .eh_frame on x86-64
Fangrui Song via All-commits
all-commits at lists.llvm.org
Thu Apr 16 10:43:33 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: bf60953faf3a0b80876e7345462d959586250daf
https://github.com/llvm/llvm-project/commit/bf60953faf3a0b80876e7345462d959586250daf
Author: Fangrui Song <maskray at google.com>
Date: 2020-04-16 (Thu, 16 Apr 2020)
Changed paths:
M llvm/lib/MC/MCParser/ELFAsmParser.cpp
M llvm/test/MC/ELF/section-type-changed.s
Log Message:
-----------
[MC][X86] Allow SHT_PROGBITS for .eh_frame on x86-64
GNU as emits SHT_PROGBITS .eh_frame by default for .cfi_* directives.
We follow x86-64 psABI and use SHT_X86_64_UNWIND for .eh_frame
Don't error for SHT_PROGBITS .eh_frame on x86-64.
This keeps compatibility with `.section .eh_frame,"a", at progbits` in existing assembly files.
See https://groups.google.com/d/msg/x86-64-abi/7sr4E6THl3g/zUU2UPHOAQAJ
for more discussions.
Reviewed By: joerg
Differential Revision: https://reviews.llvm.org/D76151
More information about the All-commits
mailing list