| 3606 | } |
| 3607 | |
| 3608 | static cm::optional<bool> SetRPathELF(std::string const& file, |
| 3609 | std::string const& newRPath, |
| 3610 | std::string* emsg, bool* changed) |
| 3611 | { |
| 3612 | auto adjustCallback = [newRPath](cm::optional<std::string>& outRPath, |
| 3613 | std::string const& inRPath, |
| 3614 | char const* /*se_name*/, std::string* |
| 3615 | /*emsg*/) -> bool { |
| 3616 | if (inRPath != newRPath) { |
| 3617 | outRPath = newRPath; |
| 3618 | } |
| 3619 | return true; |
| 3620 | }; |
| 3621 | |
| 3622 | return AdjustRPathELF(file, MakeEmptyCallback(newRPath), adjustCallback, |
| 3623 | emsg, changed); |
| 3624 | } |
| 3625 | static cm::optional<bool> ChangeRPathXCOFF(std::string const& file, |
| 3626 | std::string const& oldRPath, |
| 3627 | std::string const& newRPath, |
no test coverage detected
searching dependent graphs…