mac: Fix bug in generate_breakpad_symbols.py exposed by rpath stack removal.
The framework depends on libfoo.dylib, and when we symbolize this dependency, we use dirname(libfoo.dylib) -> '' as @loader_path, turning the rpath @loader_path/. into the absolute path /. Call realname() on the file before calling dirname to fix this, and to fix a second (latent) bug where the rpaths should be relative to the symlink targets, not to symlinks. (I think this was always broken, but harmless before I made GetSharedLibraryDependenciesMac() error out on resolving failures, and harmless in practice since the framework itself symbolized itself and its deps fine, just resolving the deps of the deps would silently fail before I made it fail loudly.) Bug: 853716 Change-Id: I519f786f785bcae8b5d64edc8ff1a883edba5c72 Reviewed-on: https://chromium-review.googlesource.com/1104393Reviewed-by:Robert Sesek <rsesek@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#568018}
Showing
Please register or sign in to comment