![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* 0003 * When building position independent code with GCC using the -fPIC option, 0004 * (or even the -fPIE one on older versions), it will assume that we are 0005 * building a dynamic object (either a shared library or an executable) that 0006 * may have symbol references that can only be resolved at load time. For a 0007 * variety of reasons (ELF symbol preemption, the CoW footprint of the section 0008 * that is modified by the loader), this results in all references to symbols 0009 * with external linkage to go via entries in the Global Offset Table (GOT), 0010 * which carries absolute addresses which need to be fixed up when the 0011 * executable image is loaded at an offset which is different from its link 0012 * time offset. 0013 * 0014 * Fortunately, there is a way to inform the compiler that such symbol 0015 * references will be satisfied at link time rather than at load time, by 0016 * giving them 'hidden' visibility. 0017 */ 0018 0019 #pragma GCC visibility push(hidden)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |