mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-12-25 07:19:49 +00:00
Fix the fde encoding used by mips to match gas.
This finally fixes the encoding. The patch also * Removes eh-frame.ll. It was an unnecessary .ll to .o test that was checking the wrong value. * Merge fde-reloc.s and eh-frame.s into a single test, since the only difference was the run lines. * Don't blindly test the content of the entire .eh_frame section. It makes it hard to anyone actually fixing a bug and hitting a difference in a binary blob. Instead, use a CHECK for each field and document what is being checked. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178615 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -223,10 +223,13 @@ void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) {
|
||||
}
|
||||
|
||||
void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
|
||||
if (T.getArch() != Triple::mips &&
|
||||
T.getArch() != Triple::mipsel &&
|
||||
T.getArch() != Triple::mips64 &&
|
||||
T.getArch() != Triple::mips64el )
|
||||
if (T.getArch() == Triple::mips ||
|
||||
T.getArch() == Triple::mipsel)
|
||||
FDECFIEncoding = dwarf::DW_EH_PE_sdata4;
|
||||
else if (T.getArch() == Triple::mips64 ||
|
||||
T.getArch() == Triple::mips64el)
|
||||
FDECFIEncoding = dwarf::DW_EH_PE_sdata8;
|
||||
else
|
||||
FDECFIEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;
|
||||
|
||||
if (T.getArch() == Triple::x86) {
|
||||
|
||||
Reference in New Issue
Block a user