mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
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:
committed by
Richard Purdie
parent
bdbf1a1575
commit
3aed62d687
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user