1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/MC/MachO
Bill Wendling 33bd6a2d6c 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>

llvm-svn: 161477
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
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
darwin-x86_64-nobase-relocs.s
darwin-x86_64-reloc-offsets.s
darwin-x86_64-reloc.s
data.s
debug_frame.s
diff-with-two-sections.s
direction_labels.s
empty-dwarf-lines.s
file.s
gen-dwarf.s
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
pcrel-to-other-section.s
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
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
section-flags.s
string-table.s
symbol-diff.s
symbol-flags.s
symbol-indirect.s
symbols-1.s
tbss.s
tdata.s
temp-labels.s
thread_init_func.s
tls.s
tlv-reloc.s
tlv.s
values.s
variable-errors.s
variable-exprs.s
weakdef.s
x86_32-optimal_nop.s
x86_32-sections.s
x86_32-symbols.s
x86_64-reloc-arithmetic.s
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