Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu: package kernels built with -fno-inline-functions-called-once #713

Closed
joe-lawrence opened this issue Jun 13, 2017 · 1 comment
Closed

Comments

@joe-lawrence
Copy link
Contributor

@vincentbernat pointed out that Ubuntu kernels are built with -fno-inline-functions-called-once
I think this compiler argument is coming out of the source package's debian/rules.d/0-common-vars.mk file. Both Trusty and Xenial setup kmake the same way:

kmake = make ARCH=$(build_arch) \
	CROSS_COMPILE=$(CROSS_COMPILE) \
	KERNELVERSION=$(abi_release)-$(target_flavour) \
	CONFIG_DEBUG_SECTION_MISMATCH=y \
	KBUILD_BUILD_VERSION="$(uploadnum)" \
	LOCALVERSION= localver-extra= \
	CFLAGS_MODULE="-DPKG_ABI=$(abinum)"

Where manually turning on CONFIG_DEBUG_SECTION_MISMATCH will in turn add -fno-inline-functions-called-once to the kernel build line.

Note that the only code that uses PKG_ABI (in Trusty's 3.13.0-119-generic at least) is driver/hv/hv.c to generate a unique "guest_id" for the hyperv driver. (The PKG_ABI number corresponds to the xyz-generic value in the kernel package name.)

@joe-lawrence
Copy link
Contributor Author

Closing stale issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant