forked from OSchip/llvm-project
4e71702cd4
Currenly we can encode the 'st_other' field of symbol using 3 fields. 'Visibility' is used to encode STV_* values. 'Other' is used to encode everything except the visibility, but it can't handle arbitrary values. 'StOther' is used to encode arbitrary values when 'Visibility'/'Other' are not helpfull enough. 'st_other' field is used to encode symbol visibility and platform-dependent flags and values. Problem to encode it is that it consists of Visibility part (STV_* values) which are enumeration values and the Other part, which is different and inconsistent. For MIPS the Other part contains flags for all STO_MIPS_* values except STO_MIPS_MIPS16. (Like comment in ELFDumper says: "Someones in their infinite wisdom decided to make STO_MIPS_MIPS16 flag overlapped with other ST_MIPS_xxx flags."...) And for PPC64 the Other part might actually encode any value. This patch implements custom logic for handling the st_other and removes 'Visibility' and 'StOther' fields. Here is an example of a new YAML style this patch allows: - Name: foo Other: [ 0x4 ] - Name: bar Other: [ STV_PROTECTED, 4 ] - Name: zed Other: [ STV_PROTECTED, STO_MIPS_OPTIONAL, 0xf8 ] Differential revision: https://reviews.llvm.org/D66886 llvm-svn: 370472 |
||
---|---|---|
.. | ||
Inputs | ||
aix_xcoff.test | ||
aix_xcoff_truncated_file_header.test | ||
basic-minidump.yaml | ||
coff-bss.s | ||
coff-long-file-symbol.test | ||
coff-long-section-name.test | ||
coff-section-aux-symbol.test | ||
coff-weak-external.test | ||
duplicate-symbol-and-section-names.test | ||
dynamic-section-arch-tags.test | ||
dynamic-section.test | ||
elf-entsize.yaml | ||
elf-gnu-unique-symbols.yaml | ||
elf-mips-eflags.yaml | ||
elf-null-section.yaml | ||
elf-reladyn-section-shinfo.yaml | ||
elf-shinfo.yaml | ||
elf-shlink.yaml | ||
elf-sht-symtab-shndx.yaml | ||
elf-symbol-visibility.yaml | ||
invalid_input_file.test | ||
lit.local.cfg | ||
missing_symtab.test | ||
no-symbol-reloc.test | ||
section-group.test | ||
section-type.yaml | ||
sections-info.yaml | ||
special-symbol-indices.yaml | ||
symbol-type.yaml | ||
verdef-section.yaml | ||
verneed-section.yaml | ||
versym-section.yaml |