forked from OSchip/llvm-project
b216c80cc2
Part of https://bugs.llvm.org/show_bug.cgi?id=41734 The semantics of SHF_LINK_ORDER have been extended to represent metadata sections associated with some other sections (usually text). The associated text section may be discarded (e.g. LTO) and we want the metadata section to have sh_link=0 (D72899, D76802). Normally the metadata section is only referenced by the associated text section. sh_link=0 means the associated text section is discarded, and the metadata section will be garbage collected. If there is another section (.gc_root) referencing the metadata section, the metadata section will be retained. It's the .gc_root consumer's job to validate the metadata sections. # This creates a SHF_LINK_ORDER .meta with sh_link=0 .section .meta,"awo",@progbits,0 1: .section .meta,"awo",@progbits,foo 2: .section .gc_root,"a",@progbits .quad 1b .quad 2b Reviewed By: pcc, jhenderson Differential Revision: https://reviews.llvm.org/D72904 |
||
---|---|---|
.. | ||
bad-arm-attributes.s | ||
bad-reloc-target.test | ||
broken-relaxation-x64.test | ||
comdat-broken.test | ||
common-symbol-alignment.test | ||
data-encoding.test | ||
dynamic-section-broken.test | ||
eh-frame-hdr-no-out.s | ||
ehframe-broken-relocation.test | ||
entsize.yaml | ||
executable.s | ||
invalid-binding.test | ||
invalid-debug-relocations.test | ||
invalid-e_shnum.test | ||
invalid-elf.test | ||
invalid-file-class.test | ||
invalid-relocation-aarch64.test | ||
invalid-relocation-x64.test | ||
invalid-soname.test | ||
linkorder-invalid-sec.test | ||
merge-invalid-size.s | ||
merge-writable.s | ||
merge-zero-size.test | ||
mips-invalid-options-descriptor.test | ||
multiple-relocations-sections.test | ||
non-terminated-string.test | ||
section-alignment.test | ||
section-alignment2.s | ||
section-index.test | ||
sht-group-wrong-section.test | ||
sht-group.test | ||
symbol-name.test | ||
symtab-sh-info-dup.test | ||
symtab-sh-info.s | ||
symtab-symbols.test | ||
tls-symbol.s | ||
undefined-local-symbol-in-dso.test | ||
verdef-no-symtab.test | ||
verneed-shared.test | ||
x86-64-tlsdesc-gd.s |