diff options
author | Brad King <brad.king@kitware.com> | 2024-04-25 14:32:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-04-25 14:32:14 (GMT) |
commit | 3956ce1d979a28e1a5945fac864d4164284bc00e (patch) | |
tree | 39e498a5900f1ad8d278e6f0489447168be0c02f | |
parent | 2c3a9d5385ff065a690ce706ce1d5c2da491155f (diff) | |
parent | 9517ab36e19e9b4566425005433d20f21d01cd72 (diff) | |
download | CMake-3956ce1d979a28e1a5945fac864d4164284bc00e.zip CMake-3956ce1d979a28e1a5945fac864d4164284bc00e.tar.gz CMake-3956ce1d979a28e1a5945fac864d4164284bc00e.tar.bz2 |
Merge topic 'elf.errMsg'
9517ab36e1 cmELF: correct error message from GetDynamicSectionString
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9458
-rw-r--r-- | Source/cmELF.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx index d9a4408..a71e5f1 100644 --- a/Source/cmELF.cxx +++ b/Source/cmELF.cxx @@ -621,7 +621,19 @@ cmELF::StringEntry const* cmELFInternalImpl<Types>::GetDynamicSectionString( // Make sure the whole value was read. if (!(*this->Stream)) { - this->SetErrorMessage("Dynamic section specifies unreadable RPATH."); + if (tag == cmELF::TagRPath) { + this->SetErrorMessage( + "Dynamic section specifies unreadable DT_RPATH"); + } else if (tag == cmELF::TagRunPath) { + this->SetErrorMessage( + "Dynamic section specifies unreadable DT_RUNPATH"); + } else if (tag == cmELF::TagMipsRldMapRel) { + this->SetErrorMessage( + "Dynamic section specifies unreadable DT_MIPS_RLD_MAP_REL"); + } else { + this->SetErrorMessage("Dynamic section specifies unreadable value" + " for unexpected attribute"); + } se.Value = ""; return nullptr; } |