Makefile (d897b680418db98f01a0bff038f1b03770a33722) | Makefile (bd71558d585ac61cfd799db7f25e78dca404dd7a) |
---|---|
1# 2# This file is included by the global makefile so that you can add your own 3# architecture-specific flags and dependencies. 4# 5# Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 6# Licensed under the GPL 7# 8 --- 118 unchanged lines hidden (view full) --- 127# Options used by linker script 128export LDS_START := $(START) 129export LDS_ELF_ARCH := $(ELF_ARCH) 130export LDS_ELF_FORMAT := $(ELF_FORMAT) 131 132# The wrappers will select whether using "malloc" or the kernel allocator. 133LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc 134 | 1# 2# This file is included by the global makefile so that you can add your own 3# architecture-specific flags and dependencies. 4# 5# Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 6# Licensed under the GPL 7# 8 --- 118 unchanged lines hidden (view full) --- 127# Options used by linker script 128export LDS_START := $(START) 129export LDS_ELF_ARCH := $(ELF_ARCH) 130export LDS_ELF_FORMAT := $(ELF_FORMAT) 131 132# The wrappers will select whether using "malloc" or the kernel allocator. 133LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc 134 |
135# Avoid binutils 2.39+ warnings by marking the stack non-executable and 136# ignorning warnings for the kallsyms sections. 137LDFLAGS_EXECSTACK = -z noexecstack 138ifeq ($(CONFIG_LD_IS_BFD),y) 139LDFLAGS_EXECSTACK += $(call ld-option,--no-warn-rwx-segments) 140endif 141 |
|
135LD_FLAGS_CMDLINE = $(foreach opt,$(KBUILD_LDFLAGS),-Wl,$(opt)) 136 137# Used by link-vmlinux.sh which has special support for um link 138export CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) $(LD_FLAGS_CMDLINE) | 142LD_FLAGS_CMDLINE = $(foreach opt,$(KBUILD_LDFLAGS),-Wl,$(opt)) 143 144# Used by link-vmlinux.sh which has special support for um link 145export CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) $(LD_FLAGS_CMDLINE) |
146export LDFLAGS_vmlinux := $(LDFLAGS_EXECSTACK) |
|
139 140# When cleaning we don't include .config, so we don't include 141# TT or skas makefiles and don't clean skas_ptregs.h. 142CLEAN_FILES += linux x.i gmon.out 143MRPROPER_FILES += arch/$(SUBARCH)/include/generated 144 145archclean: 146 @find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \ 147 -o -name '*.gcov' \) -type f -print | xargs rm -f 148 149export HEADER_ARCH SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS DEV_NULL_PATH | 147 148# When cleaning we don't include .config, so we don't include 149# TT or skas makefiles and don't clean skas_ptregs.h. 150CLEAN_FILES += linux x.i gmon.out 151MRPROPER_FILES += arch/$(SUBARCH)/include/generated 152 153archclean: 154 @find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \ 155 -o -name '*.gcov' \) -type f -print | xargs rm -f 156 157export HEADER_ARCH SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS DEV_NULL_PATH |