llvm-6502/lib/Target/Mips/MCTargetDesc
Jack Carter 571dd98ea4 Mips ELF: Mark object file as ABI compliant
When producing objects that are abi compliant we are 
marking neither the object file nor the assembly file
correctly and thus generate warnings. 

We need to set the EF_CPIC flag in the ELF header when
generating direct object.

Note that the warning is only generated when compiling without PIC.

When compiling with clang the warning will be suppressed by supplying:

 -Wa,-mno-shared -Wa,-call_nonpic

Also the following directive should also be added:

	.option	pic0

when compiling without PIC,  This eliminates the need for supplying:

  -mno-shared -call_nonpic

on the assembler command line.

Patch by Douglas Gilmore


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184220 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-18 19:47:15 +00:00
..
CMakeLists.txt
LLVMBuild.txt
Makefile
MipsAsmBackend.cpp
MipsBaseInfo.h
MipsELFObjectWriter.cpp
MipsELFStreamer.cpp Mips ELF: Mark object file as ABI compliant 2013-06-18 19:47:15 +00:00
MipsELFStreamer.h
MipsFixupKinds.h
MipsMCAsmInfo.cpp
MipsMCAsmInfo.h
MipsMCCodeEmitter.cpp
MipsMCTargetDesc.cpp
MipsMCTargetDesc.h
MipsReginfo.cpp
MipsReginfo.h