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 ld/15371: uninitialised ifunc symbol


On Tue, Apr 16, 2013 at 1:24 AM, Will Newton <will.newton@linaro.org> wrote:
> On 15 April 2013 22:13, H.J. Lu <hongjiu.lu@intel.com> wrote:
>> non_got_ref may not be set when building shared library. We need to set
>> non_got_ref if there are any non-PIC relocations.  But we only did this
>> when there were no PLT/GOT relocations.  It failed when there is a PLT
>> relocation.  I am checking in this patch moves the non_got_ref check out.
>
> Hi H.J.,
>
> I noticed the code in elf-ifunc.c is only used by i386/x86_64. Is this
> code intended to be generic? Would it make sense for future IFUNC
> enabled ports to use it?

It is is supposed to be generic.  But it may not be generic for
all ports.

> Copyright is 2009 in that file so probably needs updating btw.

I checked in this patch to update it.

Thanks.


--
H.J.
--
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/bfd/ChangeLog,v
retrieving revision 1.6029
diff -u -p -r1.6029 ChangeLog
--- ChangeLog    17 Apr 2013 14:16:00 -0000    1.6029
+++ ChangeLog    17 Apr 2013 16:21:47 -0000
@@ -1,3 +1,7 @@
+2013-04-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+    * elf-ifunc.c: Update copyright year.
+
 2013-04-17 Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>

     * coffcode.h: Added a cast to void when a bfd_set_section_*()
Index: elf-ifunc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf-ifunc.c,v
retrieving revision 1.9
diff -u -p -r1.9 elf-ifunc.c
--- elf-ifunc.c    15 Apr 2013 21:16:18 -0000    1.9
+++ elf-ifunc.c    17 Apr 2013 16:21:47 -0000
@@ -1,5 +1,5 @@
 /* ELF STT_GNU_IFUNC support.
-   Copyright 2009
+   Copyright 2009-2013
    Free Software Foundation, Inc.

    This file is part of BFD, the Binary File Descriptor library.


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