if not elf:
return
- if os.path.islink(file):
- return
-
bad_dirs = [d.getVar('BASE_WORKDIR'), d.getVar('STAGING_DIR_TARGET')]
phdrs = elf.run_objdump("-p", d)
if not elf:
return
- if os.path.islink(file):
- return
-
libdir = d.getVar("libdir")
base_libdir = d.getVar("base_libdir")
oe.qa.handle_error("arch", pn + ": Recipe inherits the allarch class, but has packaged architecture-specific binaries", d)
return
- # avoid following links to /usr/bin (e.g. on udev builds)
- # we will check the files pointed to anyway...
- if os.path.islink(path):
- return
-
#if this will throw an exception, then fix the dict above
(machine, osabi, abiversion, littleendian, bits) \
= oe.elf.machine_dict(d)[host_os][host_arch]
if not elf:
return
- if os.path.islink(path):
- return
-
phdrs = elf.run_objdump("-p", d)
import re
if not elf:
return
- if os.path.islink(path):
- return
-
gnu_hash = "--hash-style=gnu" in d.getVar('LDFLAGS')
if not gnu_hash:
gnu_hash = "--hash-style=both" in d.getVar('LDFLAGS')
)
# elf is a oe.qa.ELFFile object
- if elf is not None:
+ if elf:
phdrs = elf.run_objdump("-tw", d)
syms = re.finditer(ptrn, phdrs)
usedapis = {sym.group('notag') for sym in syms}
elves = {}
for path in pkgfiles[package]:
elf = None
- if os.path.isfile(path):
+ if os.path.isfile(path) and not os.path.islink(path):
elf = oe.qa.ELFFile(path)
try:
elf.open()