forked from OSchip/llvm-project
4f60a38f18
For COFF and MachO, sections semantically have relocations that apply to them. That is not the case on ELF. In relocatable objects (.o), a section with relocations in ELF has offsets to another section where the relocations should be applied. In dynamic objects and executables, relocations don't have an offset, they have a virtual address. The section sh_info may or may not point to another section, but that is not actually used for resolving the relocations. This patch exposes that in the ObjectFile API. It has the following advantages: * Most (all?) clients can handle this more efficiently. They will normally walk all relocations, so doing an effort to iterate in a particular order doesn't save time. * llvm-readobj now prints relocations in the same way the native readelf does. * probably most important, relocations that don't point to any section are now visible. This is the case of relocations in the rela.dyn section. See the updated relocation-executable.test for example. llvm-svn: 182908 |
||
---|---|---|
.. | ||
adc.ll | ||
addsub-shifted.ll | ||
addsub.ll | ||
addsub_ext.ll | ||
adrp-relocation.ll | ||
alloca.ll | ||
analyze-branch.ll | ||
atomic-ops-not-barriers.ll | ||
atomic-ops.ll | ||
basic-pic.ll | ||
bitfield-insert-0.ll | ||
bitfield-insert.ll | ||
bitfield.ll | ||
blockaddress.ll | ||
bool-loads.ll | ||
breg.ll | ||
callee-save.ll | ||
code-model-large-abs.ll | ||
compare-branch.ll | ||
cond-sel.ll | ||
directcond.ll | ||
dp-3source.ll | ||
dp1.ll | ||
dp2.ll | ||
elf-extern.ll | ||
extern-weak.ll | ||
extract.ll | ||
fastcc-reserved.ll | ||
fastcc.ll | ||
fcmp.ll | ||
fcvt-fixed.ll | ||
fcvt-int.ll | ||
flags-multiuse.ll | ||
floatdp_1source.ll | ||
floatdp_2source.ll | ||
fp-cond-sel.ll | ||
fp-dp3.ll | ||
fp128-folding.ll | ||
fp128.ll | ||
fpimm.ll | ||
func-argpassing.ll | ||
func-calls.ll | ||
global-alignment.ll | ||
got-abuse.ll | ||
i128-align.ll | ||
illegal-float-ops.ll | ||
init-array.ll | ||
inline-asm-constraints-badI.ll | ||
inline-asm-constraints-badK.ll | ||
inline-asm-constraints-badK2.ll | ||
inline-asm-constraints-badL.ll | ||
inline-asm-constraints.ll | ||
inline-asm-modifiers.ll | ||
jump-table.ll | ||
large-frame.ll | ||
ldst-regoffset.ll | ||
ldst-unscaledimm.ll | ||
ldst-unsignedimm.ll | ||
lit.local.cfg | ||
literal_pools.ll | ||
local_vars.ll | ||
logical-imm.ll | ||
logical_shifted_reg.ll | ||
logical_shifted_reg.s | ||
movw-consts.ll | ||
pic-eh-stubs.ll | ||
regress-bitcast-formals.ll | ||
regress-f128csel-flags.ll | ||
regress-tail-livereg.ll | ||
regress-tblgen-chains.ll | ||
regress-w29-reserved-with-fp.ll | ||
regress-wzr-allocatable.ll | ||
setcc-takes-i32.ll | ||
sibling-call.ll | ||
sincos-expansion.ll | ||
tail-call.ll | ||
tls-dynamic-together.ll | ||
tls-dynamics.ll | ||
tls-execs.ll | ||
tst-br.ll | ||
variadic.ll | ||
zero-reg.ll |