Description of problem: Please add support for the --package-metadata linker option. This has been agreed on between ld.bfd and ld.mold. See discussion at: https://github.com/rui314/mold/issues/505 ld.mold commit: https://github.com/rui314/mold/commit/e9f6715c6ef01b5bf02dc8bf36bce8af4f07b44e ld.bfd commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=9e2bb0cb5e74aed4158f08495534922d7108f928
It's on my to-do, but I was waiting for ld.gold as well, I sent a patch for it last month but haven't received any answer yet: https://sourceware.org/pipermail/binutils/2022-May/121060.html
Reminder that this is still blocked waiting on ld.gold https://sourceware.org/pipermail/binutils/2022-July/122097.html Any chance the maintainers who are in RedHat could be asked to have a quick look? I can then provide the required backports for Fedora Rawhide, and then the package can use this.
Nick, can you comment on comment #2 ?
OK, so I try not to act as a maintainer for the upstream ld.gold linker because I am not a C++ programmer, so I am not going to review/approve Luca's upstream patch. But - I am perfectly happy to have the patches applied to the Fedora binutils. So a will do this later on today.
Thanks Nick, sounds good - there was already a review from Cary Coutant: https://sourceware.org/pipermail/binutils/2022-July/122093.html Who else can we ask to have a look? Looking at the git log you seem to be one of the most common contributors to gold/, is there another maintainer we can ask?
Fixed in binutils-2.38-23.fc37. We are working on updating the f36 and f35 binutils with the patch and they should be ready soon. (In reply to Luca Boccassi from comment #5) > Thanks Nick, sounds good - there was already a review from Cary Coutant: > https://sourceware.org/pipermail/binutils/2022-July/122093.html > Who else can we ask to have a look? Looking at the git log you seem to be > one of the most common contributors to gold/, is there another maintainer we > can ask? Try asking Ian Taylor - he is one of the maintainers for gold.
(In reply to Nick Clifton from comment #6) > Fixed in binutils-2.38-23.fc37. > > We are working on updating the f36 and f35 binutils with the patch and they > should be ready soon. Thank you - does that include the corresponding change in ld.bfd as well? > (In reply to Luca Boccassi from comment #5) > > Thanks Nick, sounds good - there was already a review from Cary Coutant: > > https://sourceware.org/pipermail/binutils/2022-July/122093.html > > Who else can we ask to have a look? Looking at the git log you seem to be > > one of the most common contributors to gold/, is there another maintainer we > > can ask? > > Try asking Ian Taylor - he is one of the maintainers for gold. Will do, thanks.
https://src.fedoraproject.org/rpms/package-notes/pull-request/4
(In reply to Luca Boccassi from comment #7) > (In reply to Nick Clifton from comment #6) > > (In reply to Luca Boccassi from comment #5) > > > Thanks Nick, sounds good - there was already a review from Cary Coutant: > > > https://sourceware.org/pipermail/binutils/2022-July/122093.html > > > Who else can we ask to have a look? Looking at the git log you seem to be > > > one of the most common contributors to gold/, is there another maintainer we > > > can ask? > > > > Try asking Ian Taylor - he is one of the maintainers for gold. > > Will do, thanks. To close the loop support in ld.gold was merged, so binutils 2.39 supports this in ld.gold and ld.bfd.
FYI The patch has been backported to binutils-2.37-34.fc36 and binutils-2.37-23.fc35