insane: improve textrel warning message

Clean the displayed path so it clearly shows the package name and path in that
package.

(From OE-Core rev: 46bf5f0db164e88c2effdbf5437f4d0836e4aadd)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2019-11-11 12:45:12 +00:00
committed by Richard Purdie
parent bdbf1a1575
commit 3aed62d687

View File

@@ -340,9 +340,11 @@ def package_qa_textrel(path, name, d, elf, messages):
for line in phdrs.split("\n"):
if textrel_re.match(line):
sane = False
break
if not sane:
package_qa_add_message(messages, "textrel", "ELF binary '%s' has relocations in .text" % path)
path = package_qa_clean_path(path, d, name)
package_qa_add_message(messages, "textrel", "%s: ELF binary %s has relocations in .text" % (name, path))
QAPATHTEST[ldflags] = "package_qa_hash_style"
def package_qa_hash_style(path, name, d, elf, messages):