#2921 closed defect (fixed)

libdl assumes constructors in ELF are a ".ctors" section.

Reported by: Chris Johns Owned by: Chris Johns
Priority: normal Milestone:
Component: lib/dl Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

The RTL libdl loader assumes constructors are in a section called '.ctor' and destructors are in '.dtor'. The section can have any name. The section type needs to be used.

Change History (3)

comment:1 Changed on 03/23/17 at 01:03:28 by Chris Johns

Milestone: 4.11.24.11.3

The 4.11.2 milestone is closing.

comment:2 Changed on 02/05/18 at 05:10:39 by Chris Johns

Milestone: 4.11.3
Version: 4.115

This bug is present on the master branch and needs to be fixed there. If the change is suitable for back porting a new ticket can be opened and a suitable 4.11 milestone can be assigned.

comment:3 Changed on 02/08/19 at 23:08:31 by Chris Johns <chrisj@…>

Resolution: fixed
Status: assignedclosed

In 4408603/rtems:

libdl: Fix the support for constructors and desctructors.

  • Fix the handling of pending objects.
  • Add a constructor flags in objects to track then being called.

Closes #2921

Note: See TracTickets for help on using tickets.