mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Adds the common tools include folder to the -I compile flags
of libfsimage. This allows us to use:
xen-tools/common-macros.h:BUILD_BUG_ON()
With it, statically assert a sanitized "blocklog - SECTOR_BITS" cannot
underflow.
This is part of XSA-443 / CVE-2023-34325
Signed-off-by: Alejandro Vallejo <alejandro.vallejo@cloud.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 7d85c70431)
12 lines
343 B
Makefile
12 lines
343 B
Makefile
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
FSDIR := $(libdir)/xenfsimage
|
|
CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ $(CFLAGS_xeninclude) -DFSIMAGE_FSDIR=\"$(FSDIR)\"
|
|
CFLAGS += -D_GNU_SOURCE
|
|
LDFLAGS += -L../common/
|
|
|
|
PIC_OBJS = $(patsubst %.c,%.opic,$(LIB_SRCS-y))
|
|
|
|
clean distclean::
|
|
rm -f $(PIC_OBJS) $(TARGETS) $(DEPS_RM)
|