Actions
Bug #6252
closedld should merge function/data-sections in the same manner as GNU ld
Start date:
2015-09-21
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:
Description
When gcc is invoked with -ffunction-sections and/or -fdata-sections, it produces one section per symbol in output relocatable objects.
When producing a dynamic object, gld merges these sections into their logical main section. We should do the same thing.
This makes certain C++ applications (firefox) have vastly fewer sections, and link-edit orders of magnitude faster.
Updated by Rich Lowe about 8 years ago
- Project changed from site to illumos gate
Updated by Electric Monk about 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit ce68629858b847885cda69bf09057ab27980fe8d
commit ce68629858b847885cda69bf09057ab27980fe8d Author: Richard Lowe <richlowe@richlowe.net> Date: 2015-09-28T12:06:34.000Z 6252 ld should merge function/data-sections in the same manner as GNU ld Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Josef Sipek <jeffpc@josefsipek.net> Reviewed by: Albert Lee <trisk@omniti.com> Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com> Approved by: Dan McDonald <danmcd@omniti.com>
Actions