llvm-6502/test/MC/MachO
Bill Wendling ef920552d4 Add .pushsection', .popsection', and `.previous' directives to Darwin ASM.
There are situations where inline ASM may want to change the section -- for
instance, to create a variable in the .data section. However, it cannot do this
without (potentially) restoring to the wrong section. E.g.:

  asm volatile (".section __DATA, __data\n\t"
                ".globl _fnord\n\t"
                "_fnord: .quad 1f\n\t"
                ".text\n\t"
                "1:" :::);

This may be wrong if this is inlined into a function that has a "section"
attribute. The user should use `.pushsection' and `.popsection' here instead.

The addition of `.previous' is added for completeness.
<rdar://problem/12048387>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161477 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-08 06:30:30 +00:00
..
ARM Fix a bug in ARMMachObjectWriter::RecordRelocation() in ARMMachObjectWriter.cpp 2012-07-30 18:46:15 +00:00
absolutize.s
comm-1.s
darwin-complex-difference.s MC/Expr: Implemnt more aggressive folding during symbol evaluation using 2010-12-17 05:50:33 +00:00
darwin-x86_64-diff-reloc-assign.s Fixed a crash in llvm-mc for Mach-O when a symbol difference expression uses a 2012-01-31 23:02:57 +00:00
darwin-x86_64-diff-relocs.s Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
darwin-x86_64-nobase-relocs.s Fix a Darwin x86_64 special case of a jmp to a temporary symbol from an atom 2011-09-08 20:53:44 +00:00
darwin-x86_64-reloc-offsets.s
darwin-x86_64-reloc.s
data.s
debug_frame.s Some autoconf tests use module level inline asm to test compiler's handling of 2011-08-24 22:31:37 +00:00
diff-with-two-sections.s Fix absolute recording of differences of symbols in two sections. Reduced from ctor_dtor_count-2.cpp. 2010-12-07 17:12:32 +00:00
direction_labels.s
empty-dwarf-lines.s Second try at making direct object emission produce the same results 2010-12-06 17:27:56 +00:00
file.s Fixed a bug in the code to create a dwarf file and directory table entires when 2011-11-01 23:39:05 +00:00
gen-dwarf.s Various crash reporting tools have a problem with the dwarf generated for 2012-01-10 17:52:29 +00:00
indirect-symbols.s
jcc.s
lcomm-attributes.s
lit.local.cfg Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
loc.s Add reduced test from 8845. 2010-12-22 21:15:13 +00:00
pcrel-to-other-section.s Fix pcrel relocations that cross sections. 2010-12-07 03:50:14 +00:00
previous.s Add .pushsection', .popsection', and `.previous' directives to Darwin ASM. 2012-08-08 06:30:30 +00:00
pushsection.s Add .pushsection', .popsection', and `.previous' directives to Darwin ASM. 2012-08-08 06:30:30 +00:00
relax-jumps.s
relax-recompute-align.s Relax alignment fragments. 2010-12-15 08:45:53 +00:00
reloc-diff.s
reloc-pcrel-offset.s MC tweak symbol difference resolution for non-local symbols. 2012-01-17 22:14:39 +00:00
reloc-pcrel.s MC tweak symbol difference resolution for non-local symbols. 2012-01-17 22:14:39 +00:00
reloc.s
section-align-1.s
section-align-2.s
section-attributes.s MC/Mach-O: Fix regression introduced in r126127, this assignment shouldn't have 2011-03-17 16:25:24 +00:00
section-flags.s
string-table.s
symbol-diff.s Fix a crash reduced from gcc produced assembly. 2010-12-07 01:09:54 +00:00
symbol-flags.s
symbol-indirect.s
symbols-1.s
tbss.s
tdata.s
temp-labels.s MC: Add support for disabling "temporary label" behavior. Useful for debugging 2011-03-28 22:49:15 +00:00
thread_init_func.s
tls.s
tlv-reloc.s
tlv.s
values.s
variable-errors.s MCAsmLayout: Add support for computing the symbol offset of variables. Not 2011-04-29 18:20:20 +00:00
variable-exprs.s MC: Change variable symbols to be recognized as defined, by assigning their sections based on FindAssociatedSection(). 2011-04-29 18:20:17 +00:00
weakdef.s Fix relocations with weak definitions. 2010-12-07 05:57:28 +00:00
x86_32-optimal_nop.s
x86_32-sections.s
x86_32-symbols.s
x86_64-reloc-arithmetic.s MachOWriter: Don't crash on fixups with arithmetic, emit a relocation instead. This matches what as does. 2011-08-12 01:51:29 +00:00
x86_64-sections.s
x86_64-symbols.s
zerofill-1.s
zerofill-2.s
zerofill-3.s
zerofill-4.s
zerofill-5.s
zerofill-sect-align.s