ld should merge function/data-sections in the same manner as GNU ld
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 Electric Monk about 4 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit ce68629858b847885cda69bf09057ab27980fe8d Author: Richard Lowe <email@example.com> 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 <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Reviewed by: Josef Sipek <firstname.lastname@example.org> Reviewed by: Albert Lee <email@example.com> Reviewed by: Hans Rosenfeld <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>