diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -567,7 +567,7 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) | |||
567 | # disable pointer signed / unsigned warnings in gcc 4.0 | 567 | # disable pointer signed / unsigned warnings in gcc 4.0 |
568 | KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) | 568 | KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) |
569 | 569 | ||
570 | # disable invalid "can't wrap" optimzations for signed / pointers | 570 | # disable invalid "can't wrap" optimizations for signed / pointers |
571 | KBUILD_CFLAGS += $(call cc-option,-fwrapv) | 571 | KBUILD_CFLAGS += $(call cc-option,-fwrapv) |
572 | 572 | ||
573 | # revert to pre-gcc-4.4 behaviour of .eh_frame | 573 | # revert to pre-gcc-4.4 behaviour of .eh_frame |
@@ -597,6 +597,10 @@ LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ | |||
597 | LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) | 597 | LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) |
598 | LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) | 598 | LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) |
599 | 599 | ||
600 | ifeq ($(CONFIG_STRIP_ASM_SYMS),y) | ||
601 | LDFLAGS_vmlinux += -X | ||
602 | endif | ||
603 | |||
600 | # Default kernel image to build when no specific target is given. | 604 | # Default kernel image to build when no specific target is given. |
601 | # KBUILD_IMAGE may be overruled on the command line or | 605 | # KBUILD_IMAGE may be overruled on the command line or |
602 | # set in the environment | 606 | # set in the environment |
@@ -1587,5 +1591,5 @@ PHONY += FORCE | |||
1587 | FORCE: | 1591 | FORCE: |
1588 | 1592 | ||
1589 | # Declare the contents of the .PHONY variable as phony. We keep that | 1593 | # Declare the contents of the .PHONY variable as phony. We keep that |
1590 | # information in a variable se we can use it in if_changed and friends. | 1594 | # information in a variable so we can use it in if_changed and friends. |
1591 | .PHONY: $(PHONY) | 1595 | .PHONY: $(PHONY) |