llvm-project/llvm/test/MC/ELF
George Rimar b9ed9cb5d7 [llvm-mc] - Properly set the the address align field of the compressed sections.
About the compressed sections spec says:
(https://docs.oracle.com/cd/E37838_01/html/E36783/section_compression.html)
sh_addralign fields of the section header for a compressed section
reflect the requirements of the compressed section.

Currently, llvm-mc always puts uncompressed section alignment to sh_addralign.
It is not correct. zlib styled section contains an Elfxx_Chdr header,
so we should either use 4 or 8 values depending on the target
(Uncompressed section alignment is stored in ch_addralign field of the compression header).

GNU assembler version 2.31.1 also has this issue,
but in 2.32.51 it was already fixed. This is how it was found
during debugging of the https://bugs.llvm.org/show_bug.cgi?id=40482
actually.

Differential revision: https://reviews.llvm.org/D60965

llvm-svn: 358960
2019-04-23 09:16:53 +00:00
..
ARM Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
abs.s
addrsig-error.s MC: Implement support for new .addrsig and .addrsig_sym directives. 2018-07-17 22:17:18 +00:00
addrsig.s MC: Teach the COFF object writer to write address-significance tables. 2018-08-22 23:58:16 +00:00
alias-reloc.s
alias-to-local.s
alias.s [llvm-readobj] Display section names for STT_SECTION symbols. 2019-03-01 17:31:32 +00:00
align-bss.s
align-nops.s [X86] Don't use NOPL when the assembler is passed an empty CPU string. Update tests to force a CPU with NOPL 2017-12-18 21:37:27 +00:00
align-size.s
align-text.s
align-zero.s
align.s
bad-expr.s Add a common error checking for some invalid expressions. 2017-06-22 17:25:35 +00:00
bad-expr2.s Make this test a bit more strict. NFC. 2017-06-20 21:11:58 +00:00
bad-expr3.s Use @LINE in two more tests. 2017-07-06 21:33:23 +00:00
bad-relocation.s
bad-section.s
basic-elf-32.s [CodeGen] Unify MBB reference format in both MIR and debug output 2017-12-04 17:18:51 +00:00
basic-elf-64.s [llvm-mc] - Produce R_X86_64_PLT32 for "call/jmp foo". 2018-02-20 10:17:57 +00:00
bracket-exprs.s
bracket.s
bss-large.ll
bss.ll
call-abs.s [CodeGen] Unify MBB reference format in both MIR and debug output 2017-12-04 17:18:51 +00:00
cfi-adjust-cfa-offset.s
cfi-advance-loc2.s
cfi-b-key-frame.s [AArch64] Adding missing REQUIRES in aarch64 dwarf test 2018-12-21 13:39:13 +00:00
cfi-def-cfa-offset.s
cfi-def-cfa-register.s
cfi-def-cfa.s
cfi-escape.s
cfi-large-model.s Move `REQUIRES:` line to the top 2018-06-26 17:44:23 +00:00
cfi-offset.s
cfi-reg.s
cfi-register.s
cfi-rel-offset.s
cfi-rel-offset2.s
cfi-remember.s
cfi-restore-extended.s Fix .cfi_restore with register numbers > 64 2018-11-13 10:54:49 +00:00
cfi-restore.s
cfi-same-value.s
cfi-sections.s
cfi-signal-frame.s [MC] Sort FDEs by the associated CIE before emitting them. 2019-03-14 23:08:19 +00:00
cfi-undefined.s
cfi-version.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
cfi-window-save.s
cfi-zero-addr-delta.s
cfi.s [MC] Sort FDEs by the associated CIE before emitting them. 2019-03-14 23:08:19 +00:00
cgprofile-error.s [MC] Add assembler support for .cg_profile. 2018-06-02 16:33:01 +00:00
cgprofile.ll Recommit r335794 "Add support for generating a call graph profile from Branch Frequency Info." with fix for removed functions. 2018-07-16 00:28:24 +00:00
cgprofile.s [MC] Add assembler support for .cg_profile. 2018-06-02 16:33:01 +00:00
comdat-declaration-errors.s [MC] - Disallow invalid section groups declarations. 2017-12-25 09:41:00 +00:00
comdat-dup-group-name.s
comdat-name-number.s [llvm] Fix mc tests 2018-03-12 23:36:25 +00:00
comdat-reloc.s
comdat.s
common-error1.s
common-error2.s
common-error3.s
common-redeclare.s [llvm][test] Update tests using objdump 2018-11-11 18:40:33 +00:00
common.s
common2.s
comp-dir.s llvm-dwarfdump: Make -brief the default and add a -verbose option instead. 2017-09-11 23:05:20 +00:00
compression.s [llvm-mc] - Properly set the the address align field of the compressed sections. 2019-04-23 09:16:53 +00:00
debug-file-options.s [DWARFv5] llvm-mc -dwarf-version does not imply -g. 2018-06-12 16:09:03 +00:00
debug-line.s Re-submit r289925 (Update .debug_line section version to match DWARF version) 2017-12-04 21:27:46 +00:00
debug-line2.s Re-submit r289925 (Update .debug_line section version to match DWARF version) 2017-12-04 21:27:46 +00:00
debug-loc.s Re-submit r289925 (Update .debug_line section version to match DWARF version) 2017-12-04 21:27:46 +00:00
debug-md5-err.s [DWARFv5] Tolerate files not all having an MD5 checksum. 2018-06-14 13:38:20 +00:00
debug-md5.s [DWARFv5] llvm-mc -dwarf-version does not imply -g. 2018-06-12 16:09:03 +00:00
debug-mixed-md5.ll [llvm] Prevent duplicate files in debug line header in dwarf 5: another attempt 2019-04-19 02:26:56 +00:00
debug-prefix-map.s [DWARF] Make -g with empty assembler source work better. 2019-03-01 20:58:04 +00:00
debug-source.s [DWARFv5] llvm-mc -dwarf-version does not imply -g. 2018-06-12 16:09:03 +00:00
diff.s
diff2.s
discriminator.s Re-submit r289925 (Update .debug_line section version to match DWARF version) 2017-12-04 21:27:46 +00:00
div-by-zero.s [MC] Don't crash on modulo by zero (PR35650) 2018-02-22 18:06:48 +00:00
dot-symbol-assignment.s
dwarf-file0.s [llvm] Prevent duplicate files in debug line header in dwarf 5: another attempt 2019-04-19 02:26:56 +00:00
dwarf-loc0.s [DWARF] Unclamp line table version on Darwin for v5 and later. 2018-08-08 21:16:50 +00:00
dwo-restrict-relocs.s Replace unused output filenames with /dev/null in tests 2018-07-02 18:16:44 +00:00
dwo-sections.s MC: Introduce an ELF dwo object writer and teach llvm-mc about it. 2018-05-21 19:44:54 +00:00
elf_directive_previous.s
elf_directive_section.s
empty-dwarf-lines.s Re-submit r289925 (Update .debug_line section version to match DWARF version) 2017-12-04 21:27:46 +00:00
empty-twice.ll
empty.s
entsize.ll
entsize.s
exclude-debug-dwo.s [lib/MC] - Set SHF_EXCLUDE flag for .dwo sections. 2018-09-22 07:36:20 +00:00
fde.s [CodeGen] Unify MBB reference format in both MIR and debug output 2017-12-04 17:18:51 +00:00
file-double.s
file.s
gen-dwarf.s [NFC] fix trivial typos in comments and documents 2018-01-29 05:17:03 +00:00
global-offset.s
gnu-type-diagnostics.s
gnu-type.s
got-relaxed-i386.s
got-relaxed-no-relax.s
got-relaxed-rex.s
got-relaxed.s
got.s
ident.s
ifunc-reloc.s [llvm-mc] - Produce R_X86_64_PLT32 for "call/jmp foo". 2018-02-20 10:17:57 +00:00
invalid-symver.s [MC] Make symbol version errors non-fatal 2019-02-13 01:39:32 +00:00
lcomm.s
leb128.s
lit.local.cfg
local-reloc.s
many-sections-2.s [llvm-readobj] Display section names for STT_SECTION symbols. 2019-03-01 17:31:32 +00:00
many-sections-3.s
many-sections.s
merge.s
metadata-declaration-errors.s [MC] - Stop ignoring invalid meta data symbols. 2017-12-31 07:41:02 +00:00
multiple-different-symver.s [MC] Make symbol version errors non-fatal 2019-02-13 01:39:32 +00:00
multiple-equiv-symver.s ELFObjectWriter: Allow one unique symver per symbol 2018-04-27 20:32:34 +00:00
n_bytes.s
no-fixup.s
no-reloc.s
nocompression.s Move `REQUIRES:` line to the top 2018-06-26 17:44:23 +00:00
noexec.s
norelocation.s
offset.s
org.s
pic-diff.s
plt.s
popsection.s
pr9292.s
pr19430.s
pr19582.s
relax-all-flag.s
relax-arith.s
relax-arith2.s
relax-arith3.s
relax-arith4.s
relax-crash.s
relax.s
reloc-same-name-section.s
relocation-386.s
relocation-pc.s
relocation-tls.s
relocation.s [MC] [X86] Teach leaq _GLOBAL_OFFSET_TABLE(%rip), %r15 to use R_X86_64_GOTPC32 instead of R_X86_64_PC32 2018-06-12 16:20:44 +00:00
rename.s
section-metadata-err1.s Change section flag character for SHF_LINK_ORDER to "o". 2017-04-04 22:35:08 +00:00
section-metadata-err2.s Change section flag character for SHF_LINK_ORDER to "o". 2017-04-04 22:35:08 +00:00
section-metadata-err3.s Change section flag character for SHF_LINK_ORDER to "o". 2017-04-04 22:35:08 +00:00
section-metadata-err4.s Change section flag character for SHF_LINK_ORDER to "o". 2017-04-04 22:35:08 +00:00
section-numeric-flag.s Add missing triple target for numeric section flag test 2016-12-15 10:20:48 +00:00
section-numeric-invalid-type.s Add llvm::object::getELFSectionTypeName(). 2017-05-02 14:04:52 +00:00
section-numeric-type.s [MC] Accept a numeric value as an ELF section header's type 2017-03-10 08:22:13 +00:00
section-quoting.s
section-sym-err.s Disallow redefinition of section symbols. 2017-02-24 21:44:58 +00:00
section-sym-err2.s Disallow redefinition of section symbols. 2017-02-24 21:44:58 +00:00
section-sym.s [llvm-readobj] Display section names for STT_SECTION symbols. 2019-03-01 17:31:32 +00:00
section-sym2.s
section-unique-err1.s
section-unique-err2.s
section-unique-err3.s
section-unique-err4.s
section-unique.s
section.s CodeGen: support an extension to pass linker options on ELF 2018-01-30 16:29:29 +00:00
set.s
size.s
sleb.s
strtab-suffix-opt.s
subsection.s
subtraction-error.s
symbol-names.s
symver-msvc.s
symver-pr23914.s
symver.s [llvm-readobj] Display section names for STT_SECTION symbols. 2019-03-01 17:31:32 +00:00
tls-i386.s
tls.s
type-propagate.s
type.s
uleb-ehtable.s [MC] Fix assembler infinite loop on EH table using LEB padding. 2018-02-01 00:25:19 +00:00
uleb.s
undef-temp.s
undef.s
undefined-debug.s Recommit r348243 - "[llvm-mc] - Do not crash when referencing undefined debug sections." 2018-12-05 10:43:58 +00:00
undefined-directional.s
version.s
weak-diff.s [llvm-mc] - Produce R_X86_64_PLT32 for "call/jmp foo". 2018-02-20 10:17:57 +00:00
weak-relocation.s [llvm-mc] - Produce R_X86_64_PLT32 for "call/jmp foo". 2018-02-20 10:17:57 +00:00
weak.s
weakref-plt.s
weakref-reloc.s [llvm-mc] - Produce R_X86_64_PLT32 for "call/jmp foo". 2018-02-20 10:17:57 +00:00
weakref.s [llvm-readobj] Display section names for STT_SECTION symbols. 2019-03-01 17:31:32 +00:00
x86_64-reloc-sizetest.s
zero.s