OSDN Git Service

[mips][micromips] Fix overlaping FDEs error
authorAleksandar Beserminji <abeserminji@wavecomp.com>
Mon, 15 Oct 2018 14:39:12 +0000 (14:39 +0000)
committerAleksandar Beserminji <abeserminji@wavecomp.com>
Mon, 15 Oct 2018 14:39:12 +0000 (14:39 +0000)
commitc2c7e976de76a9e5eb5e56993c3b6289e314f8c9
treef583a55d244e263ed72aeff2490ad9d595f333ee
parent1f57e3857aaae24a7afec22084f6c2d421c29c3b
[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@344516 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]