On Tue, 7 Jan 2020 at 18:58, Arvind Sankar <nivedita@xxxxxxxxxxxx> wrote: > > On Tue, Jan 07, 2020 at 03:28:31PM +0100, Ard Biesheuvel wrote: > > > > Unfortunately, the command line option implements a weaker form of > > visibility than the pragma, so it probably comes down to setting the > > pragma in a .h file that gets -include'd via the command line so it is > > guaranteed to be seen first. > > Tried hacking that in and it works, tested with gcc 4.6.4. Excellent. But in my testing locally, I don't get any GOT entries in the first place, strangely enough. So what changes in the output for you with visibility hidden compared to before?