]> git.ipfire.org Git - thirdparty/valgrind.git/commit
macos: Improve macOS 10.12 support. bz#365327.
authorRhys Kidd <rhyskidd@gmail.com>
Sat, 29 Apr 2017 22:06:20 +0000 (22:06 +0000)
committerRhys Kidd <rhyskidd@gmail.com>
Sat, 29 Apr 2017 22:06:20 +0000 (22:06 +0000)
commitf2c8220a6d1c8791ad8e082f4a81cc1cf287e01e
treef11a7165392d621768fcae21ade9909adc146b25
parent6fbaf672c8df5778f94e46537339391022fdf5f8
macos: Improve macOS 10.12 support. bz#365327.

The new macOS 10.12 way of loading dylib (placing them at the end of the currently
loaded segments) requires that Valgrind needs to know where the last segment was loaded.

A new structure (load_info_t) has been created to store all this information and easily
carry it around.

Changes:
- dyld text address is relative instead of absolute (macOS 10.12)
- Handle dylinker's offset (macOS 10.12)
- Handle the executable requesting a non-default stack address (macOS 10.12)
- Refactor to use load_info_t structure (all macOS)

Patch from Louis Brunner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16318
coregrind/m_ume/macho.c