Hi all ! I sent a dev board to Adrian as he volunteered to spend some time on this (Adrian : did you receive it yet ?)
I'll try to give some more info anyway : On 28/10/2016 12:20, Agustin Henze wrote: > Hi Nathael, > > On 03/06/2016 03:02 PM, Nathael Pajani wrote: >> Hi, >> >> The version 2.26-4+8 of arm binutils produces unusable binaries for at least >> some targets. > > Could you be more verbose here? What do you mean with "unusable binaries". They fail to start on the target. Targets I use are LPC micro-contrpllers from NXP. The code execution seems to stop very very early, before "main()" call, or does not start at all. > Did you try decompiling and seeing the difference between the two version. > How can > I test this to reproduce the error? Yes, I did it, which allowed me to find a workaround in the linker script, but the regression should be fixed anyway. I added all the indications to reproduce the binaries, and an offer to send a development platform to those willing to spent some time on this (Adrian replied positively and should have received his platform). The sources without the workaround can be found here : http://git.techno-innov.fr/?p=modules;a=snapshot;h=1a207a74cf95d688a980e6252bac02e334440bb2;sf=tgz The workaround is in the following commit (b53a011b729a91358e73489cb7f8b5939ef94285) which adds ". = ALIGN(4);" before the "_end_text = .;", which has the effect of re-aligning _end_text, as it was with previous versions of ld. >> I used version 2.25-5+5+b1 with no problem, but version 2.26-4+8 is unusable. >> >> Removing version 2.26-4+8 and getting 2.25-5+5+b1 back solves the problem. >> >> The code I use can be obtained here : >> http://git.techno-innov.fr/?p=modules;a=summary >> The target is a LPC1224 (ARM Cortex-M0) from NXP. I can send a target to >> anyone >> who can work on this. (It is small and easy to use, no external board or >> cable >> required to use it) >> >> I tried to use arm-linux-gnueabi binutils as well, in version 2.26-4 and >> 2.26-5, but none of these work either, though they used to be OK in older >> versions. > > Could you try the last version uploaded a few minutes ago? I updated a tests system, which installed binutils-arm-none-eabi in version 2.27-9+9 It does not fix the problem. Re-tested by downgrading to binutils 2.25-5+5+b1 : the tested example is running fine on the target. So this is not a compiler or source code problem, but really a regression in the linker. > > Thanks, You're welcome :) +++ -- Nathael PAJANI Techno-Innov Internet : http://www.techno-innov.fr Twitter : @TechnoInnov

