Project

General

Profile

Bug #6252

ld should merge function/data-sections in the same manner as GNU ld

Added by Rich Lowe about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
2015-09-21
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

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.

History

#1

Updated by Rich Lowe about 4 years ago

  • Project changed from site to illumos gate
#2

Updated by Electric Monk about 4 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>

Also available in: Atom PDF