Bug 1500898
Summary: | [ld.gold] message-less compilation results in "error while loading shared libraries: unexpected reloc type 0x0b" in run-time | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Pokorný [poki] <jpokorny> | ||||
Component: | binutils | Assignee: | Nick Clifton <nickc> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 28 | CC: | aoliva, dvlasenk, fweimer, jakub, nickc | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | binutils-2.29.1-3.fc28 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
The gold linker was producing the wrong kind of relocations to handle the location of the start and stop symbols generated for orphan sections.
Consequence:
Programs that tried to use the start and stop symbols would not work if linked with the gold linker.
Fix:
Generate the correct relocations.
Result:
Programs can now use the gold linker and work correctly.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2019-05-28 19:36:36 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Jan Pokorný [poki]
2017-10-11 17:05:55 UTC
Created attachment 1337321 [details]
output from "LD_DEBUG=all ./conftest"
Hi Jan, Do you have any objections to my filing this bug report, and especially the reproducer, with the upstream FSF binutils ? I would like to get the gold experts there to have a look at the problem. Cheers Nick No problem at all, actually thanks for the offer. (says lazy me, lazy to open an account over there) No worries - it is all part of the service. :-) I have now submitted the bug upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=22291 Hi Jan, H.J.Lu has created a patch that fixes the problem. I have imported it into rawhide, so if you try out: binutils-2.29.1-3.fc28 you should find that things now work. Cheers Nick Thanks Nick (and H.J.Lu), confirming that "gold" output now matches the "bfd" one. Running slightly off-topic now, how probable do you think is that GOLD gets rid of this restriction (linker script is akin to the one discussed in [bug 1477354 comment 8]): $ gcc -o conftest -fuse-ld=gold -Wl,conftest.ld conftest.c > SECTIONS seen after other input files; try -T/--script Vague guess is that it's also related to alleged GOLD's inability to use INSERT AFTER (https://stackoverflow.com/a/16756006)? Or contrary, what's the risk of ld.bfd likewise dropping the support for what currently just triggers a warning as previously discussed? Hi Jan, > Running slightly off-topic now, how probable do you think is that > GOLD gets rid of this restriction (linker script is akin to > the one discussed in [bug 1477354 comment 8]): Hmm, not sure. I think that if enough users complained the upstream GOLD maintainers might take note and try to do something about it. Even better of course would be if someone submitted a patch to fix the problem. > Vague guess is that it's also related to alleged GOLD's inability > to use INSERT AFTER (https://stackoverflow.com/a/16756006)? Right - gold tries to be "script-less", instead relying upon built in algorithms to place sections correctly. Personally I think that this is a bad idea, but then I am not a gold developer. > Or contrary, what's the risk of ld.bfd likewise dropping the support > for what currently just triggers a warning as previously discussed? I very much doubt that ld.bfd will drop this support, and since I do maintain it, I can assure you that support will remain. Cheers Nick re [comment 7]: >> Or contrary, what's the risk of ld.bfd likewise dropping the support >> for what currently just triggers a warning as previously discussed? > > I very much doubt that ld.bfd will drop this support, and since I do > maintain it, I can assure you that support will remain. Thanks; I was just worried if one way of possible convergence (if that's generally accepted as desirable -- indeed, I don't know) is blocked that the opposite might be promoted (under cleanliness claims or what not). So good to have some assurance it's not foreseeably the case. This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'. This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '28'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 28 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. Confirming the fix as of binutils-2.33.1-10.fc32.x86_64 at latest. |