This is the mail archive of the
mailing list for the binutils project.
Re: R_X86_64_COPY bug
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Suresh Siddha <sbsiddha at gmail dot com>
- Cc: Alexander Ivchenko <aivchenk at gmail dot com>, Fredrick Prashanth John Berchmans <fredrickprashanth at gmail dot com>, binutils at sourceware dot org, nasuku at yahoo dot com
- Date: Mon, 8 Apr 2013 08:55:30 -0700
- Subject: Re: R_X86_64_COPY bug
- References: <CACwgvgW5SNsXL2vND_qhgqO7RRsHwKyk+N-q5sTakeC9vwV0BA at mail dot gmail dot com> <20130406071305 dot GD3208 at bubble dot grove dot modra dot org> <CALmL7E92MjbsXbou8T3w895G9ahtd1tvC2JwREwV9EzT4Px20Q at mail dot gmail dot com> <CACysShj5aH4pWZHjxj74-B7z8a8d_NTKUyEcN8DFJXxaCa5=6g at mail dot gmail dot com> <CALmL7E9U+J0m9EqeTfm+U-0UUrqnd1j3sv5PhO7EnpPwn38Xcg at mail dot gmail dot com>
On Sat, Apr 6, 2013 at 1:59 AM, Suresh Siddha <firstname.lastname@example.org> wrote:
> On Sat, Apr 6, 2013 at 1:49 AM, Alexander Ivchenko <email@example.com> wrote:
>> Have you tried '-z nocopyrelocs' option for linker which tries to
>> avoid COPY relocations?
> yes, that didn't help both on x86_64 and arm.
>> And also, as far as I understand, you can make
>> your binary 'pie'
> Combination of pie options that help seem to vary from arch to arch.
> Only "-fpie -pie" seems to help on arm, whereas on x86_64 any of
> fpie/fPIE option's seem to help. But I guess these options come with a
> performance cost.
-pie -fPIE works on x86-64.