Project

General

Profile

Actions

Bug #7323

closed

ld(1) -zignore can erroneously discard init and fini arrays as unreferenced

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2016-08-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

.init_array and .fini_array are referenced via the entries in .dynamic, and not by the program text otherwise.
ld(1)'s ignore processing needs to know that these sections are special and cannot be discarded in that fashion.

When these sections are ignored, the DT_ entries are still created, with 0 address and size. The linker is smart enough not to call NULL in these cases, but applications dependent on their initialization having occurred will fail.


Related issues

Related to OpenIndiana Distribution - Feature #6965: Provide GCC 5 as additional compilerResolvedOI Userland2016-05-11

Actions
Actions

Also available in: Atom PDF