• R
    fix dlsym RTLD_NEXT behavior for fdpic · 6c5cad2a
    Rich Felker 提交于
    lookup the dso an address falls in based on the loadmap and not just a
    base/length. fix the main app's fake loadmap used when loaded by a
    non-fdpic-aware loader so that it does not cover the whole memory
    space.
    
    function descriptor addresses are also matched for future use by
    dladdr, but reverse lookups of function descriptors via dladdr have
    not been implemented yet. some revisions may be needed in the future
    once reclaim_gaps supports fdpic, so that function descriptors
    allocated in reclaimed heap space do not get detected as belonging to
    the module whose gaps they were allocated in.
    6c5cad2a
dynlink.c 51.8 KB