[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/28098] Linking with with libcudart_static.a produces an empty
From: |
amodra at gmail dot com |
Subject: |
[Bug gold/28098] Linking with with libcudart_static.a produces an empty eh_frame_hdr section |
Date: |
Sun, 18 Jul 2021 02:50:54 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28098
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Assignee|ccoutant at gmail dot com |amodra at gmail dot com
Last reconfirmed| |2021-07-18
--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
Thanks for the analysis and patch. I'm going to ask you to do just a little
more work. First, change the patch to skip r_info==0 relocs, which is R_*_NONE
(usually, there are some targets that stupidly define r_type of 0 to be
something other than a no-operation relocations) *and* r_sym of zero. That
will match ld.bfd. Also, put a suitable comment in reloc.h, something like
"..would be skipped, excluding r_info==0 relocs." and perhaps expand on this a
little in the function comment in reloc.cc, mentioning R_*_NONE and r_sym of
zero. Finally, check over all uses of advance() in gold to see that it isn't
used to count relocs for an output array or something like that, which might be
broken by your change. If you get to that point, post the patch to
binutils@sourceware.org and I'll commit it.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/28098] New: Linking with with libcudart_static.a produces an empty eh_frame_hdr section, michael.krasnyk at gmail dot com, 2021/07/17
- [Bug gold/28098] Linking with with libcudart_static.a produces an empty eh_frame_hdr section, michael.krasnyk at gmail dot com, 2021/07/17
- [Bug gold/28098] Linking with with libcudart_static.a produces an empty eh_frame_hdr section,
amodra at gmail dot com <=
- [Bug gold/28098] Linking with with libcudart_static.a produces an empty eh_frame_hdr section, michael.krasnyk at gmail dot com, 2021/07/18
- [Bug gold/28098] Linking with with libcudart_static.a produces an empty eh_frame_hdr section, michael.krasnyk at gmail dot com, 2021/07/18
- [Bug gold/28098] Linking with with libcudart_static.a produces an empty eh_frame_hdr section, cvs-commit at gcc dot gnu.org, 2021/07/18
- [Bug gold/28098] Linking with with libcudart_static.a produces an empty eh_frame_hdr section, amodra at gmail dot com, 2021/07/18