Define PN_XNUM if not defined in elf.h
VxWorks elf.h (nor any other header in its SDK) doesn't contain definition of PN_XNUM, which meaning is the limit of program headers in ELF structure, related to `e_phnum` field of `Elf{32,64}_Ehdr` structures. Since these fields have identical type and seemingly identical meaning, we can safely assume that its maximum value will be the same on both systems. Define PN_XNUM if it's not defined with `0xffff` value taken from Linux and Solaris related headers. Fixes: QTBUG-118135 Change-Id: I5a0dab1d1d18e165d01e80823a02f7df644fc7e8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
799bfe94e8
commit
3f8de9d327
@ -54,6 +54,10 @@ static Q_LOGGING_CATEGORY(lcElfParser, "qt.core.plugin.elfparser")
|
||||
# define PT_GNU_PROPERTY 0x6474e553
|
||||
#endif
|
||||
|
||||
#ifndef PN_XNUM
|
||||
# define PN_XNUM 0xffff
|
||||
#endif
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_CLANG("-Wunused-const-variable")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user