From d06aa5610a7fbd8fce972719eae6bb3d25d96aed Mon Sep 17 00:00:00 2001 From: Matthias Maennich Date: Fri, 30 Oct 2020 14:34:07 +0000 Subject: [PATCH] ANDROID: Drop left-over out-of-tree difference after 5.10-rc1 merge This originally originated from c3826e499c04 ("FROMLIST: x86/boot/compressed: Force hidden visibility for all symbol references") and was mostly (but not completely) reverted during the 5.10-rc1 merge. Fixes: 43105055d5d5 ("Merge 34eb62d868d7 ("Merge tag 'core-build-2020-10-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip") into android-mainline") Change-Id: I1147c5bd418fded27a02feed31b748d94cbdb8d5 Signed-off-by: Matthias Maennich --- arch/x86/boot/compressed/hidden.h | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 arch/x86/boot/compressed/hidden.h diff --git a/arch/x86/boot/compressed/hidden.h b/arch/x86/boot/compressed/hidden.h deleted file mode 100644 index 49a17b6b5962..000000000000 --- a/arch/x86/boot/compressed/hidden.h +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * When building position independent code with GCC using the -fPIC option, - * (or even the -fPIE one on older versions), it will assume that we are - * building a dynamic object (either a shared library or an executable) that - * may have symbol references that can only be resolved at load time. For a - * variety of reasons (ELF symbol preemption, the CoW footprint of the section - * that is modified by the loader), this results in all references to symbols - * with external linkage to go via entries in the Global Offset Table (GOT), - * which carries absolute addresses which need to be fixed up when the - * executable image is loaded at an offset which is different from its link - * time offset. - * - * Fortunately, there is a way to inform the compiler that such symbol - * references will be satisfied at link time rather than at load time, by - * giving them 'hidden' visibility. - */ - -#pragma GCC visibility push(hidden)