From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from forward1h.cmail.yandex.net ([2a02:6b8:0:f35::11]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0vJx-0003uf-9F for barebox@lists.infradead.org; Wed, 19 Apr 2017 19:31:24 +0000 From: =?utf-8?B?0J/QsNC90L7QsiDQkNC90LTRgNC10Lk=?= In-Reply-To: <20170419103108.bmocd6whapavxs4q@pengutronix.de> References: <2CBFB5C4-AB2B-448E-9127-DEBE0B12E168@moiji-mobile.com> <20170419103108.bmocd6whapavxs4q@pengutronix.de> MIME-Version: 1.0 Message-Id: <417131492630253@web37j.yandex.ru> Date: Wed, 19 Apr 2017 22:30:53 +0300 Content-Type: multipart/mixed; boundary="----==--bound.41714.web37j.yandex.ru" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Linking issue with ld.bfd 2.28.0.20170307 To: Sascha Hauer , Holger Freyther Cc: "barebox@lists.infradead.org" ------==--bound.41714.web37j.yandex.ru Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Hi! U-boot has fix for this issue: http://git.denx.de/?p=u-boot.git;a=commit;h=e391b1e64b0bd65709a28a4764afe4f32d408243 With attached patch I was able to build barebox with new ld. Tested on imx6 arch only. 19.04.2017, 13:31, "Sascha Hauer" : > Hi Holger, > > On Mon, Apr 17, 2017 at 07:35:19AM +0200, Holger Freyther wrote: >>  > On 30. Mar 2017, at 20:49, Holger Freyther wrote: >>  > >>  > Hi, >> >>  Hi! >> >>  > I am rebuilding the bootloader with gcc6 and the above version >>  > of binutils and it is failing to link with .bfd but is working >>  > with .gold. >>  > >>  > Is this known? Is anyone else seeing this issue? And no I did >>  > not try linking with -N and I have no idea what ld thinks is >>  > the program headers here. >> >>  my steps to reproduce this with Yocto's gcc-6.3 and ld.bfd >>  2.28.0.20170307 are the following. CROSS_COMPILE points into >>  the sysroot of a build on poky master. >> >>  git clone --branch=hfreyther/v2017.03-rebase git://git.sysmocom.de/barebox >>  cd barebox/ >>  wget -O .config "http://git.sysmocom.de/poky/meta-sysmocom-bsp/plain/recipes-bsp/barebox/barebox-sysmobts/defconfig?id=39afcd35ae40b8468868f1e942706dec11e03961" >>  make ARCH=arm >> >>  .../arm-poky-linux-gnueabi-ld: .tmp_barebox1: Not enough room for program headers, try linking with -N >>  .../arm-poky-linux-gnueabi-ld: final link failed: Bad value > > I'm afraid nobody currently uses gcc6 for barebox. I have no idea what's > going wrong here, sorry. Does it work when you disable > CONFIG_RELOCATABLE? > > Sascha > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox --  Андрей ------==--bound.41714.web37j.yandex.ru Content-Disposition: attachment; filename="0001-Fix-linking-with-new-ld-based-on-u-boot.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-diff; name="0001-Fix-linking-with-new-ld-based-on-u-boot.patch" RnJvbSBmYzZkZDY5ZDMzZTNlMzI4NWQ3ZWZlMTY0N2FmOGYxYWUzMTk0ODQ2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbmRyZXkgUGFub3YgPHJvY2tmb3JkQHlhbmRleC5ydT4KRGF0 ZTogV2VkLCAxOSBBcHIgMjAxNyAyMjoyNToxNyArMDMwMApTdWJqZWN0OiBbUEFUQ0hdIEZpeCBs aW5raW5nIHdpdGggbmV3IGxkLCBiYXNlZCBvbiB1LWJvb3QKCi0tLQogTWFrZWZpbGUgICAgICAg ICAgICAgICB8IDMgKysrCiBpbWFnZXMvTWFrZWZpbGUgICAgICAgIHwgMyArKysKIHNjcmlwdHMv S2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iAKICMgYXItb3B0aW9uCiAjIFVzYWdlOiBLQlVJTERfQVJGTEFHUyA6PSAkKGNhbGwgYXItb3B0 aW9uLEQpCi0tIAoyLjExLjAKCg== ------==--bound.41714.web37j.yandex.ru Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ------==--bound.41714.web37j.yandex.ru--