This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR gold/17640


> addq _DYNAMIC@GOTPCREL(%rip), %rax
> ...
> addl _DYNAMIC@GOT(%ecx), %eax
> ...
> Both requires preserve _DYNAMIC GOT entry.

Well, yes, these aren't mov instructions, and we won't optimize them
because of that. That's the point of this test:

+           if (view[reloc.get_r_offset() - 2] == 0x8b)
+             break;

You still haven't explained why we need to look for the symbol
"_DYNAMIC" and treat it as a special case.

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]