Please do not reply to this email: if you want to comment on the bug, go to the URL shown below and enter yourcomments there. https://freedesktop.org/bugzilla/show_bug.cgi?id=1698 Summary: RFE: Minimize symbol table in DRI drivers Product: DRI Version: XOrg CVS Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P3 Component: General AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED]
gcc4 (and earlier versions if patched, including gentoo's gcc3.4 and probably redhat's too) includes an -fvisibility flag, which allows the compiler to change the assumed symbol visibility for entire objects at once. traditional unix C rules state that non-static symbols are exported from the DSO by default; this usually means exporting many more symbols from the DSO than is strictly necessary. The symbols that must be exported from the DRI driver should be explicitly marked with __attribute__ ((visibility("default"))), so that the DRI drivers can be built with -fvisibility=hidden and still work correctly. Note that marking functions this way does not change behaviour for compilers that lack the -fvisibility flag. Currently a typical DRI driver exports ~1200 symbols, with ~100 of these defined by the driver and the rest by the Mesa core. This can be reduced to 2 or 3 with no loss in functionality. In addition to improving symbol resolution performance, the compiler can generate (marginally) better code when it knows that a symbol can't be referred to externally. As an example, r200_dri.so drops about 70k of text from the driver binary when built with a minimal export list. Other drivers show similar improvements. -- Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel