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 14:37:36 +0000

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Nick Clifton from comment #2)
> Hi H.J.
> 
> > Since these relocations
> > are in non-allocatable sections, should linker treat them as in
> > debug section?
> 
> Ideally not.  If I understand the code correctly the debug relocations
> are just silently ignored.  They are not actually processed.  What I 
> would really like, if possible, is for the linker to resolve the
> relocations against the note section and update the section contents
> appropriately.  (I think that the linker can assume a base address of 0
> for these relocations).
> 

The value will be wrong.  Linker can only resolve PC relative relocations
against local definition.

-- 
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]