Bug #85809 Set default symbol visibility to hidden
Submitted: 5 Apr 2017 12:43 Modified: 8 Apr 2017 14:07
Reporter: Steinar Gunderson Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[5 Apr 2017 12:43] Steinar Gunderson
Description:
mysqld exports almost every symbol to every plugin. This causes plugins to depend on internal behavior, and complicates the build system on Windows. We should stop doing this.

How to repeat:
N/A

Suggested fix:
Set default visibility to hidden, and export only the needed symbols.
[8 Apr 2017 14:07] Paul DuBois
Posted by developer:
 
Noted in 8.0.2 changelog.

Default symbol visibility is now hidden rather than visible. Symbols
are exported only explicitly. This reduces symbol namespace
pollution, build times, and resulting server binary size.
[10 Apr 2017 13:56] Paul DuBois
Posted by developer:
 
Patch was reverted, so changelog entry has been removed.