Commit 25cb855b authored by Gabriel Schulhof's avatar Gabriel Schulhof
Browse files

src: find .text section using dl_iterate_phdr



Use `dl_iterate_phdr(3)` to find the mapping containing
`__node_text_start` instead of parsing `/proc/self/maps`.

Signed-off-by: default avatarGabriel Schulhof <gabriel.schulhof@intel.com>
Co-Authored-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
PR-URL: https://github.com/nodejs/node/pull/32244


Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
Reviewed-By: default avatarDavid Carlier <devnexen@gmail.com>
parent 2e3dc12e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment