diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-10-15 22:51:56 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-10-15 22:51:56 -0400 |
commit | bde0b4b92e2c3f8d26d28e8478f196233ce51618 (patch) | |
tree | 8ed82eb56e52190a1dddae326a6d0b0ffed0e75b /src/mman | |
parent | bc9b6ea0df6a820878d9ac538b2b852fec367d41 (diff) | |
download | musl-bde0b4b92e2c3f8d26d28e8478f196233ce51618.tar.gz musl-bde0b4b92e2c3f8d26d28e8478f196233ce51618.tar.xz musl-bde0b4b92e2c3f8d26d28e8478f196233ce51618.zip |
fix dladdr treatment of function descriptors for fdpic
when determining which module an address belongs to, all function descriptor ranges must be checked first, in case the allocated memory falls inside another module's memory range. dladdr itself must also check addresses against function descriptors before doing a best-match search against the symbol table. even when doing the latter (e.g. for code addresses obtained from mcontext_t), also check whether the best-match was a function, and if so, replace the result with a function descriptor address. which is the nominal "base address" of the function and which the caller needs if it intends to subsequently call the matching function.
Diffstat (limited to 'src/mman')
0 files changed, 0 insertions, 0 deletions