llvm-6502/test/MC/Mips
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
..
abicalls.ll Mips ELF: Mark object file as ABI compliant 2013-06-18 19:47:15 +00:00
do_switch.ll For mips64 switch statements in subroutines could generate 2012-08-22 00:49:30 +00:00
eh-frame.s Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
elf_basic.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf_eflags.ll Mips ELF: Mark object file as ABI compliant 2013-06-18 19:47:15 +00:00
elf_st_other.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-bigendian.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-gprel-32-64.ll Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
elf-N64.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-objdump.s PR13013: ELF Type identification fails for MSB type ELF files. 2012-06-25 14:48:43 +00:00
elf-reginfo.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-relsym.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-tls.ll Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
expr1.s Mips assembler: Enable handling of nested expressions 2013-04-17 00:18:04 +00:00
higher_highest.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
hilo-addressing.s Mips specific standalone assembler addressing mode %hi and %lo. 2013-02-21 02:09:31 +00:00
lea_64.ll The Mips64InstrInfo.td definitions DynAlloc64 LEA_ADDiu64 2012-08-06 23:29:06 +00:00
lit.local.cfg Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
micromips-alu-instructions.s [mips] Test for r179873. 2013-04-30 20:48:49 +00:00
micromips-loadstore-instructions.s Test case for r180241. 2013-04-25 02:22:07 +00:00
micromips-shift-instructions.s Test case for r180238. 2013-04-25 02:21:09 +00:00
mips64-alu-instructions.s Mips assembler: Add TwoOperandConstraint definitions 2013-05-16 20:24:27 +00:00
mips64-register-names.s Add test cases for correct parsing of register names in 32- and 64-bit modes. 2012-10-11 12:42:49 +00:00
mips64extins.ll The instruction DINS may be transformed into DINSU or DEXTM depending 2012-08-31 18:06:48 +00:00
mips64shift.ll Some instructions are passed to the assembler to be 2012-08-28 19:07:39 +00:00
mips_directives.s Mips assembler: Improve set register alias handling 2013-05-28 22:21:05 +00:00
mips_gprel16.ll This patch produces the correct addend value for 2013-01-08 19:01:28 +00:00
mips-alu-instructions.s Mips assembler: Add TwoOperandConstraint definitions 2013-05-16 20:24:27 +00:00
mips-coprocessor-encodings.s This is a resubmittal. For some reason it broke the bots yesterday 2013-01-18 20:15:06 +00:00
mips-expansions.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
mips-fpu-instructions.s Mips assembler: Explicit floating point condition register recognition. 2013-04-15 22:21:55 +00:00
mips-jump-instructions.s Mips assembler: Add branch macro definitions 2013-05-16 19:40:19 +00:00
mips-memory-instructions.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
mips-register-names.s Add test cases for correct parsing of register names in 32- and 64-bit modes. 2012-10-11 12:42:49 +00:00
mips-relocations.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
multi-64bit-func.ll Add option disable-mips-delay-filler. Turn on mips' delay slot filler by 2012-08-22 02:51:28 +00:00
nabi-regs.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
pr11877.s Ensure .AliasedSymbol() is called on all uses of getSymbol(). Affects ARM and MIPS ELF backends. 2012-01-28 15:58:32 +00:00
r-mips-got-disp.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
set-at-directive.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
sext_64_32.ll [mips] Stop reserving register AT and use register scavenger when a scratch 2012-11-03 00:05:43 +00:00
sym-offset.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
xgot.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00