Using a custom LDFLAG for all objects and binaries

From: Mahmood Naderan
Date: Sun May 10 2020 - 09:39:17 EST


Hi
I would like to modify the kernel makefile in a way to include
--emit-relocs for every file that is linked during the process of
kernel make.
I see

KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
LDFLAGS_MODULE =
LDFLAGS_vmlinux =
...

But I don't know which one is the main. Should I put that option in
front of every LD* variable? Or it is possible to apply one variable
for every file that is linked?
Appreciate your help.


Regards,
Mahmood