mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
67d921b9f5
Summary: The "single parameter" .file directive appears to be an ELF-only feature that is intended to insert the main source filename into the string table table. I noticed that if you assemble an ELF .s file for COFF, typically it will assert right away on a .file directive near the top of the file. My first change was to make this emit a proper error in the asm parser so that we don't assert so easily. However, COFF actually does have some support for this directive, and if you emit an object file, llvm-mc does not assert. When emitting a COFF object, MC will take those file names and create "debug" symbol table entries for them. I'm not familiar with these kinds of symbol table entries, and I'm not aware of any users of them, but @compnerd added them a while ago. They don't introduce absolute paths, and most main source file paths are short enough that this extra entry shouldn't cause any problems, so I enabled the flag in MCAsmInfoCOFF that indicates that it's supported. This has the side effect of adding an extra debug symbol to every object produced by clang, which is a pretty big functional change. My question is, should we keep the functionality or remove it in the name of symbol table minimalism? Reviewers: mstorsjo, compnerd Subscribers: hiraditya, compnerd, llvm-commits Differential Revision: https://reviews.llvm.org/D55900 llvm-svn: 349976 |
||
---|---|---|
.. | ||
AArch64 | ||
ARM | ||
PowerPC | ||
absolute.s | ||
absolutize.s | ||
alias.s | ||
altentry.s | ||
bad-darwin-x86_64-32-bit-abs-addr.s | ||
bad-darwin-x86_64-diff-relocs.s | ||
bad-darwin-x86_64-reloc-expr.s | ||
bad-dollar.s | ||
bad-indirect-symbols.s | ||
bad-macro.s | ||
bss.s | ||
build-version-with-sdk-version.s | ||
coal-sections-x86_64.s | ||
comm-1.s | ||
cstexpr-gotpcrel-32.ll | ||
cstexpr-gotpcrel-64.ll | ||
darwin-complex-difference.s | ||
darwin-sdk-version.ll | ||
darwin-version-min-load-command.s | ||
darwin-x86_64-diff-reloc-assign-2.s | ||
darwin-x86_64-diff-reloc-assign.s | ||
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 | ||
eh_symbol.s | ||
eh-frame-reloc.s | ||
empty-twice.ll | ||
file-single.s | ||
file.s | ||
gen-dwarf-cpp.s | ||
gen-dwarf-macro-cpp.s | ||
gen-dwarf-producer.s | ||
gen-dwarf.s | ||
i386-large-relocations.s | ||
indirect-symbols.s | ||
jcc.s | ||
lcomm-attributes.s | ||
linker-option-1.s | ||
linker-option-2.s | ||
linker-options.ll | ||
lit.local.cfg | ||
loc.s | ||
osx-version-min-load-command-with-sdk-errors.s | ||
osx-version-min-load-command-with-sdk.s | ||
osx-version-min-load-command.s | ||
pcrel-to-other-section.s | ||
pr19185.s | ||
previous.s | ||
pushsection.s | ||
relax-jumps.s | ||
relax-recompute-align.s | ||
reloc-diff.s | ||
reloc-pcrel-offset.s | ||
reloc-pcrel.s | ||
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-bss.ll | ||
tlv-reloc.s | ||
tlv.s | ||
undefined-directional.s | ||
values.s | ||
variable-errors.s | ||
variable-exprs.s | ||
weakdef.s | ||
x86_32-optimal_nop.s | ||
x86_32-scattered-reloc-fallback.s | ||
x86_32-sections.s | ||
x86_32-symbols.s | ||
x86_64-mergeable.s | ||
x86_64-reloc-arithmetic.s | ||
x86_64-sections.s | ||
x86_64-symbols.s | ||
x86-data-in-code.s | ||
zero-space.s | ||
zerofill-1.s | ||
zerofill-2.s | ||
zerofill-3.s | ||
zerofill-4.s | ||
zerofill-5.s | ||
zerofill-sect-align.s | ||
zerofill-text.s |