From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <20190131192533.34130-1-thgarnie@chromium.org> <20190131192533.34130-16-thgarnie@chromium.org> <3a2bdc07-e8c4-c340-dde7-516ab0de66f2@intel.com> In-Reply-To: <3a2bdc07-e8c4-c340-dde7-516ab0de66f2@intel.com> From: Thomas Garnier Date: Fri, 1 Feb 2019 09:35:00 -0800 Message-ID: Subject: Re: [PATCH v6 15/27] compiler: Option to default to hidden symbols Content-Type: text/plain; charset="UTF-8" To: Adrian Hunter Cc: Thomas Garnier , Kernel Hardening , kristen@linux.intel.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , the arch/x86 maintainers , Luis Chamberlain , Greg Kroah-Hartman , "Rafael J. Wysocki" , Arnd Bergmann , Luc Van Oostenryck , Steven Rostedt , Jason Baron , Jordan Borgner , Masami Hiramatsu , Masahiro Yamada , "Peter Zijlstra (Intel)" , Andrew Morton , Kees Cook , Mathieu Desnoyers , Arnaldo Carvalho de Melo , Andi Kleen , Jan Beulich , Song Liu , Alexander Shishkin , LKML , linux-arch , Sparse Mailing-list List-ID: On Fri, Feb 1, 2019 at 12:24 AM Adrian Hunter wrote: > > On 31/01/19 9:24 PM, Thomas Garnier wrote: > > Provide an option to default visibility to hidden except for key > > symbols. This option is disabled by default and will be used by x86_64 > > PIE support to remove errors between compilation units. > > > > The default visibility is also enabled for external symbols that are > > compared as they maybe equals (start/end of sections). In this case, > > older versions of GCC will remove the comparison if the symbols are > > hidden. This issue exists at least on gcc 4.9 and before. > > What does this mean, if anything, for what/how symbols appear in /proc/kallsyms? No, they will still appear in kallsyms. Some symbols are not absolute anymore or moved sections but still present. -- Thomas