linux/tools
Thadeu Lima de Souza Cascardo 446eb6f089 objtool: skip non-text sections when adding return-thunk sites
The .discard.text section is added in order to reserve BRK, with a
temporary function just so it can give it a size. This adds a relocation to
the return thunk, which objtool will add to the .return_sites section.
Linking will then fail as there are references to the .discard.text
section.

Do not add instructions from non-text sections to the list of return thunk
calls, avoiding the reference to .discard.text.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-25 11:26:37 +02:00
..
accounting
arch tools arch: Update arch/x86/lib/mem{cpy,set}_64.S copies used in 'perf bench mem memcpy' 2022-07-25 11:26:31 +02:00
bootconfig
bpf
build tools build: Use $(shell ) instead of `` to get embedded libperl's ccopts 2022-04-13 21:01:10 +02:00
cgroup
debugging
edid
firewire
firmware
gpio
hv
iio
include x86/insn: Add an insn_decode() API 2022-07-25 11:26:11 +02:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: Fix logic for finding matching program for CO-RE relocation 2022-06-09 10:21:03 +02:00
memory-model
objtool objtool: skip non-text sections when adding return-thunk sites 2022-07-25 11:26:37 +02:00
pci
pcmcia
perf x86/insn: Add a __ignore_sync_check__ marker 2022-07-25 11:26:11 +02:00
power tools/power turbostat: fix ICX DRAM power numbers 2022-06-09 10:20:51 +02:00
scripts
spi
testing selftests: forwarding: fix error message in learning_test 2022-07-12 16:32:22 +02:00
thermal/tmon
time
usb
virtio tools/virtio: compile with -pthread 2022-05-25 09:17:53 +02:00
vm
wmi
Makefile