ld expression parsing changes reverted on 2.37 branch

Thomas Backlund tmb@tmb.nu
Wed Aug 11 19:12:56 GMT 2021


Den 11.8.2021 kl. 20:20, skrev Thomas Backlund:
>
> Den 11.8.2021 kl. 19:14, skrev Thomas Backlund:
>> Den 11.8.2021 kl. 08:03, skrev Alan Modra via Binutils:
>>> I have reverted
>>> commit 6afc66a7772e "Re: ld script expression parsing"
>>> commit fb6c220ebdae "ld --defsym"
>>
>> Here, the build now fails with:
>>
>> /usr/bin/ld: ldgram.o: in function `yyparse':
>> /binutils-2.37/objs/ld/../../ld/ldgram.y:179: undefined reference to
>> `ldlex_defsym'
>> collect2: error: ld returned 1 exit status
>>
>
> Ah, now I see (I think)
>
> ld/ldlex.c is generated in the tarball, so only applying theese
> patches does not actually add the missing bits to ldlex.c
>
>

And just to confirm it... removing ld/ldlex.c  forces it to get properly
regererated and the build works.

--

Thomas





More information about the Binutils mailing list