diff options
author | Jack Carter <jcarter@mips.com> | 2013-02-19 22:29:00 +0000 |
---|---|---|
committer | Jack Carter <jcarter@mips.com> | 2013-02-19 22:29:00 +0000 |
commit | 10c97e5ca0d9214ac2296b1f07a50fbaf9477b04 (patch) | |
tree | bc314b1d1b56f47c0c9e618742f509407d11e59f /llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp | |
parent | ae2fd9c97dc86e3cc80666db1fcbacd74746da66 (diff) | |
download | bcm5719-llvm-10c97e5ca0d9214ac2296b1f07a50fbaf9477b04.tar.gz bcm5719-llvm-10c97e5ca0d9214ac2296b1f07a50fbaf9477b04.zip |
ELF symbol table field st_other support,
excluding visibility bits.
Mips (o32 abi) specific e_header setting.
EF_MIPS_ABI_O32 needs to be set in the
ELF header flags for o32 abi output.
Contributer: Reed Kotler
llvm-svn: 175569
Diffstat (limited to 'llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp index e12b176b04c..c33bc9ae303 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp @@ -54,6 +54,10 @@ namespace llvm { if (Subtarget.inMicroMipsMode()) EFlags |= ELF::EF_MIPS_MICROMIPS; + // ABI + if (Subtarget.isABI_O32()) + EFlags |= ELF::EF_MIPS_ABI_O32; + // Relocation Model Reloc::Model RM = Subtarget.getRelocationModel(); if (RM == Reloc::PIC_ || RM == Reloc::Default) |