hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/powerpc/Makefile
....@@ -92,7 +92,7 @@
9292
9393 ifeq ($(HAS_BIARCH),y)
9494 KBUILD_CFLAGS += -m$(BITS)
95
-KBUILD_AFLAGS += -m$(BITS) -Wl,-a$(BITS)
95
+KBUILD_AFLAGS += -m$(BITS)
9696 KBUILD_LDFLAGS += -m elf$(BITS)$(LDEMULATION)
9797 endif
9898
....@@ -429,3 +429,11 @@
429429 echo -n '*** Please use a different binutils version.' ; \
430430 false ; \
431431 fi
432
+ @if test "x${CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT}" = "xy" -a \
433
+ "x${CONFIG_LD_IS_BFD}" = "xy" -a \
434
+ "${CONFIG_LD_VERSION}" = "23700" ; then \
435
+ echo -n '*** binutils 2.37 drops unused section symbols, which recordmcount ' ; \
436
+ echo 'is unable to handle.' ; \
437
+ echo '*** Please use a different binutils version.' ; \
438
+ false ; \
439
+ fi