bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/22929] x86_64 linker seg-faults when creating a shared object fr


From: hjl.tools at gmail dot com
Subject: [Bug ld/22929] x86_64 linker seg-faults when creating a shared object from an input containg relocations against note section without SHF_ALLOC
Date: Tue, 06 Mar 2018 15:51:22 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22929

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Nick Clifton from comment #5)
> Hi H.J.
> 
> > The value will be wrong.  Linker can only resolve PC relative relocations> 
> > against local definition.
> But can't the linker assume that the object is located at address 0 and
> resolve the relocations using that ?  It does not matter that this address
> will not match the run-time address of the object, it is only going to be
> used when performing a static analysis of the binary.

How these relocation should be resolved must be spelled out, probably in
.gnu.build.attributes specification.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]