ld expression parsing changes reverted on 2.37 branch
Thomas Backlund
tmb@tmb.nu
Wed Aug 11 17:20:22 GMT 2021
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
>> commit 40726f16a8d7 "ld script expression parsing"
>> on the binutils-2.37 branch, to fix PR28217 on the branch.
>>
>
>
> So something subtle somewhere...
>
>
> The x86_64 host binutils is from binutils-2_37-branch, last commit:
>
> d86cf1b0d5ac6c0d900ae2b2a07fce7c4414d0e6 PR28186, SEGV elf.c:7991:30
> in _bfd_elf_fixup_group_sections
>
> other basesystem bits:
> gcc version 11.2.1 20210807
> glibc 2.33
>
--
Thomas
More information about the Binutils
mailing list