~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/loongarch/vdso/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/loongarch/vdso/Makefile (Version linux-6.12-rc7) and /arch/i386/vdso/Makefile (Version linux-6.3.13)


  1 # SPDX-License-Identifier: GPL-2.0                
  2 # Objects to go into the VDSO.                    
  3                                                   
  4 # Include the generic Makefile to check the bu    
  5 include $(srctree)/lib/vdso/Makefile              
  6                                                   
  7 obj-vdso-y := elf.o vgetcpu.o vgettimeofday.o     
  8               vgetrandom-chacha.o sigreturn.o     
  9                                                   
 10 # Common compiler flags between ABIs.             
 11 ccflags-vdso := \                                 
 12         $(filter -I%,$(KBUILD_CFLAGS)) \          
 13         $(filter -E%,$(KBUILD_CFLAGS)) \          
 14         $(filter -march=%,$(KBUILD_CFLAGS)) \     
 15         $(filter -m%-float,$(KBUILD_CFLAGS)) \    
 16         $(CLANG_FLAGS) \                          
 17         -D__VDSO__                                
 18                                                   
 19 cflags-vdso := $(ccflags-vdso) \                  
 20         -isystem $(shell $(CC) -print-file-nam    
 21         $(filter -W%,$(filter-out -Wa$(comma)%    
 22         -O2 -g -fno-strict-aliasing -fno-commo    
 23         -fno-stack-protector -fno-jump-tables     
 24         $(call cc-option, -fno-asynchronous-un    
 25         $(call cc-option, -fno-stack-protector    
 26 aflags-vdso := $(ccflags-vdso) \                  
 27         -D__ASSEMBLY__ -Wa,-gdwarf-2              
 28                                                   
 29 ifneq ($(c-gettimeofday-y),)                      
 30   CFLAGS_vgettimeofday.o += -include $(c-getti    
 31 endif                                             
 32                                                   
 33 ifneq ($(c-getrandom-y),)                         
 34   CFLAGS_vgetrandom.o += -include $(c-getrando    
 35 endif                                             
 36                                                   
 37 # VDSO linker flags.                              
 38 ldflags-y := -Bsymbolic --no-undefined -soname    
 39         $(filter -E%,$(KBUILD_CFLAGS)) -nostdl    
 40         --hash-style=sysv --build-id -T           
 41                                                   
 42 #                                                 
 43 # Shared build commands.                          
 44 #                                                 
 45                                                   
 46 quiet_cmd_vdsold_and_vdso_check = LD      $@      
 47       cmd_vdsold_and_vdso_check = $(cmd_ld); $    
 48                                                   
 49 quiet_cmd_vdsoas_o_S = AS       $@                
 50       cmd_vdsoas_o_S = $(CC) $(a_flags) -c -o     
 51                                                   
 52 # Generate VDSO offsets using helper script       
 53 gen-vdsosym := $(src)/gen_vdso_offsets.sh         
 54 quiet_cmd_vdsosym = VDSOSYM $@                    
 55       cmd_vdsosym = $(NM) $< | $(gen-vdsosym)     
 56                                                   
 57 include/generated/vdso-offsets.h: $(obj)/vdso.    
 58         $(call if_changed,vdsosym)                
 59                                                   
 60 #                                                 
 61 # Build native VDSO.                              
 62 #                                                 
 63                                                   
 64 native-abi := $(filter -mabi=%,$(KBUILD_CFLAGS    
 65                                                   
 66 targets += $(obj-vdso-y)                          
 67 targets += vdso.lds vdso.so.dbg vdso.so           
 68                                                   
 69 obj-vdso := $(obj-vdso-y:%.o=$(obj)/%.o)          
 70                                                   
 71 $(obj-vdso): KBUILD_CFLAGS := $(cflags-vdso) $    
 72 $(obj-vdso): KBUILD_AFLAGS := $(aflags-vdso) $    
 73                                                   
 74 $(obj)/vdso.lds: KBUILD_CPPFLAGS := $(ccflags-    
 75                                                   
 76 $(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso    
 77         $(call if_changed,vdsold_and_vdso_chec    
 78                                                   
 79 $(obj)/vdso.so: OBJCOPYFLAGS := -S                
 80 $(obj)/vdso.so: $(obj)/vdso.so.dbg FORCE          
 81         $(call if_changed,objcopy)                
 82                                                   
 83 obj-y += vdso.o                                   
 84                                                   
 85 $(obj)/vdso.o : $(obj)/vdso.so                    
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php