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 Make helper functions static. 2013-05-27 22:34:59 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile Test commit 2012-06-09 00:27:55 +00:00
MipsAsmBackend.cpp This patch produces the correct addend value for 2013-01-08 19:01:28 +00:00
MipsBaseInfo.h [mips] Set HWEncoding field of registers. Use delete function 2012-12-10 20:04:40 +00:00
MipsELFObjectWriter.cpp This patch reworks how llvm targets set 2013-01-30 02:09:52 +00:00
MipsELFStreamer.cpp Mips ELF: Mark object file as ABI compliant 2013-06-18 19:47:15 +00:00
MipsELFStreamer.h ELF symbol table field st_other support, 2013-02-19 22:04:37 +00:00
MipsFixupKinds.h Mips direct object xgot support 2012-11-21 23:38:59 +00:00
MipsMCAsmInfo.cpp Remove unused argument. 2013-05-10 18:16:59 +00:00
MipsMCAsmInfo.h Remove unused argument. 2013-05-10 18:16:59 +00:00
MipsMCCodeEmitter.cpp Use pointers to the MCAsmInfo and MCRegInfo. 2013-06-18 07:20:20 +00:00
MipsMCTargetDesc.cpp Remove the MachineMove class. 2013-05-13 01:16:13 +00:00
MipsMCTargetDesc.h When creating MCAsmBackend pass the CPU string as well. In X86AsmBackend 2012-09-18 16:08:49 +00:00
MipsReginfo.cpp This is a resubmittal. For some reason it broke the bots yesterday 2013-01-18 21:20:38 +00:00
MipsReginfo.h This is a resubmittal. For some reason it broke the bots yesterday 2013-01-18 21:20:38 +00:00