This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14274] New: Split usage of l_initfini and l_searchlist.


http://sourceware.org/bugzilla/show_bug.cgi?id=14274

             Bug #: 14274
           Summary: Split usage of l_initfini and l_searchlist.
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: carlos_odonell@mentor.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


The dynamic linker creates one large array for l_initfini, actually twice what
it needs, and uses half of the array for l_initfini and the other half for
l_searchlist.

This doesn't make any sense and the l_initfini array should be split into two.
In fact it is reusing one one array that caused BZ#13579.

Once you split l_initfini from l_searchlist you can manage their allocation and
deallocation independently.

See dl-close.c for the location where l_initfini is reused for l_searchlist.
See dl-deps.c(_dl_map_object_deps) where we create the shared array.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]