From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163244AbcG0W1n (ORCPT ); Wed, 27 Jul 2016 18:27:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:49507 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162315AbcG0W1m (ORCPT ); Wed, 27 Jul 2016 18:27:42 -0400 Date: Thu, 28 Jul 2016 00:27:40 +0200 From: "Luis R. Rodriguez" To: Steven Miao Cc: adi-buildroot-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [RFC v3 00/13] linux: generalize sections, ranges and linker tables Message-ID: <20160727222740.GM5537@wotan.suse.de> References: <1469222687-1600-1-git-send-email-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1469222687-1600-1-git-send-email-mcgrof@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 22, 2016 at 02:24:34PM -0700, Luis R. Rodriguez wrote: <-- snip --> > This all goes tested by 0-day... however since I found an issue with linker > tables and blackfin this series remains as RFC -- I'll try to debug the > issue with Steven Miao. The issue with blackfin is using a config that > enables CONFIG_FW_LOADER=y and CONFIG_DYNAMIC_DEBUG=y [5] we end up with > the following at final link time: > > LD init/built-in.o > lib/built-in.o: In function `dynamic_debug_init': > lib/dynamic_debug.c:(.init.text+0x156): undefined reference to `__verbose__end' > lib/dynamic_debug.c:(.init.text+0x15a): undefined reference to `__verbose__end' > lib/dynamic_debug.c:(.init.text+0x160): undefined reference to `__verbose' > lib/dynamic_debug.c:(.init.text+0x164): undefined reference to `__verbose' > lib/dynamic_debug.c:(.init.text+0x214): undefined reference to `__verbose__end' > lib/dynamic_debug.c:(.init.text+0x218): undefined reference to `__verbose__end' > lib/dynamic_debug.c:(.init.text+0x252): undefined reference to `__verbose__end' > lib/dynamic_debug.c:(.init.text+0x258): undefined reference to `__verbose' > lib/dynamic_debug.c:(.init.text+0x25c): undefined reference to `__verbose__end' > lib/dynamic_debug.c:(.init.text+0x260): undefined reference to `__verbose' > drivers/built-in.o: In function `release_firmware': > (.text+0x22dc2): undefined reference to `builtin_fw' > drivers/built-in.o: In function `release_firmware': > (.text+0x22dc6): undefined reference to `builtin_fw__end' > drivers/built-in.o: In function `release_firmware': > (.text+0x22dca): undefined reference to `builtin_fw' > drivers/built-in.o: In function `release_firmware': > (.text+0x22dce): undefined reference to `builtin_fw__end' > drivers/built-in.o: In function `fw_get_builtin_firmware': > drivers/base/firmware_class.c:(.text+0x23008): undefined reference to `builtin_fw' > drivers/base/firmware_class.c:(.text+0x2300c): undefined reference to `builtin_fw__end' > drivers/base/firmware_class.c:(.text+0x23010): undefined reference to `builtin_fw' > drivers/base/firmware_class.c:(.text+0x23014): undefined reference to `builtin_fw__end' > Makefile:957: recipe for target 'vmlinux' failed > make: *** [vmlinux] Error 1 > > To reproduce then: > > wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > wget http://drvbp1.linux-foundation.org/~mcgrof/2016/07/22/blackfin-fw-dyndbg.config -o .config > make.cross ARCH=blackfin > > [0] https://lkml.kernel.org/r/1455889559-9428-1-git-send-email-mcgrof@kernel.org > [1] https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linker-tables.git/ > [2] https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux-next.git/log/?h=20160722-linker-table-v3-try2 > [3] https://lkml.kernel.org/r/87y44zhbiu.fsf@rustcorp.com.au > [4] https://lkml.kernel.org/r/1467327207-14916-1-git-send-email-mcgrof@kernel.org > [5] http://drvbp1.linux-foundation.org/~mcgrof/2016/07/22/blackfin-fw-dyndbg.config Steven, curious if you've had a chance to look into this. I cannot help but suspect this is an issue of the blackfin linker as it only happens on blackfin. Luis