Skip to content

Commit

Permalink
arm: vdso: Disable LTO
Browse files Browse the repository at this point in the history
Based on upstream changes to allow building as object vs bitcode.

Signed-off-by: notcarbide <luis@0k.cx>
  • Loading branch information
notcarbide committed Mar 22, 2022
1 parent 19eba34 commit b402986
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/vdso/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \
obj-$(CONFIG_VDSO) += vdso.o
CPPFLAGS_vdso.lds += -P -C -U$(ARCH)

KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_LTO),$(KBUILD_CFLAGS))

CFLAGS_REMOVE_vdso.o = -pg

# Force -O2 to avoid libgcc dependencies
Expand Down

0 comments on commit b402986

Please sign in to comment.