1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/MC/MachO
Akira Hatanaka 7a13b29b79 [MachO] Stop generating *coal* sections.
Recommit r250342: move coal-sections-powerpc.s to subdirectory for powerpc.

Some background on why we don't have to use *coal* sections anymore:
Long ago when C++ was new and "weak" had not been standardized, an attempt was
made in cctools to support C++ inlines that can be coalesced by putting them
into their own section (TEXT/textcoal_nt instead of TEXT/text).

The current macho linker supports the weak-def bit on any symbol to allow it to
be coalesced, but the compiler still puts weak-def functions/data into alternate
section names, which the linker must map back to the base section name.

This patch makes changes that are necessary to prevent the compiler from using
the "coal" sections and have it use the non-coal sections instead when the
target architecture is not powerpc:

TEXT/textcoal_nt instead use TEXT/text
TEXT/const_coal instead use TEXT/const
DATA/datacoal_nt instead use DATA/data

If the target is powerpc, we continue to use the *coal* sections since anyone
targeting powerpc is probably using an old linker that doesn't have support for
the weak-def bits.

Also, have the assembler issue a warning if it encounters a *coal* section in
the assembly file and inform the users to use the non-coal sections instead.

rdar://problem/14265330

Differential Revision: http://reviews.llvm.org/D13188

llvm-svn: 250370
2015-10-15 05:28:38 +00:00
..
AArch64 [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
ARM [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
PowerPC [MachO] Stop generating *coal* sections. 2015-10-15 05:28:38 +00:00
absolute.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
absolutize.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
bad-darwin-x86_64-32-bit-abs-addr.s The darwin integrated assembler for X86 in 64-bit mode is not rejecting 2013-08-29 00:19:03 +00:00
bad-darwin-x86_64-diff-relocs.s
bad-darwin-x86_64-reloc-expr1.s Fix a Mach-O assembler segfault for a subtraction expression with an undefined symbol. 2014-10-24 22:39:40 +00:00
bad-darwin-x86_64-reloc-expr2.s Fix a Mach-O assembler segfault for a subtraction expression with an undefined symbol. 2014-10-24 22:39:40 +00:00
bad-darwin-x86_64-reloc-expr.s Fix the assembler to print a better relocatable expression error 2014-04-22 17:27:29 +00:00
bad-dollar.s
bad-indirect-symbols.s The integrated darwin assembler can hang in an infinite loop (or get an assert 2013-08-28 17:50:59 +00:00
bad-macro.s
bss.s Fix known typos 2014-01-24 17:20:08 +00:00
coal-sections-x86_64.s [MachO] Stop generating *coal* sections. 2015-10-15 05:28:38 +00:00
comm-1.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
cstexpr-gotpcrel-32.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
cstexpr-gotpcrel-64.ll [AsmPrinter] Check for valid constants in handleIndirectSymViaGOTPCRel 2015-07-21 21:45:42 +00:00
darwin-complex-difference.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
darwin-version-min-load-command.s Force the MachO generated for Darwin to have VERSION_MIN load command 2015-08-05 15:36:38 +00:00
darwin-x86_64-diff-reloc-assign-2.s Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
darwin-x86_64-diff-reloc-assign.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
darwin-x86_64-diff-relocs.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
darwin-x86_64-nobase-relocs.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
darwin-x86_64-reloc-offsets.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
darwin-x86_64-reloc.s Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
data.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
debug_frame.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
diff-with-two-sections.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
direction_labels.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
eh_symbol.s Change the default input for llvm-nm to be a.out instead of standard input 2014-06-23 20:27:53 +00:00
eh-frame-reloc.s X86: drop relocations on __eh_frame sections globally. 2014-07-22 15:47:09 +00:00
file.s Force the MachO generated for Darwin to have VERSION_MIN load command 2015-08-05 15:36:38 +00:00
gen-dwarf-cpp.s llvm/test/MC/MachO/gen-dwarf-cpp.s: Relax an expression to match DOS pat. 2014-03-17 05:31:54 +00:00
gen-dwarf-macro-cpp.s
gen-dwarf-producer.s
gen-dwarf.s [dwarfdump] Dump full filenames as DW_AT_(decl|call)_file attribute values 2014-09-22 12:36:04 +00:00
i386-large-relocations.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
indirect-symbols.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
jcc.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
lcomm-attributes.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
linker-option-1.s
linker-option-2.s [llvm-readobj] MachO -- dump LinkerOptions load command. 2015-09-09 00:21:18 +00:00
linker-options.ll [llvm-readobj] MachO -- dump LinkerOptions load command. 2015-09-09 00:21:18 +00:00
lit.local.cfg Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
loc.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
osx-version-min-load-command.s [MC] Convert tests to use llvm-readobj --macho-version-min. 2015-08-28 12:40:05 +00:00
pcrel-to-other-section.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
pr19185.s Always use a temp symbol for CIE. 2014-06-20 23:54:32 +00:00
previous.s
pushsection.s
relax-jumps.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
relax-recompute-align.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
reloc-diff.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
reloc-pcrel-offset.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
reloc-pcrel.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
reloc.s Improve the --expand-relocs handling of MachO. 2015-06-18 22:38:20 +00:00
section-align-1.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
section-align-2.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
section-attributes.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
section-flags.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
string-table.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
symbol-diff.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
symbol-flags.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
symbol-indirect.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
symbols-1.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
tbss.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
tdata.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
temp-labels.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
thread_init_func.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
tls.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
tlv-bss.ll [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
tlv-reloc.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
tlv.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
values.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
variable-errors.s
variable-exprs.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
weakdef.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
x86_32-optimal_nop.s [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
x86_32-scattered-reloc-fallback.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
x86_32-sections.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
x86_32-symbols.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
x86_64-mergeable.s Revert r240302 ("Bring r240130 back."). 2015-06-23 11:31:32 +00:00
x86_64-reloc-arithmetic.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
x86_64-sections.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
x86_64-symbols.s Revert r240302 ("Bring r240130 back."). 2015-06-23 11:31:32 +00:00
x86-data-in-code.ll [MC] Convert all the remaining tests from macho-dump to llvm-readobj. 2015-09-10 01:50:00 +00:00
zerofill-1.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
zerofill-2.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
zerofill-3.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
zerofill-4.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
zerofill-5.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00
zerofill-sect-align.s [MC] Convert other MachO tests from macho-dump to llvm-readobj. 2015-09-05 01:02:05 +00:00