lkml.org 
[lkml]   [2020]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Using a custom LDFLAG for all objects and binaries
From
Date
On 5/10/20 6:35 AM, Mahmood Naderan wrote:
> 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

Hi,

Have you read Documentation/kbuild/makefiles.rst ?

LDFLAGS
Generic $(LD) options

Flags used for all invocations of the linker.


You could always build with V=1 to see all of the
command lines that are used in the build.

HTH.
--
~Randy

\
 
 \ /
  Last update: 2020-05-10 18:03    [W:0.084 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site