|
From: | hjl.tools at gmail dot com |
Subject: | [Bug ld/27119] ld improperly relocates function address, creating an invalid pointer |
Date: | Mon, 28 Dec 2020 23:49:02 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27119 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |NOTABUG --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Rhys Rustad-Elliott from comment #2) > > Confirming that linking to an ELF and then using objcopy to convert it to a > flat binary works around this issue for me as described here. > > I assume regardless that this behavior should still be considered a bug in > ld though right? Don't use OUTPUT_FORMAT("binary") with backend specific relocations, like R_X86_64_GOTPCRELX, since the generic binary linker can't process them properly. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |