mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
Merge remote-tracking branch 'sm8350/lineage-20' into lineage-23.2
* sm8350/lineage-20: drivers: staging: qca-wifi-host-cmn: Fix implicit-enum-enum-cast errors techpack: display: msm: sde: Fix uninitialized errors drivers: hwtracing: coresight: Fix sometimes-uninitialized errors kbuild: Remove support for Clang's ThinLTO caching kbuild: lto: force rebuilds when switching CONFIG_LTO Makefile: use -z pack-relative-relocs Revert "kbuild: disable clang's default use of -fmerge-all-constants" BACKPORT: dma-buf: return success for cmo of dummy clients Revert "msm: kgsl: Call dma_buf_unmap_attachment() early" Change-Id: I879af747cfc89b2e70d80b06c53ed67cc3195266
This commit is contained in:
commit
c229ae0da6
7 changed files with 24 additions and 25 deletions
|
|
@ -7,8 +7,12 @@ trap "rm -f $tmp_file.o $tmp_file $tmp_file.bin" EXIT
|
|||
cat << "END" | $CC -c -x c - -o $tmp_file.o >/dev/null 2>&1
|
||||
void *p = &p;
|
||||
END
|
||||
$LD $tmp_file.o -shared -Bsymbolic --pack-dyn-relocs=relr \
|
||||
--use-android-relr-tags -o $tmp_file
|
||||
|
||||
# ld.lld before 15 did not support -z pack-relative-relocs.
|
||||
if ! $LD $tmp_file.o -shared -Bsymbolic --pack-dyn-relocs=relr -o $tmp_file 2>/dev/null; then
|
||||
$LD $tmp_file.o -shared -Bsymbolic -z pack-relative-relocs -o $tmp_file 2>&1 |
|
||||
grep -q pack-relative-relocs && exit 1
|
||||
fi
|
||||
|
||||
# Despite printing an error message, GNU nm still exits with exit code 0 if it
|
||||
# sees a relr section. So we need to check that nothing is printed to stderr.
|
||||
|
|
|
|||
Loading…
Reference in a new issue