|
From: | Nick Clifton |
Subject: | Re: [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, 6 Mar 2018 14:46:50 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
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. Cheers Nick
[Prev in Thread] | Current Thread | [Next in Thread] |