OSDN Git Service

[mips][micromips] Fix overlaping FDEs error
authorAleksandar Beserminji <abeserminji@wavecomp.com>
Mon, 15 Oct 2018 12:59:17 +0000 (12:59 +0000)
committerAleksandar Beserminji <abeserminji@wavecomp.com>
Mon, 15 Oct 2018 12:59:17 +0000 (12:59 +0000)
commitee084ebe8c45915458aecd5dbb9ff131c63aee97
tree8651bfbb14eac185f3e4ae35bf34bf00fe0fb647
parent69b3f302bf683ae0975608aa35fc9602f5026e39
[mips][micromips] Fix overlaping FDEs error

When compiling static executable for micromips, CFI symbols
are incorrectly labeled as MICROMIPS, which cause
".eh_frame_hdr refers to overlapping FDEs." error.

This patch does not label CFI symbols as MICROMIPS, and FDEs do not
overlap anymore. This patch also exposes another bug, which is fixed
here: https://reviews.llvm.org/D52985

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344511 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
test/DebugInfo/Mips/eh_frame.ll [new file with mode: 0644]